Your agentic CLI developer.
Project description
tunacode-cli
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 with formatted output
Tool rendering with syntax highlighting
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
- Run the setup wizard to configure your API key:
tunacode --setup
- 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.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7556fc13308d1025b75f1be8d1a0edc00ae025d7285abf3e91e400133523f77c
|
|
| MD5 |
ea900459edc29c0d5485becbb27c1097
|
|
| BLAKE2b-256 |
25bca54d67299b95743f5578f93944b6ff4d404717e663470d6033acf79855da
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2eb8e2cdef3606ed8724e786295eb1514fd910763166bf023b285f733b61c56
|
|
| MD5 |
5b558cfa25260cff6031f0574e529071
|
|
| BLAKE2b-256 |
6d1cf9a98b7a5d24e1fe5500b2d57e17e90f7441ae503b69fe811c19e08bb9c2
|