English · ภาษาไทย
Use Claude Code (your subscription) as a model provider in Oh My Pi (omp) through the omp-claude-bridge plugin, with the omp 18 install bug fixed and the 5.5 models added.
Recorded: 2026-11-01
| Component | Version |
|---|---|
| macOS | Apple Silicon (Homebrew at /opt/homebrew) |
| omp | 18.14.2 |
| Claude Code | 2.1.316 (/opt/homebrew/bin/claude) |
| bun | 1.4.0-canary |
| omp-claude-bridge | 0.8.1 + PR #13 + PR #14 |
- omp 18 moved
keyHintfrom@oh-my-pi/pi-coding-agent/modes/components/keybinding-hintsto@oh-my-pi/pi-tui/chrome/keybinding-hints. - Bun reports a missing subpath as a missing package, so the error message is misleading.
- Issue: #5 · Fix: PR #13
omp plugin install <local folder>only creates a symlink; it does not install the plugin's dependencies.- Run
bun install --productionyourself. --productionmatters: it skips the@oh-my-pi/*v16 packages in devDependencies. If they get installed, the plugin may load those old copies instead of the ones omp 18 provides.
- The model list is hardcoded in
MODEL_IDS_IN_ORDERinsrc/models.ts; any id not listed is dropped. - Fix: PR #14 adds Opus 5.5, Opus 5, Sonnet 5.5, Haiku 5.5, and Fable 5.1.
- Opus 5.5 needs Claude Code 2.1.280+ and Fable 5.1 needs 2.1.251+, but the CLI bundled with the SDK is 2.1.141. Set
pathToClaudeCodeExecutableto point at your installedclaude.
Run these outside omp, with omp closed.
# 0. Claude Code must be installed and logged in
which claude && claude --version # must be >= 2.1.280
# 1. Clone the fork with the keyHint fix (PR #13)
git clone -b fix/omp18-keybinding-hints \
https://github.com/crxssrazr93/omp-claude-bridge.git ~/omp-claude-bridge
cd ~/omp-claude-bridge
# 2. Merge the branch that adds the 5.5 models (PR #14)
git fetch origin feat/latest-claude-models
git merge --no-edit origin/feat/latest-claude-models
# If CHANGELOG.md conflicts (doesn't affect the code):
git checkout --ours CHANGELOG.md && git add CHANGELOG.md && git commit --no-edit
# Verify
grep -n "keybinding-hints" src/index.ts # must be pi-tui/chrome/...
grep -n "MODEL_IDS_IN_ORDER =" src/models.ts # must include claude-opus-5-5, claude-sonnet-5-5
# 3. Install dependencies (no devDependencies)
bun install --production # or: npm install --omit=dev
# 4. Install into omp (creates a symlink)
omp plugin install ~/omp-claude-bridge
omp plugin list # should show omp-claude-bridge@0.8.1
ls -la ~/.omp/plugins/node_modules/ | grep claude-bridge # should show -> ~/omp-claude-bridge~/.omp/agent/claude-bridge.json
{
"provider": {
"pathToClaudeCodeExecutable": "/opt/homebrew/bin/claude"
}
}Other useful options (see the bridge README):
provider.plan:"pro"or"max"provider.contextWindow:"auto","1m", or"200k"askClaude.allowFullMode: set tofalseto stop AskClaude from writing files or running commands
CFG=~/.omp/agent/config.yml
cp "$CFG" "$CFG.bak"
sed -i '' 's#anthropic/claude-#claude-bridge/claude-#g' "$CFG" # macOS needs the ''
grep -n "claude-bridge/" "$CFG"Resulting roles:
| Role | Model |
|---|---|
| DEFAULT, VISION, TASK | claude-bridge/claude-sonnet-5-5 |
| SLOW, PLAN, ADVISOR, designer, pstack-panel-a | claude-bridge/claude-opus-5-5 |
| SMOL, TINY, MEMORY | claude-bridge/claude-haiku-5-5 |
| COMMIT, pstack-panel-b | google-antigravity/gemini-3.8-flash |
omp- No
Warning: Failed to load extensionon startup. /model, searchbridge: the 5.5 models are listed.- Roles view: press
fon a role to check that no fallback points toanthropic/....
| Setup | Risk |
|---|---|
Use claude directly |
Safe |
| omp → claude-bridge (official Agent SDK → real Claude Code) | Allowed under current policy; draws from your subscription |
omp anthropic provider logged in with Claude Pro/Max OAuth |
Risky: against the terms, and accounts have been banned |
omp anthropic provider with an API key |
Safe, but pay-as-you-go |
- If the
anthropicprovider is logged in with your subscription, log it out of omp. - The policy changed several times in 2026. Check this page now and then: Use the Claude Agent SDK with your Claude plan
CLAUDE_BRIDGE_DEBUG=1 omp
tail -50 ~/.omp/agent/claude-bridge.log
ls ~/.omp/agent/cc-cli-logs/cp ~/.omp/agent/config.yml.bak ~/.omp/agent/config.yml # restore previous roles
omp plugin --help # find the command to remove the pluginOnce the upstream repo merges PR #13 and #14, switch from the fork to upstream:
cd ~/omp-claude-bridge
git remote add upstream https://github.com/DevVig/omp-claude-bridge.git
git fetch upstream
git log --oneline upstream/main | head # confirm the keyHint fix and 5.5 models are in
git checkout -B main upstream/main
bun install --productionNo need to reinstall the plugin, since it's a symlink. Just restart omp.
- omp-claude-bridge: https://github.com/DevVig/omp-claude-bridge
- Issue #5: DevVig/omp-claude-bridge#5
- PR #13 (keyHint fix): DevVig/omp-claude-bridge#13
- PR #14 (5.5 models): DevVig/omp-claude-bridge#14
- Oh My Pi: https://github.com/can1357/oh-my-pi