opencode
An open-source AI coding agent for the terminal that works with many model providers.
What is opencode?
opencode is an open-source coding agent with a terminal interface. It can read and edit your project, run commands and use language models from many providers, so you can choose the model that fits your budget and needs.
opencode is built for developers who like working in the terminal. It provides a rich text interface for chatting with an agent about your codebase.
Its main difference is provider flexibility: you can connect different model providers, including local models, rather than being tied to one vendor.
It uses language server information to understand code and supports sessions so you can return to earlier work.
As an open-source project, it evolves quickly with community contributions.
Key features of opencode
- Terminal UI: A full interface inside your terminal.
- Multi-provider: Use many model providers or local models.
- Code edits and commands: Change files and run tasks.
- LSP awareness: Uses language servers to understand code.
- Sessions: Resume and share past sessions.
What you can use opencode for
- Daily coding in the terminal
- Comparing models on the same task
- Refactors and bug fixes
- Working with local models for privacy
Pros and considerations
Strengths
- Free and open source
- Not locked to one model vendor
- Developer-friendly interface
Things to check
- You manage API keys and costs.
- Fast-moving project; expect changes.
- Results depend on the model you choose.
opencode pricing
Open source. opencode is free and open source; you pay your chosen model provider for usage.
Who opencode is best for
Developers who want an open, provider-agnostic coding agent in the terminal.
Independent listing by AI Agent Help, last reviewed October 2026. Features and pricing change; check the official website for the latest details. Spot something out of date? Tell us.
Frequently asked questions
Is opencode free?
Yes, it is open source. Model usage is paid to your provider.
Which models does it support?
Many providers, plus local models, depending on configuration.
Does it work in an IDE?
It is terminal-first; check the project for editor integrations.