OpenCode logo

OpenCode

Free

The open-source AI coding agent. [#opensource](https://github.com/anomalyco/opencode)

FreeFree tier
Inputs: text, codeOutputs: text, code
Type
Open Source
Company
Anomaly

About OpenCode

OpenCode is an open source AI coding agent that helps you write code in your terminal, IDE, or desktop. It offers free models included or allows connecting any model from any provider (Claude, GPT, Gemini, etc.). Features include LSP enabled, multi-session, share links, GitHub Copilot and ChatGPT Plus/Pro login, support for 75+ LLM providers via Models.dev, and availability as terminal interface, desktop app, and IDE extension. It prioritizes privacy by not storing user code or context data. Used by over 7.5M developers monthly with 160K GitHub stars.

Key Features

LSP enabled: automatically loads the right LSPs for the LLM
Multi-session: start multiple agents in parallel on the same project
Share links: share a link to any session for reference or debugging
GitHub Copilot integration: log in with GitHub to use your Copilot account
ChatGPT Plus/Pro integration: log in with OpenAI to use your ChatGPT subscription
Any model support: 75+ LLM providers through Models.dev, including local models
Any editor: available as terminal interface, desktop app, and IDE extension
Privacy first: does not store any code or context data
Free models included

Pros & Cons

Pros
  • Free and open source with no hidden costs
  • Privacy-focused: does not store user code or context data
  • Supports a wide range of LLM providers including Claude, GPT, Gemini, and local models
  • Integrates directly with GitHub Copilot and ChatGPT subscriptions
  • LSP integration provides context-aware code assistance
  • Cross-platform desktop app (macOS, Windows, Linux)

Best For

Code generation and assistance in terminal, IDE, or desktop environmentsMulti-agent parallel coding sessions on the same projectPrivacy-sensitive development environments where code should not be stored externallyLeveraging existing AI subscriptions (GitHub Copilot, ChatGPT) for coding tasks

FAQ

How much does OpenCode cost?
OpenCode is free and open source. Free models are included, and users can optionally connect their own AI subscriptions.
Is OpenCode open source?
Yes, OpenCode is open source with over 160,000 GitHub stars and 900 contributors.
Can I use OpenCode in the terminal?
Yes, OpenCode is available as a terminal interface, as well as a desktop app and IDE extension.