LogoTrendingDevTools
icon of OpenCode

OpenCode

OpenCode is an open-source AI coding agent for your terminal, desktop and IDE that works with any model provider and does not store your code.

Visit Website

Introduction

What is OpenCode?

OpenCode is an open-source AI coding agent. It runs in your terminal with a rich text interface, and also offers a desktop app and IDE extension. You can connect it to almost any model provider or use the free models it includes, and it works with your existing tools and language servers. OpenCode emphasizes privacy: it does not store your code or context data. It is one of the most popular open-source coding agents on GitHub.

Key features

  • Terminal UI: a fast, keyboard-driven interface in the terminal.
  • Desktop app and IDE extension: use the same agent outside the terminal.
  • Any model: connect many LLM providers, or use the free models included.
  • LSP support: loads language servers so the agent understands your code.
  • Multi-session: run several agent sessions in parallel on the same project.
  • Privacy-first: OpenCode does not store your code or context data.
  • Agents and commands: customize agents, rules and commands for your workflow.

Who is it for?

OpenCode is for developers who want a capable coding agent without being locked into one model vendor, terminal users who like open-source tools, and privacy-sensitive teams that want control over where code goes. Because it is open source, teams can inspect how it works, adapt it to their own workflows and avoid depending on a single company's roadmap.

Use cases

  • Building features and fixing bugs from the terminal
  • Exploring and explaining unfamiliar codebases
  • Running parallel agent sessions on different tasks
  • Comparing models on the same coding task
  • Automating repetitive refactors

Pricing

OpenCode is free and open source. It includes free models, and you can connect your own model provider. See the official OpenCode site for details on its optional paid offerings.

OpenCode v1.19.4 was released on October 22, 2026, following v1.19.3 on October 16, 2026 (release notes).

Getting started

  1. Install OpenCode with curl -fsSL https://opencode.ai/v2/install | bash, or with a package manager such as npm or Homebrew (see opencode.ai).
  2. Run opencode in your project folder.
  3. Connect a model provider or choose an included free model.
  4. Ask the agent to explain the codebase or make a change.
  5. Review the edits, then commit.

Alternatives

Claude Code, Codex, Gemini CLI and Aider are other terminal coding agents. Cline and Goose are open-source agents for editors and desktop, and Cursor, Zed and Kiro are AI-first editors.

FAQ

Is OpenCode free? Yes. OpenCode is open source and includes free models; you can also connect paid providers.

Which models does OpenCode support? Many model providers, plus the free models it includes.

Does OpenCode store my code? No. OpenCode says it does not store your code or context data.

Can I use OpenCode outside the terminal? Yes. There is a desktop app and an IDE extension.

How do I install OpenCode? Use the install script from opencode.ai or a package manager such as npm or Homebrew.

ℹ️

Affiliate Disclosure: TrendingDevTools may earn a commission if you sign up through links on this page, at no extra cost to you.

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates