OpenCode Pricing
| Plan | Price | Notes |
|---|---|---|
| Open Source Coreofficial source ↗ | $0checked 2026-09-03 | 100% free open-source software under the MIT license with $0 software licensing fees; local model inference via Ollama or vLLM. |
| BYOK Direct Providerofficial source ↗ | Usage-basedchecked 2026-09-03 | Connect direct API keys for 75+ providers (OpenAI, Anthropic, Gemini, Grok, Bedrock); pay-as-you-go token metering directly to the model vendor. |
| OpenCode Zen Gatewayofficial source ↗ | Usage-basedchecked 2026-09-03 | Optional unified pay-as-you-go API gateway providing single-key access across multiple frontier model providers. |
structured from cited official pricing sources: “OpenCode is 100% free and open-source under the MIT license with $0 software licensing fees. Developers can run local models via Ollama at zero marginal cost, configure their own BYOK API keys across 75+ providers paying token costs directly to model providers, or optionally route requests through the OpenCode Zen pay-as-you-go gateway.”
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 100% free and open-source under the MIT license with $0 software licensing fees. Developers can run local models via Ollama at zero marginal cost, configure their own BYOK API keys across 75+ providers paying token costs directly to model providers, or optionally route requests through the OpenCode Zen pay-as-you-go gateway.
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, Cursor, Amp are in the same category with a free plan or open-source license.
pricing is editorial catalog data (last verified September 3, 2026) — vendors change plans; confirm on the official site before you buy. Reuse this data under CC-BY 4.0 via /data.