Opencode¶
Opencode is a 100% open source AI coding agent built for developers who live in the terminal. It supports multiple AI providers and offers a polished TUI with vim-style navigation.
At a Glance¶
| Attribute | Value |
|---|---|
| Developer | SST (Serverless Stack) |
| License | MIT |
| Interface | TUI, Desktop App |
Philosophy¶
Opencode prioritizes provider freedom. Switch between Claude, GPT-4, Gemini, or local models without changing your workflow. Use the best model for each task, or run completely offline with Ollama.
The terminal-first design treats the CLI as a first-class citizen, not an afterthought. Vim keybindings, keyboard-driven navigation, and a clean TUI make it feel native to terminal workflows.
Being fully open source means you can inspect, modify, and self-host everything. No vendor lock-in, no telemetry concerns, no features hidden behind enterprise tiers.
Key Characteristics¶
One interface works with any LLM. Configure Anthropic for complex tasks, Groq for speed, vLLM for privacy and so on. Provider configuration is just JSON.
Built-in language server support. Go-to-definition, find references, and diagnostics work out of the box without MCP setup.
The client/server architecture lets you run the agent on a powerful remote machine and connect from your laptop. Reconnect to sessions after disconnecting.
Define custom agents with different tool access: a "plan" agent that can only read, a "build" agent with full access, a "reviewer" focused on code quality.
Who It's For¶
- Developers who want 100% open source tooling
- Teams using multiple AI providers or considering switching
- Terminal enthusiasts who prefer TUI over GUI
- Users who want to customize or contribute to the codebase
- Privacy-conscious developers or companies running local models
Learn More¶
| Resource | Link |
|---|---|
| Official Website | opencode.ai |
| Documentation | opencode.ai/docs |
| GitHub Repository | github.com/sst/opencode |
| Provider Setup | opencode.ai/docs/providers |