OpenCode Pricing
| Plan | Price | Notes |
|---|---|---|
| Open Source Coreofficial source ↗ | $0checked 2026-10-16 | Free, open-source software under the MIT license; local models via Ollama (auto-detected at 127.0.0.1:11434). |
| BYOK Direct Providerofficial source ↗ | Usage-basedchecked 2026-10-16 | Connect your own provider accounts or API keys from the models.dev catalog (or custom OpenAI-compatible providers); token costs are paid directly to the model provider. |
| OpenCode Zen Gatewayofficial source ↗ | Usage-basedchecked 2026-10-18 | Pay-as-you-go balance (auto-reload adds $20 when the balance falls below $5, adjustable or can be disabled; card fees 4.4% + $0.30 passed through, no other markup); per-1M-token rates by model; some models are free for a limited time, e.g. GLM-5.3-Flash Free, DeepSeek V4.1 Flash Free and Beam Free. |
| OpenCode Goofficial source ↗ | USD 10/monthchecked 2026-10-18 | Subscription to curated open models tested for agentic coding; usage limits per 5 hours and per month; top up credit if needed. |
| OpenCode Go Plusofficial source ↗ | USD 40/monthchecked 2026-10-18 | Everything in Go with higher limits and fewer interruptions. |
| Enterpriseofficial source ↗ | Customchecked 2026-10-16 | Team trial, then organization-wide rollout with SSO and internal AI gateway integration; pricing on request. |
structured from cited official pricing sources: “OpenCode is free and open source under the MIT license. You can run local models through Ollama, connect your own provider accounts and API keys and pay providers directly, or use OpenCode's model services. OpenCode Zen is a pay-as-you-go gateway (auto-reload of $20 when the balance falls below $5, card fees passed through at 4.4% + $0.30, no other markup) that also offers models free for a limited time, such as GLM-5.3-Flash Free, DeepSeek V4.1 Flash Free and Beam Free. OpenCode Go is a subscription to curated open models for $10/month, and Go Plus costs $40/month with higher limits. OpenCode Enterprise pricing is available on request.”
Compare plan costs — select tools to compare eligible subscriptions. Plans with unconfirmed prices, excluded product access, or additional usage charges are omitted.
Self-hosting cost
OpenCode is open source under the MIT license. Self-hosting does not add a software license fee, but you still pay for infrastructure, operations, and any external model or API usage.
Free & cheaper Terminal & CLI Tools
same category, free plan or open-source license
FAQ
How much does OpenCode cost?
OpenCode is free and open source under the MIT license. You can run local models through Ollama, connect your own provider accounts and API keys and pay providers directly, or use OpenCode's model services. OpenCode Zen is a pay-as-you-go gateway (auto-reload of $20 when the balance falls below $5, card fees passed through at 4.4% + $0.30, no other markup) that also offers models free for a limited time, such as GLM-5.3-Flash Free, DeepSeek V4.1 Flash Free and Beam Free. OpenCode Go is a subscription to curated open models for $10/month, and Go Plus costs $40/month with higher limits. OpenCode Enterprise pricing is available on request. Paid pricing starts at $10/month.
Does OpenCode have a free plan?
Yes — OpenCode is open source and free to use.
Can you self-host OpenCode for free?
OpenCode is open source under the MIT license. Self-hosting does not add a software license fee, but you still pay for infrastructure, operations, and any external model or API usage.
What are free or cheaper OpenCode alternatives?
Claude Code, Amp, Ghostty are in the same category with a free plan or open-source license.
pricing is editorial catalog data (last verified October 18, 2026) — vendors change plans; confirm on the official site before you buy. Reuse this data under CC-BY 4.0 via /data.