Choose My Stack
Join free
OpenCode logo

OpenCode

Open SourceMITSelf-hostable

The open-source AI coding agent for your terminal, IDE or desktop — works with 75+ LLM providers so you're never locked to one model. A Claude Code alternative you fully control.

Open source alternative toClaude Code logoClaude Code

About OpenCode

OpenCode is what you reach for when you love Claude Code's terminal-native, agentic workflow but not being tied to a single vendor's models. It's an open-source AI coding agent that runs in your terminal, editor or a desktop app, and it speaks to 75+ LLM providers — so you decide which model writes your code and what you pay.

The design is client/server, which means the same agent can drive a slick terminal UI, an IDE extension or a remote session, and you can bring your own API keys or point it at local models. Nothing about your workflow is locked to one company's cloud.

It's MIT-licensed and moving fast, with a large and active community. For developers who want Claude Code's shape — an agent that reads, edits and runs your project from the command line — without the lock-in, OpenCode is the leading open answer.

Key features

  • 75+ LLM providersUse Anthropic, OpenAI, Google, local models and dozens more — swap the model behind the same agent anytime.
  • Terminal-native agentA fast TUI that reads, edits and runs your codebase from the command line, the way Claude Code does.
  • Client/server designDrive the same agent from a terminal, an IDE extension or a remote session.
  • Bring your own keyPoint it at your own API keys or local models — your code and spend stay under your control.

How to install OpenCode

The honest read

What we like
  • Works with 75+ model providers — no vendor lock-in
  • Terminal-native, fast and scriptable
  • MIT licensed and fully open source
  • Bring your own key or run local models
  • Very active development and community
Worth knowing
  • You supply your own API keys (or a local model)
  • Terminal-first workflow has a learning curve
  • Younger than some commercial rivals
  • Output quality depends on the model you plug in

FAQ

Is OpenCode free to use?

Yes — OpenCode is free and open source under the MIT license. You only pay for whichever LLM provider you connect, or nothing if you run a local model.

How is OpenCode different from Claude Code?

OpenCode is open source and provider-agnostic — it works with 75+ LLM providers and you bring your own key — while Claude Code is tied to Anthropic's models and platform.

Which models does OpenCode support?

It supports 75+ providers including Anthropic, OpenAI, Google and local models, so you can choose the right model per task.

Can I use OpenCode in my IDE?

Yes — its client/server design drives a terminal TUI, IDE extensions and remote sessions from the same agent.

Is OpenCode self-hostable?

Yes — you run it yourself and connect your own model providers, so nothing is locked to a hosted cloud.

Categories
Tags
#claude-code-alternative#ai-coding#terminal#agent#llm#byo-key#open-source
Built with
TypeScript logoTypeScriptGo logoGoNode.js logoNode.js

Similar open-source projects