
Open source AI coding agent for your terminal, desktop app, or IDE extension, with support for any model.

OpenCode is an open source AI coding agent that runs in your terminal, as a desktop app, or as an IDE extension. It supports free built-in models or lets you connect models from over 75 providers, including Claude, GPT, and Gemini, as well as local models.
You can log in with GitHub Copilot or a ChatGPT Plus/Pro account, or bring provider API keys. Parallel sessions let you run several agents on the same project. The code is MIT-licensed on GitHub. OpenCode is free to use with included free models; connecting other providers may add their own costs. The project says it does not store your code or context data unless you use its free models.
OpenCode is free to use and includes free models. If you connect another provider, that provider may charge its own fees.
OpenCode offers a handpicked set of validated models through OpenCode Models, plus models from 75+ LLM providers via Models.dev, including local models. You can also log in with GitHub Copilot or a ChatGPT Plus/Pro account.
No, the free models can be used without creating an account.
Yes. OpenCode is available as a terminal interface, a desktop app, and an IDE extension.
Yes, OpenCode supports multi-session use so you can start multiple agents in parallel on the same project.
OpenCode does not store your code or context data unless you use its free models; in that case data is stored as described in the privacy documentation.
OpenCode is open source under the MIT License, and the source code is public on GitHub where anyone can file issues, submit pull requests, or extend functionality.
Yes. You can log in with your GitHub Copilot account or with OpenAI to use a ChatGPT Plus or Pro account.
OpenCode is written in TypeScript, run with Bun, and uses a client/server architecture.