Complete installation instructions for oh-my-opencode-slim.
Run the interactive installer:
bunx oh-my-opencode-slim@latest installOr use non-interactive mode:
bunx oh-my-opencode-slim@latest install --no-tui --skills=yes --background-subagents=yesThe installer supports the following options:
| Option | Description |
|---|---|
| `--skills=yes | no` |
--companion=ask|yes|no |
Install and enable the desktop Companion (ask by default; prompt defaults to no) |
--preset=<name> |
Active generated config preset: openai or opencode-go (default: openai) |
--background-subagents=ask|yes|no |
Configure the required background-subagents and Exa websearch environment exports (ask by default; prompt defaults to yes) |
--background-subagents-target=<path> |
Write the background-subagents and websearch exports to a specific shell/profile file |
--no-tui |
Non-interactive mode |
--dry-run |
Simulate install without writing files |
--reset |
Force overwrite of existing configuration |
Background orchestration is the default workflow. It depends on OpenCode's native background subagents, which are enabled by this environment variable:
OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true
OPENCODE_ENABLE_EXA=1The installer asks before adding those exports to your shell startup file. The
prompt defaults to yes because V2's default orchestration depends on it.
The Exa flag enables OpenCode's built-in websearch tool without requiring an
API key.
bunx oh-my-opencode-slim@latest installFor non-interactive setup, pass the choice explicitly:
bunx oh-my-opencode-slim@latest install --no-tui --background-subagents=yesAfter the installer updates a shell startup file, restart your terminal or source the file before launching OpenCode. Examples:
source ~/.zshrc
# or
source ~/.bashrcFor a one-shot manual launch without restarting your terminal:
OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true OPENCODE_ENABLE_EXA=1 opencodeBy default, the installer is non-destructive. If an oh-my-opencode-slim.json configuration file already exists, the installer will not overwrite it. Instead, it will display a message:
[i] Configuration already exists at ~/.config/opencode/oh-my-opencode-slim.json. Use --reset to overwrite.
To force overwrite of your existing configuration, use the --reset flag:
bunx oh-my-opencode-slim@latest install --resetNote: When using --reset, the installer creates a .bak backup file before overwriting, so your previous configuration is preserved.
The installer generates both OpenAI and OpenCode Go presets, with OpenAI active by default (using variant-aware GPT-5.6 models, including gpt-5.6-terra (medium) for Orchestrator, gpt-5.6-sol (high) for Oracle, gpt-5.6-luna (medium) for Fixer, and gpt-5.6-luna variants for other specialists). To make OpenCode Go active during install, run bunx oh-my-opencode-slim@latest install --preset=opencode-go. That preset uses Minimax-M3 for Orchestrator, so the installer also enables Observer with opencode-go/mimo-v2.5 for visual analysis. To switch providers later or build a mixed setup, use Configuration Reference for the full option reference and the preset docs for copyable examples.
The plugin safely reconciles bundled skills on startup and after successful
auto-updates. Missing bundled skills are installed, and previously managed skills
are updated only when their local files still match a known plugin-installed
version. If you customized a skill locally, the plugin preserves your active copy
and stages the new bundled version under
~/.config/opencode/.oh-my-opencode-slim/skill-updates/ for manual review.
Restart OpenCode after an auto-update to load the updated plugin and any changed
skills.
Then:
opencode auth login
# Select your provider and complete OAuth flowopencode models --refreshOpen your generated config at ~/.config/opencode/oh-my-opencode-slim.json
and adjust models if needed.
Then run OpenCode and verify the agents:
ping all agents
💡 Tip: Models are fully customizable. The installer sets sensible defaults, but you can assign any model to any agent. Edit
~/.config/opencode/oh-my-opencode-slim.json(or.jsoncfor comments support) to override models, adjust reasoning effort, or disable agents entirely.
Paste this into Claude Code, AmpCode, Cursor, or any coding agent:
Install and configure by following the instructions here:
https://raw.githubusercontent.com/alvinunreal/oh-my-opencode-slim/refs/heads/master/README.md
If you're an LLM Agent helping set up oh-my-opencode-slim, follow these steps.
opencode --versionIf not installed, direct the user to https://opencode.ai/docs first.
The installer generates OpenAI and OpenCode Go presets, with OpenAI active by default:
bunx oh-my-opencode-slim@latest install --no-tui --skills=yesExamples:
# Interactive install
bunx oh-my-opencode-slim@latest install
# Non-interactive with bundled skills
bunx oh-my-opencode-slim@latest install --no-tui --skills=yes --background-subagents=yes
# Make the generated OpenCode Go preset active
bunx oh-my-opencode-slim@latest install --preset=opencode-go
# Non-interactive without skills
bunx oh-my-opencode-slim@latest install --no-tui --skills=no
# Force overwrite existing configuration
bunx oh-my-opencode-slim@latest install --resetThe installer automatically:
- Adds the plugin to
opencode.jsonoropencode.jsoncin$OPENCODE_CONFIG_DIRwhen set, otherwise~/.config/opencode - Disables default OpenCode agents
- Enables OpenCode LSP integration when no explicit
lspsetting exists - Configures
OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=truewhen approved - Generates agent model mappings in the same OpenCode config directory as
oh-my-opencode-slim.json(or.jsonc)
Ask user to run the following command. Don't run it yourself, it requires user interaction.
opencode auth login
# Select your provider and complete OAuth flowAsk the user to:
- Authenticate:
opencode auth login - Refresh models:
opencode models --refresh - Restart the terminal or source the shell file updated by the installer
(
source ~/.zshrcorsource ~/.bashrc), then start OpenCode:opencode- One-shot alternative:
OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true opencode
- One-shot alternative:
- Run:
ping all agents
Verify all agents respond successfully.
Crucial Advice for the User:
- They can easily assign different models to different agents by editing
~/.config/opencode/oh-my-opencode-slim.json(or.jsonc). - If they want to add a different provider later (OpenCode Go, Kimi, GitHub Copilot, ZAI), they can update this file manually. See Configuration Reference and the preset docs for examples.
- Read the generated
~/.config/opencode/oh-my-opencode-slim.json(or.jsonc) file to understand the current configuration.
Check the expected config format:
bunx oh-my-opencode-slim@latest install --helpThen manually create the config files at:
~/.config/opencode/oh-my-opencode-slim.json(or.jsonc)
If the installer reports that the configuration already exists, you have two options:
-
Keep existing config: The installer will skip the configuration step and continue with other operations (like adding the plugin or installing skills).
-
Reset configuration: Use
--resetto overwrite:bunx oh-my-opencode-slim@latest install --reset
A
.bakbackup file will be created automatically.
-
Check your authentication:
opencode auth status
-
From your project root, verify your config file exists and is valid:
bunx oh-my-opencode-slim@latest doctor
-
Check that your provider is configured in
~/.config/opencode/opencode.json
If background tasks never return task IDs, or delegation behaves like a blocking foreground call:
-
Confirm OpenCode was launched with the environment variable:
env | grep OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTSIt should show
OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true.Also use an OpenCode release that includes native background subagents; run
opencode --versionand update OpenCode if background tasks are missing. -
Restart your terminal or source the shell file the installer updated, then start OpenCode again. Plain
opencodeis only sufficient after that environment is active. -
For a quick manual test, launch OpenCode with a one-shot export:
OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=true opencode
-
If shell setup was missing, rerun the installer:
bunx oh-my-opencode-slim@latest install
If providers are not working:
-
Check your authentication status:
opencode auth status
-
Re-authenticate if needed:
opencode auth login
-
Verify your config file has the correct provider configuration:
cat ~/.config/opencode/oh-my-opencode-slim.json
Add a $schema reference to your config for autocomplete and inline validation:
Works in VS Code, Neovim (with jsonls), and any editor that supports JSON Schema. Catches typos and wrong nesting immediately.
Make sure you're running OpenCode with the --port flag and the port matches your OPENCODE_PORT environment variable:
tmux
export OPENCODE_PORT=4096
opencode --port 4096See the Multiplexer Integration Guide for more details.
-
Remove the plugin from your OpenCode config:
Edit
~/.config/opencode/opencode.jsonand remove"oh-my-opencode-slim"from thepluginarray. If the installer enabled LSP (it only does so when no explicitlspsetting exists), set"lsp": falseor remove the"lsp"key. -
Remove the TUI badge:
Edit
~/.config/opencode/tui.jsonand remove"oh-my-opencode-slim"from thepluginarray.
-
Re-enable default agents:
In
~/.config/opencode/opencode.json, remove thedisable: trueentries the installer added underagent.exploreandagent.general. -
Remove the environment variable:
The installer may have added an export to your shell startup file. Remove the
OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS=trueline from your shell config:~/.zshrc(Zsh)~/.bashrc(Bash)~/.config/fish/conf.d/opencode-background-subagents.fish(Fish) — also removeset -gx OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS true
Restart your terminal or
sourcethe file. -
Clear the plugin cache:
rm -rf ~/.cache/opencode/packages/oh-my-opencode-slim@*
-
Remove configuration files:
rm -f ~/.config/opencode/oh-my-opencode-slim.json rm -f ~/.config/opencode/oh-my-opencode-slim.json.bak
-
Remove skills installed by the installer:
rm -rf ~/.config/opencode/skills/simplify rm -rf ~/.config/opencode/skills/codemap rm -rf ~/.config/opencode/skills/clonedeps rm -rf ~/.config/opencode/skills/deepwork rm -rf ~/.config/opencode/skills/reflect rm -rf ~/.config/opencode/skills/worktrees rm -rf ~/.config/opencode/skills/oh-my-opencode-slim
Note: The installer manages these specific skills. If you added others manually, they won't be affected.
-
Remove the desktop companion binary (if installed):
The companion is optional and not installed by default. If you installed it:
rm -rf ~/.local/share/opencode/storage/oh-my-opencode-slim
Run opencode auth status and confirm oh-my-opencode-slim agents no longer appear.
{ "$schema": "https://unpkg.com/oh-my-opencode-slim@latest/oh-my-opencode-slim.schema.json", // your config... }