anomalyco/opencode
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.
Full README, loaded live from the official repository: github.com/anomalyco/opencode
Installation
curl -fsSL https://opencode.ai/install | bashbrew install anomalyco/tap/opencodenpm install -g opencode-ainpm install -g opencode-aicurl -fsSL https://opencode.ai/install | bashcurl -fsSL https://opencode.ai/install | bashnpm install -g opencode-aiopencodeopencode --versionUsage
cd your-project && opencode/initBefore 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.