Learn OpenCode, the free open-source coding agent - install, authenticate, use agents and local models.
What Is OpenCode OpenCode is a free, open-source terminal-based coding agent. It runs inside your project folder and can read files, search code, edit files and run commands while ...
Prerequisites You need Node.js installed on your machine. OpenCode is distributed as an npm package and also as a standalone installer for macOS and Linux. Install with npm Once ...
Starting a Session Type a task in plain language and the agent works through it: reading relevant files, making edits and running commands. Its transcript stays visible in the ...
Bring Your Own Key OpenCode works with most major providers. Add a key for Anthropic, OpenAI or Google, and the agent uses that provider's models for its work. Using Local Models ...