Coming Soon

TotaCode

Your terminal. Your rules. Any model.

totacode

The terminal agent you deserve

TotaCode is an open-source AI coding agent that lives in your terminal. Built in Python, powered by your choice of model, and fully under your control. No subscriptions, no vendor lock-in, no compromises.

Whether you prefer Claude, GPT, Gemini, or running models locally with Ollama — TotaCode has you covered with a beautiful terminal UI and a rich plugin ecosystem.

75+ LLM Providers
MIT License
0$ Subscription

Built for developers

Everything you need to code with AI in the terminal.

Beautiful TUI

Split-pane interface with file browser, diff viewer, and real-time streaming. Built with Textual.

Multi-LLM

Switch between Claude, GPT, Gemini, Ollama and 75+ more models mid-session. Your choice.

MCP Native

Connect to GitHub, Jira, Slack, databases and more through the Model Context Protocol.

Plugin System

Extend with Python plugins. Register commands, tools, and hooks. Install via pip.

Plan & Build

Dual-agent mode: read-only analysis before writing code. Tab to switch. No surprises.

Local-First

Run fully offline with Ollama. Your code, your data, your hardware. Zero cloud dependency.

See it in action

A real terminal agent. No compromises.

pizza-recipes
Plan
▎You build a pizza recipe webpage from scratch
▎TotaCode I'll build a single-page pizza recipe site — plain HTML + CSS, zero dependencies, mobile-first.
🔍 Plan — analyzing requirements
Needs: hero image, ingredient checklist, cooking steps
Layout: single page, responsive, warm Italian palette
Stack: vanilla HTML + CSS, no JS needed
⚡ Build — writing code
+ index.html — hero with pizza photo & title
+ css/style.css — warm color variables
+ index.html — ingredient checklist
+ index.html — 6 steps with numbered cards
+ css/style.css — responsive grid layout
+ index.html — "Buon appetito!" footer
▎TotaCode ✓ Done in 9.8s — 2 files created, open index.html
make it gluten-free

The roadmap

Building the best terminal coding agent, one milestone at a time.

Q3 2026

Foundation

  • Core agent loop (LLM + tools)
  • 6 essential tools (read, write, edit, bash, glob, grep)
  • Multi-provider support via LiteLLM
  • Configuration system (totacode.toml)
Q4 2026

TUI & Context

  • Full Textual TUI with split panes
  • Plan / Build dual mode
  • AGENTS.md project context
  • Session history & resume
Q1 2027

Ecosystem

  • MCP client & server
  • Plugin system (entry points)
  • Client/server architecture
  • One-shot mode (totacode run)
Q2 2027

Launch

  • Web UI (totacode web)
  • Plugin marketplace
  • Documentation & tutorials
  • PyPI release

Get started in seconds

One command. That's all you need. — planned, coming with MVP

Preview
1

Install

pip install totacode

Or with uv for faster installs

Preview
2

Configure

totacode init

Set your API key and model preference

Preview
3

Code

totacode

Start coding with AI in your terminal

Why TotaCode?

See how TotaCode compares to other terminal coding agents.

Feature TotaCode Claude Code OpenCode
License MIT — Completely Open Proprietary MIT
Price Free + Your API Key $20/month Free + Your API Key
Model Choice 75+ — Any provider Claude only 75+ providers
Offline Mode Full Ollama support Impossible Ollama support
TUI Quality Textual — Rich & Modern Basic terminal only Good, but less polished
Plugin System Python — pip install None TypeScript plugins
MCP Full client + server Client only Client only
Built With Python — Easy to extend TypeScript Go + TypeScript
Config Format TOML — Human friendly JSON JSON
Install Size ~15 MB (pip) ~200 MB (npm) ~50 MB (binary)
Session Resume Unlimited history Limited Limited
Slash Commands 25+ built-in ~8 ~12
Learning Curve Gentle — Python devs Steep Medium

Under the hood

Clean architecture, extensible design, built for speed.

Frontend
TUI (Textual)
Web UI
CLI
Core
Agent Loop
Session Manager
Tool Registry
Context Builder
Integrations
LLM Providers
MCP Client
Plugin System
Git
Storage
Local SQLite
File System
Remote Server

Powerful tools

Everything the agent needs to understand and modify your codebase.

read_file Read file contents with syntax highlighting
write_file Create new files with proper permissions
edit_file Precise string replacements in existing files
bash Execute shell commands safely
glob Find files by pattern matching
grep Search file contents with regex
webfetch Fetch and parse web content
task Delegate to sub-agents for parallel work

25+ Slash commands

More built-in commands than any other terminal agent. No plugins needed.

/plan Analyze code — read only, no edits
/build Switch to full write access mode
/review AI code review with suggestions
/test Generate unit tests automatically
/fix Auto-fix lint warnings & errors
/refactor Improve code quality & structure
/docs Generate docstrings & README
/explain Explain what code does in detail
/diff Show all pending file changes
/undo Revert last changes instantly
/model Switch AI model mid-session
/history Browse & restore past sessions
/search Semantic search entire codebase
/compact Summarize context, free memory
/init Create totacode.toml config
/config Edit project settings inline
/plugin Install & manage plugins
/mcp Configure MCP servers
/export Export session to markdown
/diagram Generate architecture diagrams
/benchmark Run performance benchmarks
/deploy Deploy to cloud platforms
/translate Translate comments & strings
/check Run linter + type checker
/todo Manage project task list
/restore Restore from session backup

Join the community

TotaCode is open source and community-driven. Here's how you can get involved.

Contribute on GitHub

Bug fixes, new features, documentation — all contributions welcome. Star the repo to show support.

View Repository →

Join Discord

Get help, share your plugins, discuss features, and connect with other developers using TotaCode.

Coming Soon

Write Plugins

Extend TotaCode with custom commands, tools, and integrations. Publish to PyPI and share with others.

Plugin Docs →

Frequently asked questions

Is TotaCode really free?

Yes, TotaCode is 100% open source under the MIT license. You only pay for the API costs of the LLM models you use (or nothing if you run local models with Ollama).

Which models are supported?

TotaCode supports 75+ models via LiteLLM including Claude (Anthropic), GPT-4 (OpenAI), Gemini (Google), Mistral, and local models through Ollama. You can switch models mid-session.

Can I use it offline?

Absolutely. With Ollama or llama.cpp running locally, TotaCode works fully offline. Your code never leaves your machine unless you explicitly configure cloud models.

How is this different from OpenCode?

TotaCode is built in Python (easier to extend with plugins), uses Textual for a modern TUI, and focuses on a cleaner plugin architecture. Both are open source and model-agnostic.

What about Claude Code?

Claude Code is proprietary and requires a $20+/month subscription. TotaCode is free, open source, and works with any model including Claude (via API key).

When will it be released?

The MVP is targeted for Q3 2026 with the full release in Q2 2027. Follow the GitHub repo for updates and early access.

Ready to code differently?

TotaCode is coming soon. Follow the project on GitHub to get notified when it launches.

Star on GitHub