# opencode

> opencode is a freemium open-source agent for coding. Open source coding agent for your terminal, desktop, phone and code. It is available on Web, iOS, Android, macOS, Windows, Linux, CLI, API and Self-hosted.

- **Kind:** Agent
- **Pricing:** Freemium
- **Starting price:** $10 a month
- **Platforms:** Web, iOS, Android, macOS, Windows, Linux, CLI, API, Self-hosted
- **Website:** https://opencode.ai
- **Repository:** https://github.com/anomalyco/opencode
- **GitHub stars:** 230,265
- **License:** MIT
- **Categories:** [coding](https://ai-powered.com/categories/coding-agents)
- **Listing updated:** 2026-12-01

## About

Point it at a codebase and it reads, edits and runs work alongside you, with models from more than 200 providers, including local ones. A free set of models works without an account, and you can bring a subscription you already pay for, such as ChatGPT Plus or GitHub Copilot.

OpenCode runs in several places that share the same sessions. A terminal interface works in any shell or remote server, a desktop app is in beta for macOS, Windows and Linux, and a mobile app lets you check on and approve sessions away from your computer. An SDK lets scripts and CI jobs drive it directly.

Control sits with you: permissions decide which actions run automatically and which wait for approval, and a read-only plan agent is available for exploring unfamiliar code before any edits happen. Plugins, custom agents, skills and slash commands let teams shape the agent to their own workflows. The project is MIT licensed and aimed at developers who want a model-agnostic coding assistant.

## Features

- **Multi-provider model access:** Connects to over 200 LLM providers through Models.dev, including local models.
- **Terminal, desktop and mobile:** The same agent is available as a terminal UI, a desktop app and a phone app.
- **Parallel sessions:** Runs several agents at once on the same project.
- **Permission controls:** Chooses which actions run automatically and which need approval.
- **MCP and plugins:** Connects local and remote MCP servers and supports event-hooking plugins.
- **Custom agents and skills:** Defines agents with their own prompts, models and tools, plus reusable SKILL.md workflows.
- **Undo and redo:** Rolls back recent file and conversation changes with /undo.

## Good for

- Working through an unfamiliar codebase with a read-only planning agent before making changes
- Running multiple coding agents in parallel on the same repository
- Approving or steering an agent session from a phone while away from the desk
- Driving coding tasks from scripts or CI jobs through the SDK
- Reusing team workflows as slash commands and skills

## FAQ

### Do I need an account to start?

No. OpenCode comes with a set of free models and needs no account to begin.

### Can I use my own AI subscription?

Yes. You can log in with ChatGPT Plus or Pro or GitHub Copilot, or use an OpenCode subscription.

### What is the license?

OpenCode is MIT licensed and its source is on GitHub.

### Which platforms does opencode run on?

The terminal runs in any shell, the desktop app covers macOS, Windows and Linux, and there is a mobile app for iPhone and Android.

### What are the best alternatives to opencode?

The closest alternatives to opencode are command-code, cline, openclaude, agenc-core and nanocoder.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [command-code](https://ai-powered.com/agents/command-code): command-code is a paid hosted agent for coding.
- [cline](https://ai-powered.com/agents/cline): cline is a freemium open-source agent for coding.
- [openclaude](https://ai-powered.com/agents/openclaude): openclaude is an open-source agent for coding.
- [agenc-core](https://ai-powered.com/agents/agenc-core): agenc-core is an open-source agent for coding.
- [nanocoder](https://ai-powered.com/agents/nanocoder): nanocoder is an open-source agent for ai models and llm tooling.
- [Harny](https://ai-powered.com/agents/harny-2): Harny is an open-source agent for coding.
- [munder-difflin](https://ai-powered.com/agents/munder-difflin): munder-difflin is an open-source agent for multi-agent frameworks.
- [keen-code](https://ai-powered.com/agents/keen-code): keen-code is an open-source agent for coding.

---
Source: https://ai-powered.com/agents/opencode-2
