The economical
coding agent.

Saves tokens, brain cycles, computer power, and your privacy.

╶──╮ ╶──┤ 3code v0.7.1 the economical coding agent ╶──╯ provider zaicode model glm-5.3 type a prompt. :help for commands. :q or Ctrl-D to exit. ❯  

Reliable AI-assisted programming

Compared to coding by hand, AI-assisted coding can be a lot less independent. You're buying from a provider, who will have

The usual remediy for any unpredictable system is redunancy- one stops working, next kicks in. But if you're running a provider's ecosystem, you can't do that- they do everything they can to make switching harder. That's why I made 3code- it's a free and open source AI assisted coding agent that As a heavy command-line and no-chrome tiling window manager user- everything else feels like noisy token burner that's going to run away with my data any time.

Get started

1

Get a provider

use your existing subscription

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.

More providers

2

Install 3code and enter your API key

$ 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
3

Run your first prompt

❯ Build me a Hello World program in Nim

The 3E in 3code

The 3 in 3code is third-party: your coding agent doesn't have to come from the company that sells you your models. Any provider, any model, and if yours starts doing unreliable things you switch providers instantly, without friction, and get back to coding. The 3 is also the three E's the design hangs on:

E1
Token efficiency

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.

E2
Computer efficiency

No lap burn, longer battery life, and a machine that stays snappy even with dozens of agents running side by side.

E3
Ergonomics

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.

Community

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.

The spirit of the place, straight from the welcome thread: create software in the best possible way, with common sense and without fear or doubt. Tokens are what it takes to write code now, so use as few as you can. The docs are an ever growing list of how to get things done, and tips land on the forum now and then. Two rules only: stay on topic (making good use of 3code, and its development) and be nice. Self promotion is fine, show us what you made.

join the forum

Data to back it up

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!

SWE-bench Verified: tasks resolved
10-task subset, five agents on Z.ai GLM-5.3 via the same LiteLLM proxy, 600s per-task cap, vanilla configs
3code 7 / 10
pi 6 / 10
zcode 6 / 10
hermes 6 / 10
opencode 6 / 10
Total tokens
batch total across all 10 tasks
3code 4,209,360
pi 4,641,357
zcode 4,766,000
hermes 6,072,610
opencode 6,771,747

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.

Rerun: GLM-5.3, six agents incl Claude Code
same 10 tasks, 2026-09-05/06, rows ordered by total token use (prompt + output, cache-inclusive)
3code 5.1M · 9 / 10
pi 7.2M · 6 / 10
opencode 10.0M · 9 / 10
zcode 14.2M · 6 / 10
hermes 16.8M · 7 / 10
claude 23.1M · 8 / 10

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.

Output tokens
batch total across all 10 tasks
3code 71,751
pi 117,707

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.

Earlier round: GLM-5.2 vs opencode
same 10-task subset, same LiteLLM proxy
3code ~295k non-cached input
opencode ~1.45M non-cached input

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.

Technical Details

3code enterprise

3code makes a subscription last five times longer. That saving compounds across a team. I can make it happen in your company.

Central providers, model control, spending limits. Same agent your engineers already want to use, rolled out as a team tool.

schedule a call

Contributing

Patches welcome at github. Open an issue, send a PR, or just try the bleeding edge and report back.

Testing

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
Founder led, founder held