Saves tokens, brain cycles, computer power, and your privacy.
3code does a few very low-hanging-fruit token usage optimizations that make a real difference, and an algorithm to keep context low
Low resource usage- more RAM, less CPU- that means longer runs on battery
A well behaved unixy interface that has just enough chrome to reflect tokens streaming but is still very quiet
Somewhat batteries included- web search is in there, sandbox is in there, cross platform
Somewhat extensible- skills and command line tools, but mostly geared to just stay out of your way
Tip: you can use expensive models on small subscriptions with 3code. Leave the task and it will continue automatically when your 5h window resets.
3code also supports moonshot's Kimi (both subscriptions and api), Deepseek, OpenRouter, and many others.
$ curl -fsSL https://3code.capocasa.dev/install | sh
$ curl -fsSL https://3code.capocasa.dev/install | sh
> irm https://3code.capocasa.dev/install.ps1 | iex
$ mkdir myprojectdir
$ cd myprojectdir
$ 3code
╶──╮
╶──┤ 3code v0.7.1 the economical coding agent
╶──╯
no provider configured. let's add one. (ctrl+d to quit)
supported: deepinfra, ovh, nvidia, nebius, fireworks
api key : ************************
provider name or url : nvidia
verifying... ok
saved to ~/.config/3code/config
❯ Build me a Hello World program in Nim
3code exists, and was made the way it is, because of a few very simple observations about AI coding- made from far away Munich, Germany, where most hype is quickly drowned in a perfectly tapped quart mug of Lager.
The purpose of 3code is to find and use simple, common sense measures to be as token efficient as possible with existing providers, and make it as seamless as possible to switch providers to increase your bargaining power. Switching from Claude to Codex is still a big step- style is different, skills stop working. If you are used to GLM and the z.ai coding plan is down, you can just swap in mistral in the same session. This drives prices down.
3code also adheres to my- Carlo's- ideas about what good software is.
I came up with this neat little naming shtick- the 3 in 3code. It stands for
Give it a spin and tell me what you think in https://community.3code.capocasa.dev!
Your bills are lower and your plan lasts longer. Free-tier tokens do real work, and you stop thinking twice before asking. Nothing else about your setup has to change: just swap the agent.
No lap burn, longer battery life, and a machine that stays snappy even with dozens of agents running side by side.
No distractions, no gimmicks, and a learning curve so low you are productive in minutes. You stay focused, so more of what you build actually works.
The forum is open at community.3code.capocasa.dev. Install help is available there, along with everything else: questions, frustrations, tips, or anything you made with 3code.
Testing token performance properly is really hard and expensive. I'm running preliminary tests that involve a 10-task subset of SWE-bench. While this is far from perfect, it does show an interesting ballpark comparison of different coding agents. 3code is doing pretty good! Working on a 40 test version now and working the way up. Did I note hardly anyone else is doing independent agent benchmarks?
3code used 9% fewer tokens than pi and resolved one more task. Output tokens are the starkest gap: 71,751 for 3code vs 117,707 for pi — a 1.6× difference, and on a pay-per-token API that's money on every single turn.
Every agent hit 93–99% context-cache reads on the Z.ai coding plan, so spend tracks context volume: Claude Code processed 4.6× 3code's tokens to resolve one fewer task. 3code and opencode tie at 9/10, with 3code doing it at half the tokens. See the full report, grid and methodology.
Terse output is a design decision in 3code; pi's chattier reply style is a design decision in pi. On a pay-per-token API, that difference is money on every single turn.
On the same tasks with GLM-5.2, 3code yielded 4× savings vs opencode — 75% fewer tokens across the board — and resolved a task opencode failed. Zero eval errors, zero unresolved patches. See the blog post, full per-task data and methodology, and the GLM-5.2 round.
Carlo can help discover how to benefit from lower costs and more predictable AI assisted coding in your company.
Patches welcome at github. Open an issue, send a PR, or just try the bleeding edge and report back.
Install the latest main branch build (no tagged release needed):
# macOS / Linux
$ curl -fsSL https://3code.capocasa.dev/main/install | sh
# Windows (PowerShell)
> irm https://3code.capocasa.dev/main/install.ps1 | iex