OpenCode

Open-source, model-agnostic terminal coding agent.

open sourcefree tierTerminal coding agent

Security note: on Oct 17, 2026 OpenCode disclosed a breach of OpenCode Console (its hosted service, not the open-source CLI) affecting 1.4% of Console users who had saved external AI provider keys; affected users were emailed, and Anthropic says it revoked Claude keys it believed were affected (per @opencode and Anthropic's Lydia Hallie on X). If you saved provider keys in the Console, rotate them. Separately, Pillar Security disclosed (Oct 19, 2026) a remote code execution flaw on Windows and WSL in versions 1.0.137 to 1.18.32: a malicious remote MCP server could run commands during MCP OAuth sign-in. It was fixed in 1.18.33 (Sep 28, 2026) without a CVE or advisory, so scanners won't flag it; upgrade to 1.18.33 or later (per Pillar Security and Infosecurity Magazine). New (Nov 2026): OpenCode Browse, an MCP server plus Chromium extension that lets OpenCode, Claude Code, Cursor, Codex, Zed and other MCP clients drive your real signed-in browser in background tabs, handing the tab back to you for logins, 2FA and payments; supports per-session site allowlists (opencode.ai/product/browse, checked 2026-11-09). Pricing re-checked 2026-11-18: Go $10/mo and Go Plus $40/mo unchanged on opencode.ai/go (32 models; works in OpenCode, Claude Code, Codex and Pi); opencode.ai/zen now lists per-1M-token prices for 29 models and no longer shows the $20 top-up/card-fee terms. On 2026-11-18 Hugging Face's harness-hub announced Qwen3.8-27B-opencode-adapted, an Apache-2.0 LoRA adapter for Qwen3.8-27B trained with RL to run as the model behind OpenCode; its model card reports SWE-bench Pro (hard 51) 35.3% → 51.0% and Terminal-Bench 2.1 46.4% → 52.4% under OpenCode with thinking off, using 6–8× fewer tokens than the base model thinking at max effort, with vLLM, llama.cpp and GGUF options for local use (https://huggingface.co/harness-hub/Qwen3.8-27B-opencode-adapted; announcement https://x.com/LysandreJik/status/2123053722888741340). Vendor-reported benchmarks, not tested by VibeTested. Zen price cut (checked 2026-11-23 on opencode.ai/zen): GLM-5.3 and DeepSeek V4.1 Flash are now 60% off list. GLM-5.3 is $0.56 input / $1.76 output / $0.104 cache read per 1M tokens (was $1.40 / $4.40 / $0.26). DeepSeek V4.1 Flash is $0.12 / $0.48 / $0.0024 (was $0.30 / $1.20 / $0.006). The page doesn't say how long the discount lasts. Misuse report (Nov 24, 2026): security startup Jesta says an attacker in Bucharest pointed OpenCode, Chrome and curl at a financial-services customer on Nov 16; Jesta flagged it as an AI agent after 64 seconds and the agent then used a planted decoy key, leaving after 5 min 44 s with nothing real. This is misuse of a general-purpose agent, not a reported OpenCode vulnerability (per jesta.ai/blog/vibeoffense and The Register, checked 2026-11-25; Jesta's logs are redacted and not independently verified). Mobile app (Nov 28, 2026): OpenCode launched a free iPhone/iPad companion app (App Store, published by Anomaly Innovations; requires iOS/iPadOS 26.0+). It is a remote for OpenCode V2 running on your own computer or server, not a standalone agent: browse sessions, send prompts (including images and dictation), review tool activity and answer permission prompts, using whatever models your server has configured; no separate account. Pair it with `opencode pair --remote` (one-time QR code/link, expires in 5 minutes, connects via OpenTunnel), or on the same Wi-Fi run `opencode service set hostname 0.0.0.0` once and then `opencode pair`. opencode.ai/mobile also lists a Google Play (Android) version (per apps.apple.com/us/app/opencode/id6788226734 and opencode.ai/mobile, checked 2026-11-30).

Visit OpenCode ↗

Websitehttps://opencode.ai
Best forFree terminal agent with any model
PricingFree (open source, bring your own provider); optional OpenCode Zen pay-as-you-go models at listed per-token prices; OpenCode Go $10/mo or Go Plus $40/mo model subscriptions (last checked 2026-11-23, source)
Free tierYes
Open sourceYes
LicenseMIT
Hands-on testTest coming

Machine-readable: Markdown · JSON dataset

Ranked in

Vibe Coding

Best open-source coding agent

#1 Cline

Vibe Coding

Best terminal coding agent

#1 Claude Code

For makers: add this badge

OpenCode is in our initial picks. Show it on your site or README; the badge links back to this page. About badges

#2 pick · Best open-source coding agent · VibeTested

OpenCode FAQ

How much does OpenCode cost?

Free (open source, bring your own provider); optional OpenCode Zen pay-as-you-go models at listed per-token prices; OpenCode Go $10/mo or Go Plus $40/mo model subscriptions (checked 2026-11-23 on https://opencode.ai/go).

Does OpenCode have a free tier?

Yes, OpenCode has a free tier.

Is OpenCode open source?

Yes, under the MIT license.

What are some alternatives to OpenCode?

Other Terminal coding agent tools listed on VibeTested include Aider, Claude Code, Gemini CLI, Grok Build CLI.

Alternatives to OpenCode

Aider

Open-source AI pair programming in your terminal, works with git and many LLMs.

open sourcefree tierTerminal coding agent

Claude Code

Anthropic's agentic coding tool that runs in your terminal and works on your codebase.

Terminal coding agent

Gemini CLI

Google's open-source AI agent that brings Gemini to the terminal.

open sourceTerminal coding agent

Grok Build CLI

SpaceXAI's open-source terminal coding agent (the grok CLI): a full-screen, mouse-interactive TUI that edits files, runs commands and searches the web, with plan mode, subagents, skills, hooks, MCP…

open sourcefree tierTerminal coding agent

All Vibe Coding tools →