OpenCode – The open source AI coding agent
TL;DR Highlight
OpenCode is an open source coding agent that plugs into 75+ LLM providers
Who Should Read
Developers who want a coding agent they can pair with any model instead of being locked into one vendor's tool
Core Mechanics
- An agent for terminal, IDE, and desktop
- OpenCode ships as a terminal interface, desktop app, and IDE extension.
- It describes itself as an open source coding agent.
- Bring any model
- It supports 75+ LLM providers through Models.dev, including local models.
- You can connect Claude, GPT, Gemini and others, or use included free models.
- Use existing subscriptions
- Log in with GitHub to use your Copilot account.
- Log in with OpenAI to use ChatGPT Plus or Pro.
- Developer conveniences
- It automatically loads the right LSPs (language servers for diagnostics and completion) for the LLM.
- You can run multiple agents in parallel sessions on one project.
- You can share a session link for reference or debugging.
- Claims privacy first
- It says it does not store your code or context data, so it can run in privacy-sensitive environments.
- Scale and extras
- It cites 208K GitHub stars, 950 contributors, 13,000+ commits, and 16M monthly developers.
- Zen is a handpicked set of models tested and benchmarked for coding agents.
Community Reactions
- Mixed views on release speed
- One commenter said the very fast release cadence means little testing, no proper changelogs, and frequently broken features.
- Another said an issue they raised was fixed in about 2 days and liked the speed.
- Security defaults called risky
- A commenter said it is unsafe outside a container and exposes the whole disk through a REST endpoint.
- They also claimed the web UI is served from OpenCode's servers and unknown requests get forwarded there.
- Chat summaries reportedly go to Grok free tier
- A commenter said prompts are sent by default to Grok's free tier to generate UI summaries.
- Setting a custom small model in settings changes this.
- Experience with cheap and swapped models
- One user said they went 2 months without Claude using the $10 Go plan and a spec-driven workflow.
- Another ran local Qwen 3.5 as a fallback and found the harness great but local models slow.
How to Apply
- Change the small model to one you trust
- Set a custom small model in settings so summary requests don't go to an external free tier.
- Check network traffic afterward to confirm nothing leaves unexpectedly.
- Run it only inside a container
- Use Docker or a VM before pointing it at company code.
- Mount only the project folder to limit access.
- Assign different models per role
- Give subagents different models: a stronger one for planning and review, a cheap or free one for simple coding.
- Compare results on the same task across models.
Try It
# Run in a terminal (after install, inside your project folder)
curl -fsSL https://opencode.ai/v2/install | bash
cd {{project path}}
opencodeTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques