Short answer
Install OpenCode Desktop with omarchy pkg add opencode-desktop, then open it from the app launcher and connect a provider once. It shares the CLI config and credentials, so a provider login from the CLI carries over.
OpenCode Desktop on Omarchy
OpenCode Desktop on Omarchy is the beta desktop app for the open-source OpenCode agent: the same terminal agent in a window, running as many agents as you want in parallel, with every change visible in a browser beside them.
TL;DR
omarchy pkg add opencode-desktop
That installs OpenCode Desktop (176.5 MB download, 551.9 MB installed, depends on the opencode CLI package plus Electron libraries). Open it from the app launcher, connect a provider once, and start an agent. The app itself is free and MIT licensed; you pay your chosen LLM provider for API usage. The Omarchy package version was not shown on the app page and is unconfirmed; upstream’s desktop changelog reached v2.4.1 on Nov 23, 2026.
Getting started (5 minutes)
1. Open it and connect a provider.
Launch OpenCode Desktop from the app launcher. It is an Electron window that runs OpenCode’s server on a loopback port and talks to it: the same agent as the TUI, with no terminal. If you already use the OpenCode CLI, your provider login carries over, because both share ~/.config/opencode/ and the stored credentials. If this is your first time with OpenCode, connect a provider: pick one from the picker and paste your API key (Anthropic, OpenAI, Google, or any of 75+ providers). With no paid key, OpenCode Zen offers free models through OpenCode’s own gateway, and OpenCode Go is a $10/month subscription for its best models.
2. Start your first agent.
Open a project folder and describe what you want done. Start with a read-only task: “Take a look at this project and explain its main directories.” The desktop app shows the agent’s work with a browser view beside it, so you can watch files change without switching windows. Run several agents in parallel on different tasks or different repos.
3. Three things worth doing in the first session:
- Learn build vs plan mode. The same two agents as the CLI ship here: build (full access, the default) and plan (read-only analysis). Start in plan mode on a repo you have not worked in yet.
- Set two models. Put your main model in
modeland a small cheap model insmall_modelin~/.config/opencode/opencode.json. This is the single biggest cost saver in OpenCode, and the desktop app reads the same file as the CLI. - Lock permissions before the first real run. The defaults allow almost everything except reading
.envfiles. On untrusted code, setbashandedittoaskinopencode.json. Useask, notdeny, forread: denying the read tool can break OpenCode’s free-tier models.
Common issues & fixes
You installed the desktop app and the CLI, and they behave like different versions
This is a known 1.x vs 2.x trap. The download buttons on opencode.ai/download and the Homebrew cask serve the OpenCode 2 app, while other routes (Scoop, some docs) still served the OpenCode 1 CLI, so people ended up with an OpenCode 2 app beside an OpenCode 1 CLI and two different feature lists.
Fix: On Omarchy, install both from the official repo (omarchy pkg add opencode-desktop pulls in opencode as a dependency) and check both versions match: opencode --version in a terminal, and the version shown in the app. If they disagree, remove the one installed by another route. (Caprock OpenCode Desktop guide)
Free models fail with “OpenCode’s free tier can only be used from within OpenCode”, even though you are inside the desktop app
The free tier is served through OpenCode’s Zen gateway, and the gateway checks that each request looks like one OpenCode would send. A denied read permission is enough to trip it. The same error is by design if you use the free models from another app, a proxy, or a direct API call: the pinned thread #59387 says free models only work inside OpenCode.
Fix: Run opencode debug config, find any read deny (including "*": "deny" and "tools": { "read": false }), change it to "ask" or remove it, and try again. The desktop app is affected the same way as the CLI, since it talks to the same server. If you are outside OpenCode, use a paid model or Go instead. (Engineer Foodie guide, DEV investigation)
Every request fails with “Upstream request failed: Invalid credential”
This is OpenCode’s own gateway refusing a stored OpenCode Console (Zen) or Go key, not a key for Anthropic or OpenAI. A maintainer’s explanation on the tracker: “This happens when your stored OpenCode API key has expired. Several older keys stopped working after the console migration.” Reinstalling or switching models does not help.
Fix: Sign in to OpenCode again from the CLI with opencode auth login, or create a new key in the OpenCode Console (Account, then Personal API keys, in the workspace that holds your credit or Go subscription) and connect that one. The desktop app shares the CLI’s stored credentials, so fixing it in one place fixes both. (Everpod guide)
The app is in beta and something in the desktop UI breaks or behaves oddly
OpenCode labels the desktop app beta, and its issue tracker carries open desktop bugs.
Fix: When the window misbehaves, the CLI is the fallback for the exact same agent and config: run opencode in a terminal in the same project and your sessions, providers, and opencode.json are all there. Report desktop bugs on the OpenCode tracker with the app version, the OS, and the steps, and keep the CLI as your working setup in the meantime. (Caprock OpenCode Desktop guide)
The install is huge for a coding agent, over 550 MB installed
That is the Electron shell plus the bundled CLI and its runtime libraries, and the size on the app page (551.9 MB installed) is expected, not a broken install.
Fix: If disk space matters, install the CLI alone with omarchy pkg add opencode (275.3 MB installed) and skip the desktop app. You lose the parallel-agents window and the browser view, but the agent itself is identical. (Omarchy package listing)
Pairs well with / If you hate this, try
Pairs well with
- The OpenCode CLI (same agent, same config, for terminal and headless work), git (review diffs before committing), and Ollama for a local model with zero API spend.
If you hate this, try
- If you hate the beta desktop app: use the OpenCode CLI in a terminal, or try the ChatGPT desktop app with Codex (
openai-codex-desktop) for a stable vendor app. If you want a desktop agent that is not a beta, the GitHub Copilot app is the other mainstream pick.
Comparison: OpenCode Desktop vs OpenCode CLI vs Codex Desktop vs Claude Code
| OpenCode Desktop | OpenCode (CLI) | OpenAI Codex Desktop | Claude Code (CLI) | |
|---|---|---|---|---|
| Price | Free app; you pay your provider, or free Zen models | Free CLI; you pay your provider | Free app; needs ChatGPT plan ($8/mo Go and up for real use) | Requires Claude Pro $20/mo+ |
| Best for | Running several OpenCode agents in parallel in a window | Terminal work, headless runs, scripting | A stable vendor desktop app with Codex Cloud | The strongest single-vendor models, no key juggling |
| Omarchy install | omarchy pkg add opencode-desktop | omarchy pkg add opencode | omarchy pkg add openai-codex-desktop | npm install -g @anthropic-ai/claude-code |
Verdict: Pick OpenCode Desktop if you already use OpenCode and want the same agent in a window with several agents running side by side. Pick the CLI if you live in a terminal or disk space matters, and Codex Desktop if you want a stable, non-beta vendor app and already pay for ChatGPT.
How to switch from Claude Code (~15 minutes per project)
- Export from Claude Code: your project instructions already live in
CLAUDE.md. OpenCode readsAGENTS.md; copy the contents across or run/initin the CLI and let it generate one from the codebase. - Import into OpenCode: move MCP servers into
~/.config/opencode/opencode.json, and connect your existing provider keys with/connectoropencode auth login. The desktop app reads the same config, so set it up once and both the app and the CLI use it. - What doesn’t transfer: chat history, Claude-specific slash commands and permission modes, and Claude Code’s GitHub Actions integration. OpenCode has its own plan mode, parallel agents in the desktop app, and
opencode runfor scripting instead. - Time estimate: takes about 15 minutes per project.
Open the OpenCode Desktop package
See the live version, upstream screenshot, requirements, source and exact Omarchy install command.
Frequently asked questions
Is OpenCode Desktop free?
The app itself is free and open source (MIT). You pay your chosen LLM provider for API usage, or use OpenCode Zen’s free models, a free-tier provider key, or a local model. OpenCode Go is a $10/month subscription for its best models.
Is OpenCode Desktop the same as the OpenCode CLI?
Yes, same agent. The desktop app is an Electron window that runs OpenCode’s server on a loopback port and talks to it. It shares the CLI’s config and credentials, and the desktop package depends on the CLI package.
Is it stable?
It is labeled beta by OpenCode, and its issue tracker carries open desktop bugs. The CLI is the fallback for the same agent and config when the window misbehaves.
Where does OpenCode Desktop store its config?
It shares the CLI config: global config at ~/.config/opencode/opencode.json, TUI settings at ~/.config/opencode/tui.json, and stored credentials at ~/.local/share/opencode/auth.json. Project config goes in opencode.json at the project root.
Can I run several agents at once?
Yes, that is the point of the desktop app: run as many OpenCode agents as you want in parallel, see every change in a browser beside them, and pick them up on any device.
Does it work offline?
Only with a local model. Every hosted provider needs network access.
Official sources
- Omarchy package listing: opencode-desktop (176.5 MB download / 551.9 MB installed, MIT)
- OpenCode Desktop download page, changelog v2.4.1 Nov 23, 2026
- OpenCode docs, desktop app and install routes
- OpenCode Desktop, beta status, 1.x vs 2.x mixup, Electron server on loopback
- OpenCode 2 install, desktop app, version tracker
- “Upstream request failed: Invalid credential” fix, console migration
- “Free tier can only be used from within OpenCode” error, read-permission trigger, GitHub #56324 and #59387
- Free-tier error investigation
- OpenCode CLI guide (this guide’s companion)
Commands and fixes verified against official sources November 2026; on-machine verification pending.