OpenCode
Open-source terminal coding agent with a TUI, desktop app and IDE integration; plan/build agents, LSP support and any model provider.
- License
- MIT
- Platforms
- Windows, macOS, Linux, CLI
- Own API keys
- Yes
- Checked
- 2026-09-24
OpenCode works with OpenAI-compatible APIs. Grab a free key and a model from the catalog: for coding · for agents · providers and base URLs
OpenCode alternatives
Google's open-source terminal agent: coding, file and shell tools, web search grounding, MCP servers and a large context window.
OpenAI's lightweight coding agent for the terminal, written in Rust, with sandboxed command execution and IDE integrations.
Terminal coding agent adapted from Gemini CLI and optimized for Qwen Coder models.
Stylish terminal coding agent from Charm with LSP context, MCP support and per-session model switching.
AI pair programming in the terminal with a repository map, automatic git commits and support for almost any LLM.
Extensible on-machine AI agent that automates engineering tasks end to end, with MCP extensions and recipes.
FAQ
Is OpenCode free?
Free and open source; works with dozens of providers including OpenRouter and local models. OpenCode Zen currently offers several free models for a limited time (e.g. Nemotron 3 Ultra Free, Ling 3.0 Flash Fin Free).
Does OpenCode work with free models?
Yes. It supports your own keys and OpenAI-compatible APIs, so you can plug in free models from OpenRouter, Groq, NVIDIA Build, or a local Ollama.
What license does OpenCode use?
MIT. The source code is open.