OpenCode: What It Is, What It Costs, and How to Start
How OpenCode works in your repository, which models and subscriptions it accepts, and how to start a terminal session with a question about your code.
Published

OpenCode lets you ask a question about the code in front of you, then change the model answering it without changing terminal tools. Anomaly builds the open-source coding agent and lists 200+ model providers. You can try your first project question with a free model before connecting an account.
What is OpenCode?
OpenCode is a program you run against a project directory. A model interprets your request. The agent gives it ways to look up files, change code and run commands in that project. If you already have it installed, the hands-on OpenCode walkthrough picks up from there.
Anomaly and its contributors develop OpenCode under the MIT license. On November 25, 2026, the project homepage pointed to the anomalyco/opencode repository. Look for that owner when choosing a download.
Think of a telescope with interchangeable eyepieces. The telescope stays pointed at the same object while the lens changes what you see. Here the project stays open in OpenCode while you choose the model. Installing the agent gives you the instrument. It doesn’t install the models in its catalog.

Where does the work happen?
Open the terminal interface in a shell or inside your editor. If you prefer to read file changes side by side, the desktop app shows diffs, the lines added and removed, on macOS, Windows and Linux. There’s also a web interface you can pair with your running instance, a Docker image for running the agent in a container, and an SDK for calling it from your own scripts.
The browser interface can look like a hosted development environment. The difference shows up when you leave your desk. OpenCode works against the project on the machine running the agent. The phone app lets you steer sessions on that computer from Android or an iPhone via TestFlight. Installing the remote on a phone doesn’t give you a hosted IDE or a new machine with a copy of your code. How the mobile connection works
Which models and subscriptions can you use?
If you already pay for ChatGPT Plus or Pro, open /connect, choose OpenAI, then Sign in with ChatGPT. Usage counts against that plan. GitHub Copilot uses a device sign-in and requires an account with Copilot Chat access. After connecting, use /models to see what your account can use. That list answers a different question from the full catalog. Provider sign-in instructions
You can also bring a provider API key. OpenCode’s catalog includes Anthropic Claude, OpenAI GPT and Google Gemini models. For a local model, the docs describe connecting to Ollama on your machine. Ollama needs to be running with a model already downloaded. Choosing local execution matters if you want the model itself to process your question on your hardware.
OpenCode free models and OpenCode Go
The agent is free, including account-free models such as Big Pickle while offered. For paid access, use provider billing, Console pay-as-you-go, or OpenCode Go from $10 per month.
For a first session, choose an available free model. If your project depends on one particular model, check its name and availability in the Console model catalog before choosing how to pay.
Start a first session in your terminal
Pick a repository you know well enough to check an answer. For a web app with user accounts, ask OpenCode to trace a sign-in. You can judge the explanation by opening the relevant file before giving the agent an editing task.
Install the terminal client
On macOS or Linux, the current installation docs give this command. Windows users can get a standalone CLI binary from the same page.
Bashcurl -fsSL https://opencode.ai/v2/install | bashOpen the project
Use your own repository’s path in place of the example directory. In the shell, run the two lines from the terminal guide.
Bashcd ~/code/my-project opencodeAsk about the code
Inside OpenCode, type the guide’s example question and press Enter.
Explain how authentication works in this project
Open a file named in the answer. If the explanation is too broad, type
@to select that file and ask about the particular function that checks a session. Terminal guide and example prompts

For exploring unfamiliar code, select Plan through /agents. Plan leaves ordinary project files alone, though it can write plan files and has permission-controlled shell access. Build is the default agent for making changes. Pick it when you can describe the edit and recognize a correct diff. Built-in agent permissions
When do OpenCode skills or OpenCode plugins help?
A skill gives the agent reusable instructions in a SKILL.md file. If every release review follows the same checklist, that checklist is a candidate for a skill. A plugin runs your own code when an event occurs. Use one when you need a programmed response to an event. For the authentication question above, a file reference is enough.
OpenCode vs Claude Code and OpenCode vs Codex CLI
- OpenCode fits a developer who wants to compare models on the same repository or use a local model without learning a new agent for each provider.
- Claude Code is Anthropic’s coding agent. If you already work in Claude and want its terminal workflow, start with the OpenCode and Claude Code comparison.
- Codex CLI is OpenAI’s terminal agent for inspecting, editing and running code. If you already use ChatGPT, the terminal agent comparison can help you decide whether provider choice is worth a switch.
Where can I use OpenCode Desktop?
Choose the desktop app if you want a visual view of file changes. You can keep using your existing editor for the surrounding work.
Do I need an OpenCode login?
You can start with an included free model before creating an account. Connecting a subscription is a separate choice you make inside the agent.
How do I open the OpenCode web interface?
Run opencode pair to get a link for the web interface of your running instance. The project stays on the machine running OpenCode.
Who should try it?
Try OpenCode if your next task is in an existing repository and you have a reason to choose who supplies the model. If you need a ready-made computer and editor in the cloud, look for a hosted development environment. If you’re still deciding which part of the setup you want to control, the guide to open-source coding agents explains the options. Freebuff’s ad-supported approach offers another way to fund terminal assistance.
- Published
- Category
- Build








