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.43.tar.gz (2.7 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.43-py3-none-any.whl (376.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tunacode_cli-0.1.43.tar.gz
  • Upload date:
  • Size: 2.7 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.43.tar.gz
Algorithm Hash digest
SHA256 c71d66f58f9798342f6a81093133f9ffe901d5c0210f654ca8993db18f47ac80
MD5 547677df779625b40a036e62d2a1048e
BLAKE2b-256 a8fd80bc1179e02a49b23fcea11e558f4223e0b8c1778c1158348aec5015a90b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tunacode_cli-0.1.43-py3-none-any.whl
  • Upload date:
  • Size: 376.9 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.43-py3-none-any.whl
Algorithm Hash digest
SHA256 305e1c33d318dba402352b893e7581eedec5e918cfd4b350c596d38601902014
MD5 6027772dbd1dfc59249d46fcfd0736b9
BLAKE2b-256 3a1f8b387ac60155d43999d297237ee38a3979720d3bfe78f3b431c919b835a4

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