Skip to main content

Your agentic CLI developer.

Project description

tunacode-cli

tunacode logo

PyPI version Downloads Python 3.11+ License: MIT Discord Shield

A TUI code agent.

Note: Under active development - expect bugs.

Interface

The Textual-based terminal user interface provides a clean, interactive environment for AI-assisted coding, with a design heavily inspired by the classic NeXTSTEP user interface.

Agent Response Panel Agent response panel with formatted output

Read File Tool Tool rendering with syntax highlighting

Plan Approval Structured plan approval workflow

Theme Support

The interface supports multiple themes for different preferences and environments.

Customize the appearance with built-in themes or create your own color schemes.

Model Setup

Configure your AI models and settings through the provided setup interface.

Note: TunaCode has full bash shell access. This tool assumes you know what you're doing. If you're concerned, run it in a sandboxed environment.

v0.1.35 - Major Rewrite

This release is a complete rewrite with a new Textual-based TUI.

Upgrading from v1? The legacy v1 codebase is preserved in the legacy-v1 branch and will only receive security updates.

Requirements

  • Python 3.11+

Installation

uv tool install tunacode-cli

Quick Start

  1. Run the setup wizard to configure your API key:
tunacode --setup
  1. Start coding:
tunacode

Configuration

Set your API key as an environment variable or use the setup wizard:

export OPENAI_API_KEY="your-key"
# or
export ANTHROPIC_API_KEY="your-key"

Config file location: ~/.config/tunacode.json

For advanced settings including local mode for small context models, see the Configuration Guide.

Commands

Command Description
/help Show available commands
/model Change AI model
/clear Clear conversation history
/yolo Toggle auto-confirm mode
/branch Create and switch git branch
/plan Toggle read-only planning
/theme Change UI theme
/resume Load/delete saved sessions
! Run shell command
exit Quit tunacode

LSP Integration (Beta)

TunaCode includes experimental Language Server Protocol support for real-time diagnostics. When an LSP server is detected in your PATH, it activates automatically.

Supported languages:

Language LSP Server
Python ruff server
TypeScript typescript-language-server
JavaScript typescript-language-server
Go gopls
Rust rust-analyzer

Diagnostics appear in the UI when editing files. This feature is beta - expect rough edges.

Discord Server

Join our official discord server to receive help, show us how you're using tunacode, and chat about anything LLM.

Discord Banner 3

License

MIT

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tunacode_cli-0.1.35.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tunacode_cli-0.1.35-py3-none-any.whl (361.3 kB view details)

Uploaded Python 3

File details

Details for the file tunacode_cli-0.1.35.tar.gz.

File metadata

  • Download URL: tunacode_cli-0.1.35.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for tunacode_cli-0.1.35.tar.gz
Algorithm Hash digest
SHA256 7556fc13308d1025b75f1be8d1a0edc00ae025d7285abf3e91e400133523f77c
MD5 ea900459edc29c0d5485becbb27c1097
BLAKE2b-256 25bca54d67299b95743f5578f93944b6ff4d404717e663470d6033acf79855da

See more details on using hashes here.

File details

Details for the file tunacode_cli-0.1.35-py3-none-any.whl.

File metadata

  • Download URL: tunacode_cli-0.1.35-py3-none-any.whl
  • Upload date:
  • Size: 361.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for tunacode_cli-0.1.35-py3-none-any.whl
Algorithm Hash digest
SHA256 a2eb8e2cdef3606ed8724e786295eb1514fd910763166bf023b285f733b61c56
MD5 5b558cfa25260cff6031f0574e529071
BLAKE2b-256 6d1cf9a98b7a5d24e1fe5500b2d57e17e90f7441ae503b69fe811c19e08bb9c2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page