# OpenCode

> Open source AI coding agent for the terminal, desktop and IDE that works with models from many providers.

OpenCode is an open source AI coding agent that runs in a terminal, a desktop app or an IDE extension. OpenCode is used by installing it with a script or package manager, choosing a model, either a bundled free one or one from over 75 providers, and asking the agent to work on a project.

**Best for:** Developers who want a coding agent they can inspect, run from the command line and pair with whichever model provider they prefer.

- Official site: https://opencode.ai
- Listed in: [AI Code Assistant](https://trendhub.net/ai-tools/category/code-assistant), [AI Agents & Automation](https://trendhub.net/ai-tools/category/ai-agents)
- Last checked: 2026-10-09 (facts taken from opencode.ai)
- Source page: https://trendhub.net/ai-tools/opencode-open-source-ai-coding-agent

## Key facts

- Platforms: macOS, Windows, Linux, Plugin
- Free plan: Yes
- Made by: Anomaly

## What is OpenCode?

OpenCode is an open source AI agent that helps developers write code from a terminal interface, a desktop app or an IDE extension. It is not tied to one model vendor. Some free models are bundled, and a user can instead connect Claude, GPT, Gemini or any of more than 75 providers listed through Models.dev, local models included. People who already pay for GitHub Copilot or ChatGPT Plus or Pro can sign in with those accounts and use them inside the agent. For each project OpenCode loads the appropriate language servers, so the model receives language-aware context. Several agents may run in parallel on one codebase, and any session can be shared as a link for reference or debugging. It installs by shell script, npm, bun or Homebrew. The maintainers state that code and context data are not stored. A companion service, Zen, offers a curated set of models benchmarked for coding agents.

## Key features

- **Model Choice**: Connects to over 75 LLM providers through Models.dev, including Claude, GPT, Gemini and locally hosted models.
- **Existing Subscription Login**: Signs in with GitHub to use a Copilot account, or with OpenAI to use a ChatGPT Plus or Pro plan.
- **LSP Support**: Automatically starts the correct language servers so the model works with language-specific information.
- **Multi-Session**: Runs multiple agents at the same time against the same project.
- **Share Links**: Creates a link to a session that teammates can open to review or debug what happened.
- **Terminal, Desktop and IDE**: Ships as a terminal interface, a desktop application and an editor extension.

## Use cases

- **Coding from the Terminal**: Ask the agent to implement or change code without leaving the command line.
- **Parallel Tasks**: Start separate agents on different parts of one repository.
- **Using a Local Model**: Point the agent at a model running on your own hardware.
- **Debugging with a Colleague**: Send a session link so someone else can see the full exchange.
- **Privacy-Sensitive Projects**: Work in environments where source code must not be retained by the tool.

## Things to know

- **Model costs depend on the provider**: Free models are included, but usage of a connected third-party provider or subscription is governed by that provider.
- **Zen is a separate offering**: The curated Zen model service is presented alongside the agent rather than as a requirement for using it.
- **Enterprise option**: The site has an Enterprise section for organisations in addition to the open source project.

## FAQs

### What is OpenCode?

OpenCode is an AI coding agent, released as open source, that assists with writing code from a terminal, an editor or a desktop application.

### Is OpenCode open source?

Yes. OpenCode is open source and developed on GitHub, where the site reports over 208,000 stars and 950 contributors.

### Is OpenCode free?

OpenCode includes free models, and you can alternatively connect models from other providers, which may carry their own costs.

### Which AI models does OpenCode support?

OpenCode supports more than 75 LLM providers through Models.dev, among them Claude, GPT and Gemini, as well as local models.

### Can I use my ChatGPT or Copilot subscription with OpenCode?

Yes. OpenCode lets you log in with OpenAI to use ChatGPT Plus or Pro, or with GitHub to use a Copilot account.

### Can OpenCode only be used in the terminal?

No. OpenCode is also available as a desktop app and an IDE extension.

### Does OpenCode store my code?

No. OpenCode states that it does not store your code or context data.

### What is OpenCode Zen?

Zen is a service from the OpenCode team that provides access to a selected set of AI models tested and benchmarked for coding agents.

---

Source: https://trendhub.net/ai-tools/opencode-open-source-ai-coding-agent (trendhub)
