BotSherpa

AI agents / Coding agents

OpenCode logo

OpenCode

by Anomaly

Open-source AI coding agent for the terminal, desktop and web.

Short answer: OpenCode is a free, open-source (MIT) coding agent you can use in a desktop app, the terminal or on your phone. It comes with free models and needs no account to start. For stronger models you bring your own provider (200+ supported, including local models), log in with ChatGPT Plus/Pro or GitHub Copilot, or pay for OpenCode Go from $10 a month. Pick it if you want one agent that works with any model; pick Claude Code if you just want the best results with the least setup.

Updated 2026-11-27. Facts checked on official sites.

Open sourceFree optionCoding agents

Official site

Strengths
  • Open source (MIT)
  • 200+ model providers through Models.dev, including local models
  • Sign in with a ChatGPT Plus/Pro or GitHub Copilot plan
  • Optional low-cost Go model plans
Weaknesses
  • You manage provider setup
  • Model quality varies by provider
  • Go plans include Claude Haiku but not Sonnet or Opus (those are pay-as-you-go)
Best forDevelopers who want an open, provider-agnostic Claude Code alternative
Not forUsers wanting a single vendor-managed service
PricingFree and open source (MIT); optional pay-as-you-go Console credits; Go $10/mo, Go Plus $40/mo, Go Teams $20/member/mo
Open sourceYes (MIT)
CategoryCoding agents
Verified2026-11-10

What OpenCode is used for

OpenCode pricing and key facts

From the official site, checked 2026-11-27: opencode.ai, opencode.ai/docs/agents, opencode.ai/docs/providers, opencode.ai/docs/console/go, opencode.ai/docs/console/billing, github.com/anomalyco/opencode.

OpenCode FAQ

Is OpenCode free?

Yes. OpenCode is free and open source (MIT) and comes with free models you can use without an account. For other models you pay your own provider, use a ChatGPT or Copilot plan, buy Console credits or subscribe to Go.

How much is OpenCode Go?

Go is $10/month, Go Plus $40/month and Go Teams $20 per member per month (2-member minimum). The 5-hour limit is 20% of your monthly allowance and the weekly limit is 50%.

Can I use my ChatGPT or GitHub Copilot subscription with OpenCode?

Yes. OpenCode supports logging in with a ChatGPT Plus or Pro plan, or with GitHub Copilot.

Does OpenCode work with local models?

Yes. It supports local models, including Ollama, LM Studio and vLLM.

What is the difference between the Plan and Build agents?

Build is the default coding agent. Plan explores and plans without editing normal project files, and its shell commands remain permission-controlled.

How do I install OpenCode?

Run curl -fsSL https://opencode.ai/v2/install | bash, or npm install -g @opencode/cli. Bun and Homebrew installs are also listed, and the desktop app has downloads for macOS, Windows and Linux.

Who should pick OpenCode

OpenCode vs Claude Code vs Cline vs Aider

AgentOpen sourceWhat it costsWhere it runs
OpenCodeYes (MIT)Free, with free models; your own provider, or Go from $10/moDesktop app, terminal, mobile, SDK
Claude CodeNoIncluded in Claude Pro ($17/mo billed annually, $20 monthly) and higher plansTerminal, IDEs, Claude desktop app
ClineYesFree for individuals; pay for model use with your own keys or Cline creditsVS Code and other editors
AiderYes (Apache-2.0)Free; you pay your model providerTerminal
GitHub CopilotNoFree plan; Pro $10/moEditors, terminal (Copilot CLI), GitHub

Prices from each official site, checked 2026-11-27. Open-source agents still cost whatever your model provider charges.

Best AI coding agents compared · Best coding agent for the terminal · Claude Code vs Aider · All AI agents

Sources checked 2026-11-27: opencode.ai, opencode.ai/docs/console/go, claude.com/pricing, github.com/features/copilot/plans, cline.bot/pricing, github.com/Aider-AI/aider.

Alternatives

Open-source platform for autonomous coding agents (GUI, CLI, SDK, cloud).

+ Open source (MIT)
− Self-hosting takes setup

Open sourceFree optionCoding agents

Open-source, extensible local agent originally from Block, now under the Linux Foundation.

+ Open source (Apache-2.0)
− You bring models and keys

Open sourceFree optionCoding agents

Mistral's open-source command-line coding agent.

+ Open source (Apache-2.0)
− Centered on Mistral models

Open sourceFree optionCoding agents

Open-source terminal coding agent tuned for Qwen models.

+ Open source (Apache-2.0)
− Model weights have separate licenses

Open sourceFree optionCoding agents

Related task guides

Sources

Logo used to identify the product; trademarks belong to their owners. Pricing changes often, so confirm on the official site.