OpenCode

Last tested:

OpenCode is open-source AI coding agent for the terminal (category: Coding Agents (CLI & Cloud)). VibeToolRank agent test score: 9.2/10 (tested 2026-11-18, 3 runs, headless CLI, BYOK, gemini-3.5-flash-lite), T-7 of 27 tested Coding Agents (CLI & Cloud) tools. Pricing: Go $10/mo; Go Plus $40/mo; Zen pay-as-you-go ($20 prepaid). Free tier: Yes: open-source agent free with own keys; some free Zen models.

Key facts

Verdict: Headline 9.2 is the mean of T3 9.6, T4 9.5, and T5 8.5 (rubric v0.3).

Best for: trying an open-source terminal agent free, with no account or key (3/3 fixes in 18-22s).
Not ideal for: scripts that don't redirect stdin (it hung until we did).

VibeToolRank score
9.2/10
Cost per run
$0.076 / run
Rank
T-7 of 27 tested Coding Agents (CLI & Cloud)
Category
Coding Agents (CLI & Cloud)
Last tested
2026-11-18
Runs
3 runs
Outcome score
9.9/10
Edition tested
OpenCode CLI 1.19.6 headless (opencode run --format json), BYOK free-tier Google AI Studio key, google/gemini-3.5-flash-lite. Headline is T3+T4+T5 (rubric v0.3). OpenCode Zen, Go and the desktop app were not tested in this sitting.
Free plan, as measured
All nine T3/T4/T5 runs fit a free Google AI Studio key on 18 Nov 2026; $0.0764 per run at paid rates
Free plan
Yes: open-source agent free with own keys; some free Zen models
Price
Go $10/mo; Go Plus $40/mo; Zen pay-as-you-go ($20 prepaid)
Pricing checked
2026-10-16
Sources
opencode.ai/docs/go · opencode.ai · test log in our repo

Visit OpenCode

Pricing and free tier

Current official pricing (checked ): Go $10/mo; Go Plus $40/mo; Zen pay-as-you-go ($20 prepaid)

Is OpenCode free? Yes: open-source agent free with own keys; some free Zen models

Open source. Free Zen models work with no account or key but have a free-usage limit (we hit it on 16 Nov 2026; it had reset by 18 Nov). With your own key, cost follows the provider; our 18 Nov runs used a free Google AI Studio key.

verified-official official source · full-page-read. Official plan limits can change; re-check the vendor page before paying. Figures from our tests are recorded observations, not a current-capacity promise.

What we measured in our test (2026-11-18, 3 runs): All nine T3/T4/T5 runs fit a free Google AI Studio key on 18 Nov 2026; $0.0764 per run at paid rates OpenCode free tier: how far you get

Agent test verdict

Edition tested OpenCode CLI 1.19.6 headless (opencode run --format json), BYOK free-tier Google AI Studio key, google/gemini-3.5-flash-lite. Headline is T3+T4+T5 (rubric v0.3). OpenCode Zen, Go and the desktop app were not tested in this sitting.. Results may differ for the hosted product.

Tested 2026-11-18 · 3 runs · rubric v0.3 (provisional thresholds). Headline 9.2 is the mean of T3 9.6, T4 9.5, and T5 8.5 (rubric v0.3). T3 and T4 were 4/4 and 12/12 on all three runs; T5 was 20/20, 20/20 and 19/20. Cost per run is $0.0764, the mean of all nine runs on gemini-3.5-flash-lite. The previous T3-only score of 9.2 on the free Zen model stays in labelled history.

T3+T4+T5 The headline below is the mean of the T3, T4, and T5 task overalls (rubric v0.3). Speed uses fine wall-time bands (10 at ≤30s, then −1 per 120s), including a retroactive Speed on earlier T3 and T4 times. The previous v0.2 headline stays in labelled history and is not silently replaced.

DimensionScore /10
Outcome (40%)9.9
Speed (15%)9.5
Cost (15%)10
Developer experience (15%)7
Reliability (15%)8.3
Overall9.2

Cost per run: $0.076 / run

Task results

These are the sittings that make up the headline. T4 Outcome is 10 times the mean fraction of 12 held-out tests, and T5 Outcome is 10 times the mean fraction of 20 held-out tests, that the agent did not see during the run. Task tables on a v0.3 page use the v0.3 Speed bands.

T3 · 2026-11-18 · headless CLI, BYOK, gemini-3.5-flash-lite · 3runs · overall 9.6 · held-out 4/4, 4/4, 4/4

OpenCode CLI 1.19.6 headless (opencode run --format json), BYOK free-tier Google AI Studio key, google/gemini-3.5-flash-lite. Task score uses v0.3 Speed bands; the v0.3 headline is T3+T4+T5.

OpenCode fixed the seeded cart bug in 3/3 T3 runs (13.79s / 13.33s / 12.37s) on 2026-11-18. Test file unchanged. Mean cost $0.015155 per run.

DimensionScore /10
Outcome (40%)10
Speed (15%)10
Cost (15%)10
Developer experience (15%)7
Reliability (15%)10
Overall9.6

Cost per run: $0.015 / run

T4 · 2026-11-18 · headless CLI, BYOK, gemini-3.5-flash-lite · 3runs · overall 9.5 · held-out 12/12, 12/12, 12/12

OpenCode CLI 1.19.6 headless (opencode run --format json), BYOK free-tier Google AI Studio key, google/gemini-3.5-flash-lite. Task score uses v0.3 Speed bands; the v0.3 headline is T3+T4+T5.

T4 held-out 12/12 on all three runs (61.48s / 55.45s / 75.21s); visible 8/8; tests/ unchanged. Mean cost $0.067876 per run.

DimensionScore /10
Outcome (40%)10
Speed (15%)9.7
Cost (15%)10
Developer experience (15%)7
Reliability (15%)10
Overall9.5

Cost per run: $0.068 / run

T5 · 2026-11-18 · headless CLI, BYOK, gemini-3.5-flash-lite · 3runs · overall 8.5 · held-out 20/20, 20/20, 19/20

OpenCode CLI 1.19.6 headless (opencode run --format json), BYOK free-tier Google AI Studio key, google/gemini-3.5-flash-lite. Task score uses v0.3 Speed bands; the v0.3 headline is T3+T4+T5.

T5 held-out 20/20, 20/20, 19/20 (111.84s / 110.39s / 320.69s); visible 9/9; tests/ unchanged. Mean cost $0.146303 per run.

DimensionScore /10
Outcome (40%)9.8
Speed (15%)8.7
Cost (15%)10
Developer experience (15%)7
Reliability (15%)5
Overall8.5

Cost per run: $0.15 / run

Earlier tests Labelled history

These scores are kept as labelled history. They are not the current ranking score.

Previous headline — T3 only, rubric v0.1 2026-10-16 · CLI, free model · 3runs · overall 9.2

OpenCode CLI 1.19.2, free Zen model opencode/big-pickle, no account

T3-only score published 2026-10-16: 3/3 in 18–22s on the free Zen model opencode/big-pickle, no account or key, no cost data. Kept as labelled history when the v0.3 T3+T4+T5 headline was added. Not silently replaced.

DimensionScore /10
Outcome (40%)9
Speed (15%)10
Cost (15%)10
Developer experience (15%)7
Reliability (15%)10
Overall9.2

Adoption signals Not part of the score

Public GitHub metrics for context only. They do not affect our agent scores or rankings.

GitHub stars
224k (223,616) on sst/opencode
Fetched
· last push

How we tested

  • OpenCode CLI 1.19.6 headless (opencode run --auto --format json, stdin from /dev/null) with a free-tier Google AI Studio key, model google/gemini-3.5-flash-lite, isolated config in a scratch HOME, official v0.3 harness with bubblewrap as in docs/tests/amp/run.py. Tested 18 Nov 2026 (Australia/Sydney).
  • Task T3: seeded cart.js bug, 4/4 on all three runs (13.79s, 13.33s, 12.37s). Test file unchanged.
  • Task T4: promo checkout, 12/12 held-out tests on all three runs (61.48s, 55.45s, 75.21s). Hidden tests were not in the workdir during the run.
  • Task T5: vendored negotiator, 20 held-out tests: 20/20, 20/20, 19/20 (111.84s, 110.39s, 320.69s).
  • Earlier editions are labelled history: the 2026-10-16 T3-only score (CLI 1.19.2, free Zen big-pickle, 9.2), the 2026-11-13 T4/T5 attempts on big-pickle (hangs; one voided run), and the 2026-11-16 Zen retest that stopped at the free-usage limit.
Typographic record of the OpenCode T3 held-out grade on 18 November 2026.
T3 held-out grades 4/4, 4/4, 4/4. Hidden tests were copied in only after each run.
OpenCode T3 workdir diff from 18 November 2026.
Sanitized T3 workdir diff (first run with changes).
Table of OpenCode T3 run times, held-out grades and cost per run on 18 November 2026.
T3 timing (Australia/Sydney) and cost per run. Mean $0.015155.
Typographic record of the OpenCode T4 held-out grade on 18 November 2026.
T4 held-out grades 12/12, 12/12, 12/12. Hidden tests were copied in only after each run.
OpenCode T4 workdir diff from 18 November 2026.
Sanitized T4 workdir diff (first run with changes).
Table of OpenCode T4 run times, held-out grades and cost per run on 18 November 2026.
T4 timing (Australia/Sydney) and cost per run. Mean $0.067876.
Typographic record of the OpenCode T5 held-out grade on 18 November 2026.
T5 held-out grades 20/20, 20/20, 19/20. Hidden tests were copied in only after each run.
OpenCode T5 workdir diff from 18 November 2026.
Sanitized T5 workdir diff (first run with changes).
Table of OpenCode T5 run times, held-out grades and cost per run on 18 November 2026.
T5 timing (Australia/Sydney) and cost per run. Mean $0.146303.

Pros, cons and who it's for

Pros

  • Passed every T3 and T4 held-out test on all three runs and 59 of 60 T5 held-out tests
  • Fast: T3 in 12–14s and T4 in 55–75s on gemini-3.5-flash-lite
  • Headless JSON output reports split input, cached and output tokens plus cost for every step

Cons

  • opencode run still waits silently on an open stdin in scripts; redirect stdin from /dev/null
  • Bring-your-own-key setup needs a provider config file
  • Free Zen models hit a free-usage limit from our box on 16 Nov 2026 (it had reset by 18 Nov)

Who it's for: Developers who want an open-source terminal coding agent they can try for free and later point at their own model keys.

Free-tier limits: Open source. Free Zen models work with no account or key but have a free-usage limit (we hit it on 16 Nov 2026; it had reset by 18 Nov). With your own key, cost follows the provider; our 18 Nov runs used a free Google AI Studio key.

FAQ

Can I use OpenCode for free?

Yes. Free Zen models such as opencode/big-pickle work with no account or key, within a free-usage limit (we hit it on 16 Nov 2026; it had reset by 18 Nov). You can also bring a free Google AI Studio key, which is what our 18 Nov runs used.

How well did OpenCode do on our coding tasks?

On 18 Nov 2026 with gemini-3.5-flash-lite: T3 bug fix 3/3, T4 promo checkout 12/12 held-out tests on all three runs, T5 negotiator 20/20, 20/20 and 19/20. The v0.3 headline is 9.2.

What does a run cost?

About $0.076 per run on average across our nine runs with gemini-3.5-flash-lite. Our runs used a free key, so we paid nothing.

Any gotchas for automation?

Run it with stdin redirected (for example < /dev/null); with stdin left open, opencode run produced no output and hung until our timeout.

Who is OpenCode best for?

Based on our test: best for trying an open-source terminal agent free, with no account or key (3/3 fixes in 18-22s). Not ideal for scripts that don't redirect stdin (it hung until we did).

What was the cost per run for OpenCode in VibeToolRank's test?

$0.076 / run.

Related

OpenCode alternatives

Comparisons

Other Coding Agents (CLI & Cloud)

Featured in stacks

Best Coding Agents (CLI & Cloud) · Best free Coding Agents (CLI & Cloud) · All tools · How we test

Sources

Scores come from our own tests and are never for sale; sponsored placements are always labelled. Some links are affiliate links (currently Railway). Disclosure