Skip to content
Agents tracked: 284 Downloads (7d): 239M down 5.7% GitHub stars: 6.3M VS Code installs: 151M Releases (7d): 339 Agent status: 2 with issues Updated Oct 9, 2026

Open-source agent with a cheap model, paid per token

Developers who prefer open source and want to pay only for what they use.

CostPay as you go: about $0.20-1.72 for an example task (1M input + 100K output tokens) with the models below

What is in it

RolePartWhy
Coding agent OpenCode
OpenCode is free and open source with free models included and support for any...
Open source, works with any provider and model.
Everyday model GLM-5.3 Flash
$0.15 / $0.5 per 1M tokens
Fast and very cheap for edits and small tasks.
Harder tasks DeepSeek V4 Pro
$1.32 / $3.96 per 1M tokens
Switch to it for planning and tricky bugs.
Library docs Context7
Free for individuals with 1,000 API calls a month. Pro is $10 per seat a month with...
Up-to-date docs through MCP.

Set it up

  1. npm install -g opencode-ai
  2. Connect a provider in OpenCode (an API key from Z.ai, DeepSeek or OpenRouter) and pick the model per session.
  3. Set OpenCode permissions to ask for shell commands: it runs freely by default.

Trade-offs

You manage API keys and spending yourself, and open models need more steering on large refactors. OpenCode has no sandbox, so keep command approvals on.

Read more →

Comments

  • Using this stack? Share what worked and what did not.

Other stacks

All stacks

Claude Code on a $20 plan, without hitting the limit Plan with a frontier model, code with a fast one A coding agent with guardrails for a team