cat README.md
OpenCode
Open-source AI coding agent that connects to 75+ AI providers and runs in your terminal, IDE, or desktop with LSP integration and multi-session support.
curl -fsSL https://opencode.ai/install | bashopencode --helpWaiting for input...What makes OpenCode different
75+ AI provider support
Works with any AI provider — Anthropic, OpenAI, Google, Groq, Ollama local models, and 70+ more through an extensible provider system.
Developers can use existing subscriptions (ChatGPT Plus, Copilot) or choose the best model for each task without being locked into a single provider.Multi-surface workflow
Available as a terminal TUI, VS Code extension, and desktop app with seamless session sync across all surfaces.
Developers can start a task in the terminal, refine it in the IDE, and share results via session links — all from the same agent.Privacy-first design
OpenCode does not store any code or context data. No telemetry, no data retention, and full local control.
Privacy-sensitive teams can use OpenCode in regulated environments without worrying about data leaving their control.LSP integration
Automatically loads the right Language Server Protocol configurations for the LLM, giving it deeper code understanding.
Better context leads to more accurate edits and fewer hallucinations when working with unfamiliar codebases.Your first command
curl -fsSL https://opencode.ai/install | bashReady. Run --help to explore.How developers use OpenCode
Multi-provider experimentation
Switch between Claude, GPT, Gemini, and local models mid-session to compare results for different coding tasks.
Privacy-sensitive development
Use OpenCode with local models via Ollama for fully offline, zero-exfiltration coding assistance.
Team collaboration via session sharing
Share session links with teammates for code review, debugging help, or reproducing issues.
How OpenCode compares
OpenCode supports 75+ providers and stores no code data. Claude Code offers deeper Anthropic model integration but locks you into a single provider.
Questions
Q: What should I check before using OpenCode?
Start with one safe workflow for OpenCode. Inspect official setup instructions, required credentials, execution logs, approval points, and failure recovery before expanding from a sandbox task into production automation.
Q: Is OpenCode open source?
OpenCode is listed with MIT based on the official source links in this profile. Re-check the repository, model card, or docs before production use.
Q: Who should evaluate OpenCode?
OpenCode is most worth evaluating for developers who want a model-agnostic coding agent with maximum provider flexibility.