officialrepo

anomalyco/opencode

★ 229k starsTypeScriptPublic
View on GitHub ↗

A community setup & usage guide for the opencode GitHub repository. Official repo: anomalyco/opencode

A powerful AI coding agent, built for the terminal.

What is opencode?

opencode is an open-source, provider-agnostic AI coding agent for the terminal. It works with many model providers and has a polished TUI. It is one of the most-starred terminal coding agents on GitHub.

Installation

Install script
curl -fsSL https://opencode.ai/install | bash
Homebrew
brew install anomalyco/tap/opencode
npm
npm install -g opencode-ai
npm
npm install -g opencode-ai
Install script (Git Bash / WSL)
curl -fsSL https://opencode.ai/install | bash
Install script
curl -fsSL https://opencode.ai/install | bash
npm
npm install -g opencode-ai
Run it
opencode
Verify
opencode --version

Usage

Open it in a project
cd your-project && opencode
Initialise project context
/init

Before you start

opencode v1 and v2 both use the opencode command and can't be installed side by side — check which version an install path gives you.

Official repository: github.com/anomalyco/opencode

FAQ

Which model does it use?

It's provider-agnostic — configure your preferred provider and API key.

Is it free?

The tool is open source; you pay only for whatever model provider you connect.

Where is the official opencode GitHub repository?

The official opencode GitHub repo is hosted at github.com/anomalyco/opencode. This page links straight to it and summarises how to install and use opencode.

Is this the official opencode repo?

No. officialrepo.com is an independent community guide. The official opencode GitHub repository is github.com/anomalyco/opencode — always treat that repo and its documentation as the source of truth.

This is an independent community guide. opencode and its logo are trademarks of their respective owner; officialrepo.com is not affiliated with or endorsed by the project or GitHub, Inc. The link above points to the genuine official repository.