# OpenCode

CreateWithAI Hub page: https://createwithaihub.com/ai-agents/opencode
Latest version of this file: https://createwithaihub.com/ai-agents/opencode.md

- Type: AI agent · Category: AI Agents
- Publisher: OpenCode team (anomalyco)
- Pricing: Free · License: MIT
- Runs on: Web, macOS, Windows, Linux

Open-source AI coding agent with a terminal UI, desktop app and web app, supporting many LLM providers.

OpenCode is an open-source coding agent available as a terminal interface, a desktop app (beta) and a web app. It includes a full-access build agent and a read-only plan agent you can switch between, plus a general subagent for multi-step searches. It has built-in support for many LLM providers and suits developers who want a provider-neutral terminal agent.

Useful for: Exploring an unfamiliar codebase safely with the read-only plan agent, then switching to the build agent to make changes.

## Key features

- Built-in build (full access) and plan (read-only) agents, switched with Tab
- General subagent for complex searches
- Model catalog from models.dev, connected with /connect; ChatGPT Plus/Pro sign-in supported
- Local models through Ollama, LM Studio or vLLM with automatic discovery
- Terminal UI, desktop app (beta) and web app
- Install via script, npm, Homebrew, Arch, mise or Nix

## Connection

- Interface: Terminal / CLI, Web, Desktop app
- Model choice: Bring your own model
- Runs: On your machine

## Install steps from the official documentation

Install script:

```
curl -fsSL https://opencode.ai/v2/install | bash
```

npm:

```
npm install -g @opencode/cli
```

Homebrew:

```
brew install anomalyco/tap/opencode-v2
```

## Limitations

- Windows package managers are not supported for install
- Desktop app is in beta
- You pay your chosen model provider; OpenCode Go is an optional paid model subscription

## Official links

- Website: https://opencode.ai
- Source repository: https://github.com/anomalyco/opencode
- Documentation: https://opencode.ai/docs
- Source: https://github.com/anomalyco/opencode (README: install commands, desktop app platforms, built-in agents; MIT LICENSE; github.com/sst/opencode redirects here)
- Source: https://opencode.ai/docs (Interfaces, provider support, install commands, Windows package manager note)
- Source: https://opencode.ai/docs/providers (Provider catalog from models.dev; Ollama, LM Studio and vLLM local discovery; OpenCode Go optional subscription; ChatGPT plan sign-in)
