About OpenCode
OpenCode is an open-source coding agent with a full terminal interface. The default build agent edits files and runs commands, a read-only plan agent explores without touching code, and a general subagent takes on multistep searches.
It is provider-agnostic: link hosted models with /connect, use a subscription, or point it at local ones, and extend it with MCP servers, plugins and custom commands. On a CloudSat VPS, long tasks keep running in tmux after you log off.
The opencode CLI is installed and ready to start inside any repository, and opencode run handles one-off prompts in scripts and CI.
What you get with OpenCode
- Terminal UI with build, plan and general agents
- Tab switches between the primary agents
- Many built-in providers plus custom ones
- MCP servers, plugins and custom commands
- Non-interactive
opencode runfor scripts
OpenCode use cases
- Plan a change read-only, then let the build agent implement it
- Automate code fixes in CI with
opencode run - Keep an agent session alive on a remote box
After you deploy OpenCode
- Open an SSH session after the console lists the server as Running, then create a non-root user for development.
- Clone a repository, start
tmux, and launchopencodeinside the project. - Type
/connectto link a model provider, then press Tab to move between the build and plan agents. - Script recurring jobs with
opencode run '<prompt>', and keep provider keys out of the repository.
OpenCode ports
Open these in your firewall if you use one: 22/tcp SSH.
OpenCode FAQ
What separates the build and plan agents?
Build has full access to edit files and run tools. Plan is read-only: it denies edits by default and asks before shell commands, which suits reviews and exploration.
Does OpenCode need a paid subscription?
No. Bring your own key for a supported provider or run a local model; OpenCode also sells optional model access of its own.
Disclaimer. The OpenCode project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.