Open-source AI coding agent
OpenCode
OpenCode is an open-source coding agent from Anomaly for developers who want control over models, providers, permissions, and workflow. The terminal interface is the main draw, with desktop and IDE clients alongside it. It connects to 75+ model providers through Models.dev, including local models and existing ChatGPT, Claude, and GitHub Copilot subscriptions, and it does not store your code or context on its servers.
Best for
- Developers who want to choose their own model provider
- Terminal-first work across an existing repository
- Teams that want inspectable configuration and permission rules
- Developers who switch between planning and implementation
Not best for
- Teams that want one vendor to manage models, billing, and support
- Developers who do not want to configure providers or permissions
- Workflows that depend on polished visual diff review
Quick facts
- Vendor
- Anomaly
- Category
- Open-source AI coding agent
- Platforms
- Terminal, macOS, Linux, Windows via WSL, Desktop, Web, IDE extension
- Integrations
- OpenCode Zen, OpenRouter, GitHub, GitLab, MCP, ACP, LSP servers
- Pricing
- The agent is free and open source. Model usage is separate: connect your own provider account or use the usage-based OpenCode Zen service. Your final cost depends on the model and provider you select.
In Depth: OpenCode
Key features
- Terminal, desktop, web, and IDE interfaces
- Plan and Build modes for separating review from file changes
- Multiple model providers, including OpenCode Zen and OpenRouter
- Repository instructions through AGENTS.md
- MCP servers, custom tools, plugins, skills, and permission policies
- Session sharing plus GitHub and GitLab automation
Pricing and access
The agent is free and open source. Model usage is separate: connect your own provider account or use the usage-based OpenCode Zen service. Your final cost depends on the model and provider you select.
Plans and limits change often. Confirm current pricing on opencode.ai before you commit.