OpenCode — Free AI Coding Agent

By Anomaly · AI tools
  • Open source
  • Free
  • AI tools
Download OpenCode Direct download from opencode.ai Official download page Link checked October 19, 2026

Our verdict: OpenCode is an open-source coding agent that you can drive from a terminal, a desktop app or an editor extension. The app is free under the MIT license and includes a rotating set of free models, or you can connect your own API keys, a ChatGPT or GitHub Copilot subscription, or local models. It suits developers who want agent workflows without being tied to one AI vendor.

OpenCode on its official website
OpenCode on its official website · Screenshot from the official website

About OpenCode

OpenCode is developed by Anomaly and the open-source community on GitHub. The agent reads your project, plans changes, edits files and runs commands, and it automatically loads language servers so the model gets accurate code information. You can run several agent sessions in parallel on the same project and share a link to any session.

OpenCode itself costs nothing. It connects to more than 75 providers through Models.dev, including Anthropic, OpenAI, Google and local models, and you can sign in with GitHub to use a Copilot plan or with OpenAI to use ChatGPT Plus or Pro. The developer also sells OpenCode Zen, a pay-as-you-go model gateway, and OpenCode Go, a $10 per month plan for open-source models. OpenCode states that it does not store your code or context data.

What it does well

  • Any model. Works with 75+ providers, local models and a set of free models.
  • Existing subscriptions. Signs in with GitHub Copilot or ChatGPT Plus and Pro accounts.
  • LSP support. Loads the right language servers automatically for better code edits.
  • Parallel sessions. Runs several agents on the same project at the same time.
  • Several interfaces. Available as a desktop app, terminal UI and VS Code, Cursor or Zed extension.

Who it is for

Good fit

Developers who want an open-source agent and freedom to choose or switch AI providers.

Look elsewhere

Users who want a full code editor with AI built in rather than a separate agent app.

Pros and cons

Pros

  • Free and open source under the MIT license
  • Not tied to one AI vendor; local models supported
  • Can reuse ChatGPT or GitHub Copilot subscriptions

Cons

  • The free model lineup changes and some models are limited-time
  • Strong models still require a paid provider or subscription
  • Fast release pace; OpenCode 1 and 2 cannot be installed side by side

How to install OpenCode

The download button gets the latest stable 64-bit Windows desktop installer. The terminal version installs separately with npm, Bun or the install script. On first start connect a provider with /connect or pick one of the free models; usage with your own API keys is billed by that provider.

Questions about OpenCode

Is OpenCode free?

Yes. OpenCode is free and open source under the MIT license and includes some free models. You pay only for the AI provider you connect, or optionally for OpenCode Zen or the OpenCode Go plan at $10 per month.

Does OpenCode store my code?

OpenCode states that it does not store any of your code or context data. Prompts are sent to the model provider you choose.

Can I use OpenCode with local models?

Yes. OpenCode supports local models as well as cloud providers.

Download OpenCode from opencode.ai ExeDepot does not host this file. The download starts from the developer's server, opencode.ai. Other versions are on the official download page.

Alternatives to OpenCode

  • goose AI Agent App

    Open-source AI agent desktop app that works with 15+ model providers and MCP extensions on your PC.

    goose contributors, Agentic AI Foundation (originally created by Block) · Open source · goose-docs.ai
  • Cursor AI Code Editor

    AI code editor based on VS Code, with a free plan that has limited agent and chat requests.

    Anysphere · Freeware · cursor.com
  • Devin Desktop (Windsurf) AI Code Editor

    Windsurf, now called Devin Desktop: an AI code editor and agent manager with a free plan.

    Cognition AI · Freeware · devin.ai
  • Google Antigravity IDE AI Code Editor

    Google's agent-first AI code editor with Gemini models, browser-using agents and a free plan.

    Google · Freeware · antigravity.google

Similar to OpenCode All ai tools apps

  • TRAE AI Code Editor

    AI code editor from ByteDance with an agent window, SOLO mode and a free plan limited to Auto mode.

    SPRING (SG) Pte. Ltd. (ByteDance) · Freeware · trae.ai
  • Kiro AI Code Editor

    AWS's agentic AI code editor built around specs, with a free tier of 50 credits per month.

    Amazon Web Services · Freeware · kiro.dev
  • Qoder IDE AI Code Editor

    Agentic AI code editor with next-edit suggestions, Ask and Agent chat, and a free plan with basic models.

    Bright Zenith Private Limited · Freeware · qoder.com
  • Notepad++ Text and Code Editor

    Fast tabbed editor for code, config files and logs.

    Don Ho · Open source · notepad-plus-plus.org