How to Use OpenCode: Quick Start, 7 Practical Tips, and When to Add Oh My OpenCode
Updated on

OpenCode is an open-source AI coding agent built for the terminal, with a desktop app, an IDE extension, and a provider-agnostic model layer. For most developers, the useful question is not "can it write code?" It is "when should I stay with plain OpenCode, and when should I add a heavier orchestration layer like Oh My OpenCode?"
The short version: start with plain OpenCode first. Learn its plan and build workflow, generate a real AGENTS.md, and get comfortable with permissions and custom commands. Then add Oh My OpenCode if you want more aggressive multi-model routing, background specialists, and a more opinionated "keep going until the task is done" harness.
If you want broader context first, start with the AI Coding topic hub, How to Use Codex, and Parallel Code Agents Explained. If you are comparing agent frameworks at a higher level, OpenClaw vs ZeroClaw vs Pi Agent vs Nanobot is the better comparison page.
Quick answer: should you use plain OpenCode or pair it with Oh My OpenCode?
| Your situation | Best setup | Why |
|---|---|---|
| You want an open-source coding agent with sane defaults | OpenCode | It already gives you terminal UX, plan/build modes, rules, permissions, and provider flexibility |
| You are exploring an unfamiliar repo | OpenCode plan agent first | It keeps analysis separate from edits and lowers the risk of messy early changes |
| You want repeatable repo workflows | OpenCode + AGENTS.md + custom commands | This gives you the highest leverage before adding more orchestration |
| You are doing large, multi-step, or multi-model work | OpenCode + Oh My OpenCode | The pairing is stronger when you want orchestration, background agents, and more opinionated task completion |
| You are new to AI coding agents and want the fastest stable path | OpenCode alone for your first week | Baseline behavior is easier to understand before you layer in a harness |

OpenCode already covers the core loop most developers need: understand the codebase, plan the change, edit safely, and work from a terminal-first interface. The pairing with Oh My OpenCode is useful, but it is not the first step.
What OpenCode actually is
OpenCode is an open-source AI coding agent built around a terminal-first workflow. Official docs and the current README describe it as:
- a TUI-first coding agent
- a desktop app in beta
- an IDE extension
- a provider-agnostic system that can work with OpenAI, Anthropic, Google, and other model backends
- a toolchain with built-in agents, permissions, custom commands, rules, formatting, and LSP support
The important mindset shift is this: OpenCode is not just a chat window with code generation. It is an agent workflow surface. You can use it to:
- inspect unfamiliar repos
- plan a change without editing
- edit files and run shell commands
- create project rules with
AGENTS.md - define repeatable slash commands
- tighten or relax permissions based on repo risk
One practical detail matters because older tutorials are already stale. As of March 17, 2026, the current OpenCode releases are published from anomalyco/opencode, and the latest GitHub release is v1.2.27, published on March 16, 2026. If you land on older archived or redirected repos, you are looking at historical context, not the current install target.
Getting started with OpenCode
1. Install OpenCode
The official quick start is:
curl -fsSL https://opencode.ai/install | bashYou can also install it through package managers such as Homebrew, npm, Scoop, Chocolatey, mise, or nix, but the install script is the fastest path when you just want to get moving.
2. Connect a provider and open a real project
After launch, the official docs recommend using:
/connectThen select opencode in the TUI and complete auth at opencode.ai/auth, or configure another provider you already use.
The practical rule is simple: do not begin with the biggest repo and the vaguest request. Open a project you actually know well enough to review.
3. Run /init before you ask for serious work
OpenCode can generate an AGENTS.md file for the repo:
/initThat gives the agent durable project instructions. Commit the file to Git. This is one of the highest-leverage steps in the entire workflow because it reduces repeated prompt boilerplate and makes behavior more stable across sessions.
4. Start in plan, not build
OpenCode ships with two built-in agents you can switch between with Tab:
buildfor full development workplanfor analysis and code exploration
For your first task, use plan and keep it narrow:
Summarize this repository's build, test, and release flow.
Point out the main application entrypoints.
Do not edit anything yet.Then switch to build only after the repo map sounds correct.
7 practical OpenCode tips
Tip 1: use plan mode as your default for unfamiliar codebases
The official docs are right to separate planning from editing. This is not just a safety feature. It improves quality.
If you drop straight into build, the model may begin changing files before you have validated its understanding. If you begin with plan, you get one cheap turn to confirm architecture, naming, test flow, and likely blast radius.
Use prompts like:
Explain how auth works in @src/auth/index.ts
Then propose two minimal fix options.
Do not edit yet.The @ file reference is especially useful because OpenCode supports fuzzy file search directly in the prompt.
Tip 2: treat /init and AGENTS.md as force multipliers, not setup trivia
Many developers underrate this step because it looks like documentation overhead.
It is not. AGENTS.md is where you should put:
- build, test, and lint commands
- repo structure and package boundaries
- style rules and review expectations
- "never touch this" constraints
- definition of done
If you skip this and keep repeating repo rules in chat, your results get noisier and more expensive.
If this topic interests you, Build a Claude-Code-Like AI Agent with Claude Agent SDK is a useful companion because it makes the same point from the agent-building side.
Tip 3: tighten permissions before you trust the defaults
OpenCode is configurable, and the official permissions docs make this explicit: you can set actions to allow, ask, or deny.
For new repos, a practical starter policy is:
{
"$schema": "https://opencode.ai/config.json",
"permission": {
"edit": "ask",
"bash": "ask"
}
}This slows the agent down slightly, but it prevents avoidable surprises while you are learning its behavior. Once trust is established, you can selectively loosen approvals for low-risk commands and routine edits.
Tip 4: create a few custom slash commands before you install more tooling
OpenCode already supports built-in commands like /init, /undo, /redo, /share, and /help. It also lets you add custom commands through config or markdown files in .opencode/commands/.
That means a lot of "advanced workflow" wins do not require a new framework yet. You can define commands like:
/test/review/ship-check/seo-page
For example:
---
description: Run tests related to the current change
agent: build
---
Run the relevant tests for the files touched in this session.
Summarize failures first, then propose the smallest credible fix.This keeps common prompts short and reviewable.
Tip 5: use one provider well before you chase every provider
OpenCode's provider-agnostic model is a strength, but it can tempt people into premature setup sprawl.
Do not start by wiring five providers, three fallback chains, and a custom model matrix. Start with the provider you already pay for and understand. Then expand only after you know what OpenCode itself feels like.
If you are brand new to the category, How to Use Codex is worth reading alongside this page because it teaches the same operational lesson from a different product direction: constrained tasks beat tool sprawl.
Tip 6: know when terminal, desktop, and IDE each win
OpenCode is now bigger than a single terminal binary.
Use the terminal when you want the fastest prompt-edit-test loop.
Use the desktop app when review visibility, session management, and UI comfort matter more than raw speed.
Use the IDE extension when your existing editor is already the control surface and you do not want to context-switch.
The mistake is not picking the wrong one forever. The mistake is using the wrong one for the current job and then blaming the agent.
Tip 7: let OpenCode format and structure the change, but still review the diff like an engineer
Official OpenCode docs note that it can automatically use language-specific formatters after file edits. That is helpful, but formatter support is not the same thing as change quality.
You still need to review:
- whether the implementation actually matches the requirement
- whether the bash commands it wants to run are appropriate
- whether the
AGENTS.mdguidance is being followed - whether the patch is too broad for the task
AI coding agents reduce typing. They do not remove the need for engineering judgment.
When to add Oh My OpenCode
Oh My OpenCode is not OpenCode itself. It is a more opinionated orchestration layer built around OpenCode.
The current project docs and README describe it as a multi-model harness that adds:
- a stronger orchestration model around specialist agents
- category-based model routing
- background agents and parallel work
- built-in MCP-oriented workflows
- a more aggressive "keep going until the task is done" operating style
- commands like
ultrawork/ulw
That makes the pairing attractive when plain OpenCode starts to feel too lightweight for the work you are doing.

The appeal of Oh My OpenCode is not that OpenCode is weak. It is that some users want a more opinionated harness: more delegation, more orchestration, more model specialization, and less manual steering once the task begins.
How to pair OpenCode with Oh My OpenCode
1. Get plain OpenCode working first
Do not install a harness on top of a base tool you have not even tested.
Before you add anything, make sure you can:
- install OpenCode
- authenticate a provider
- run
/init - complete one
plantask - complete one
buildtask
If that baseline is shaky, adding Oh My OpenCode will only make debugging harder.
2. Know the naming before you install
There is a naming detail that can confuse people:
- the GitHub repo is currently
code-yeongyu/oh-my-openagent - the branding and package name still refer to Oh My OpenCode
- the install command still uses
oh-my-opencode
As of March 17, 2026, treat those as the same project lineage.
3. Install the harness with the official installer
The simplest manual path is:
bunx oh-my-opencode installThe project also explicitly encourages using an AI agent to fetch and follow the installation guide for you, which fits its own workflow philosophy.
4. Start with one high-value command, not the full feature list
The flagship habit is:
ultraworkor the short alias:
ulwThat is useful, but do not treat it like magic. First use it on a medium-sized task with a clear done state. Good fits include:
- fixing a contained bug plus related tests
- implementing one scoped feature
- cleaning up a noisy file cluster
- doing parallel research plus implementation in a repo you already understand
Bad first fits:
- vague greenfield architecture
- a production migration with no rollback plan
- a sensitive repo with no reviewed permission policy
5. Expect the best experience when you actually benefit from multi-model orchestration
Oh My OpenCode becomes more defensible when your work genuinely benefits from:
- different models for planning, reasoning, and frontend work
- background specialists
- broader MCP usage
- stronger subagent discipline
If your daily work is mostly "small fix in one file, run tests, move on," plain OpenCode is often enough.
OpenCode alone vs OpenCode plus Oh My OpenCode
| Question | OpenCode alone | OpenCode + Oh My OpenCode |
|---|---|---|
| Best first-time experience | Stronger | Weaker, because there is more to understand |
| Repo exploration | Strong | Stronger for deeper orchestration |
| Small daily tasks | Usually enough | Often overkill |
| Multi-model routing | Basic provider flexibility | Much more opinionated and central |
| Background specialists | Limited compared with harness workflows | Core part of the value proposition |
| Need for setup discipline | Moderate | High |
The practical recommendation is boring but correct:
- Learn plain OpenCode.
- Write and commit a real
AGENTS.md. - Add 2 to 3 custom commands.
- Tighten permissions.
- Only then decide whether your workload justifies Oh My OpenCode.
Common traps
Mixing up OpenCode and OpenClaw
These are not the same project.
If you searched for OpenClaw but want the open-source terminal coding agent with plan, build, /init, and Oh My OpenCode compatibility, you almost certainly mean OpenCode.
Using stale repo links
There is already enough repo churn around older OpenCode references that you should sanity-check the install path before following a random tutorial. Use the official docs first.
Installing the harness before learning the baseline
If you do not understand how plain OpenCode behaves, you cannot tell whether a weird outcome came from the base agent, the harness, the model provider, or your repo rules.
Overbuying subscriptions on day one
Provider flexibility is valuable, but most users should start with the model access they already have.
FAQ
Is OpenCode the same as OpenClaw?
No. They are different projects. This guide is about OpenCode, the open-source AI coding agent documented at opencode.ai.
Do I need Oh My OpenCode to use OpenCode well?
No. OpenCode is already useful on its own. Oh My OpenCode becomes attractive when you want heavier orchestration, more opinionated delegation, and a broader multi-model workflow.
What should I do first after installation?
Run /connect, open a real project, run /init, switch to plan, and ask for a repo summary before you request edits.
Should I start with terminal, desktop, or IDE?
Start with the terminal unless you already know you prefer review-heavy desktop workflows or editor-native workflows.
What is the simplest sign that I am ready for Oh My OpenCode?
You already use OpenCode comfortably, your AGENTS.md is real, and you repeatedly wish one agent could orchestrate multiple specialist passes for you.
Related Guides
- AI Coding Topic Hub
- How to Use Codex
- Parallel Code Agents Explained
- Build a Claude-Code-Like AI Agent with Claude Agent SDK
- OpenClaw vs ZeroClaw vs Pi Agent vs Nanobot