Open-source AI coding agent that lives in your terminal. Install, connect models, and ship code faster."> Skip to content
open source · MIT · v1.0

The AI coding agent that lives in your terminal.

Install opencode, connect your preferred models, and ship code faster with a native terminal experience.

~/project — opencode
$ opencode init
$ opencode --model gpt-4 --timeout 300
✓ tests passed
⚠️ Dependency update available
Error: Connection timeout
$ opencode

# features

keyboard

Terminal-native interface

Full-featured TUI with vim-like controls, split panes, and instant feedback.

opencode --watch
hub

Bring your own models

Connect to any OpenAI-compatible API or run local models with Ollama.

export OPENAI_API_KEY=...
lock

Local-first privacy

All processing happens on your machine. No data leaves your environment.

opencode --local-only

# how it works

  1. 01

    $ install

    Install via npm, brew, or download the binary. Zero configuration needed.

  2. 02

    $ connect

    Set your API key or point to a local model. Works with any provider.

  3. 03

    $ ship

    Start coding. Get real-time suggestions, refactoring, and test generation.

# testimonials

opencode transformed my workflow. I ship features 3x faster with zero context switching.

Alex Rivera

@alexr · Senior Engineer

Finally, an AI coding agent that respects my terminal muscle memory.

Jordan Lee

@jordanlee · Open Source Maintainer

The local-first approach gives me confidence to use it on sensitive projects.

Taylor Chen

@taylorchen · DevOps Lead

# pricing

Free

$0

Open-source core with essential features.

  • checkTerminal-native TUI
  • checkLocal model support
  • checkBasic completions
Download

Team

$40/user/mo

Scalable solution for engineering teams.

  • checkAll Pro features
  • checkSSO & SCIM provisioning
  • checkAdmin dashboard
  • checkCustom model routing
Contact sales

# faq

What are the system requirements? expand_more
opencode runs on macOS 12+, Linux (Ubuntu 20.04+, Fedora 36+), and Windows 10/11 via WSL2. Requires Node.js 18+ or Rust toolchain for binary installation.
Which models and providers are supported? expand_more
Any OpenAI-compatible API (OpenAI, Anthropic, Azure, local Ollama, Llama.cpp). Configure via environment variables or config file.
Is my code and data private? expand_more
Yes. In local mode, all processing stays on your machine. With cloud models, only prompts and context are sent to your chosen provider—we never store your code.
What license is opencode released under? expand_more
MIT License. See GitHub for details.
Can I contribute or self-host? expand_more
Absolutely. opencode is open-source. Contribute via GitHub or self-host the registry for air-gapped environments.

Ready to code in your terminal?

Install opencode today and experience AI pair programming without leaving your shell.

$ npm install -g opencode-ai
Get started