# OpenCode

> Open-source terminal coding agent that works with hundreds of model providers.

- Website: https://opencode.ai
- Category: Coding & Development
- Source page: https://opendirs.com/en/tools/opencode
- Pricing: Open source
- Starting price: $0
- Public API: No
- Open source: Yes
- Chinese language: No
- Accessible from mainland China: Unknown
- Platforms: Unknown
- Country: United States
- Last verified: Nov 28, 2026

## Overview

OpenCode is an open-source AI coding agent that runs in your terminal, as a desktop app, or inside your IDE. It can read and edit files, run commands, and plan multi-step changes, and you can connect it to Claude, GPT, Gemini, local models, or many other providers instead of being locked to one vendor. Its client/server design and LSP integration make it popular with developers who want a Claude Code–style workflow that stays open and model-agnostic.

**Best for:** Developers who want an open, model-agnostic coding agent in the terminal.

## Key features

- Terminal UI agent that reads, edits, and refactors code across a repo
- Bring-your-own-model support for Claude, GPT, Gemini, and local models
- LSP integration so the agent sees real types and diagnostics
- Multiple sessions and shareable session links

## Use cases

- Implementing a feature end to end from a terminal prompt
- Running the same agent workflow against different LLM providers
- Refactoring or debugging a large repository with tool calls

## Pros

- Fully open source with an active community
- Not tied to a single model vendor
- Works in the terminal, desktop, and IDE

## Cons

- Costs depend on the model provider and API keys you connect
- Terminal-first workflow has a learning curve for GUI users

## Alternatives

- [Kilo Code](https://opendirs.com/en/tools/kilo-code.md)
- [Crush](https://opendirs.com/en/tools/crush.md)
- [Poolside](https://opendirs.com/en/tools/poolside.md)
- [Supermaven](https://opendirs.com/en/tools/supermaven.md)
- [Qwen Code](https://opendirs.com/en/tools/qwen-code.md)

## FAQ

### What is OpenCode?

OpenCode is an open-source AI coding agent that runs in your terminal, as a desktop app, or inside your IDE. It can read and edit files, run commands, and plan multi-step changes, and you can connect it to Claude, GPT, Gemini, local models, or many other providers instead of being locked to one vendor. Its client/server design and LSP integration make it popular with developers who want a Claude Code–style workflow that stays open and model-agnostic.

### Is OpenCode free?

OpenCode uses a Open source pricing model (verified Nov 28, 2026).

### Does OpenCode have an API?

As of Nov 28, 2026, OpenCode does not offer a public developer API.

### Does OpenCode support Chinese, and is it available in China?

OpenCode does not support Chinese, and it has unverified availability in mainland China.

### What are the best alternatives to OpenCode?

Popular alternatives to OpenCode include Kilo Code, Crush, Poolside, Supermaven.

_Last verified: Nov 28, 2026_