OpenCode 2.0
Agent Frameworks Open source (MIT), BYOK
AuthenticationOpen source (MIT), BYOK
Rate limitNo vendor limit. You pay your model provider for whatever the agent uses.
Documentation: opencode.ai ยท Checked Oct 19, 2026
About
OpenCode is a coding agent that lives in your terminal and writes code alongside you. You bring your own model key, and it works with more than 75 providers or a model running on your own machine. Version 2.0 can also run as a background service with an API and a software kit you can embed, so other tools can drive it too.
Details
Free software. Bring your own model key.
Auth: Open source (MIT), BYOK
Rate limit: No vendor limit. You pay your model provider for whatever the agent uses.
Verified: 2026-10-19
Best for: developer automation
Setup
- Install Node.js if you do not have it yet
- Run the install command to get the OpenCode command line tool
- Run opencode inside your project folder
- Pick a provider and paste in your model key when asked
- Type a coding task and watch it work
Example
npm i -g @opencode/cli@latestUse cases
- Have an agent write or fix code in your project while you watch
- Run it as a background service other tools can call
- Switch model providers without relearning a new agent