Skip to content
aitoolfor.org

OpenCode

Open-source AI coding agent for the terminal

Open sourceOpen source

What is OpenCode?

OpenCode is an open-source terminal coding agent with a polished TUI, LSP integration and support for 75+ model providers, including local models and subscription logins. It also offers desktop and IDE clients. Its optional Zen service provides curated models at cost.

Best for: Developers who want a Claude Code-style terminal agent that works with any model.

Is OpenCode free?

Yes, OpenCode is open source, so you can self-host it for free. It's a good fit for developers who want a Claude Code-style terminal agent that works with any model. Free alternatives include Aider and Gemini CLI. Limits change, so confirm on opencode.ai.

Pros

  • +Model-agnostic, including local models
  • +Open source with a polished TUI
  • +LSP-aware edits

Cons

  • −Results depend on the model you choose
  • −Fast-moving project

How much does OpenCode cost?

OpenCode is free to self-host because it's open source.

Free plan
Free and open source (MIT); bring your own model provider
Paid from
—
Trial
—

We couldn't verify OpenCode's prices on its site. Vendors change plans often, so confirm before buying.

OpenCode alternatives

All OpenCode alternatives →

OpenCode FAQ

Is OpenCode free?

OpenCode is open source and free to self-host.

What are the best OpenCode alternatives?

The best OpenCode alternatives are Claude Code, Aider, Gemini CLI, Kilo Code and Cursor. Aider, Gemini CLI and Kilo Code have a free plan.

Who is OpenCode best for?

Developers who want a Claude Code-style terminal agent that works with any model.

More AI coding assistants

See all →