Skip to content

About

to safe anthropic ban in omp use

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

omp + Claude Code Bridge — Setup Notes

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

Working environment

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

Problems and root causes

1. Install fails: Cannot find package '@oh-my-pi/pi-coding-agent'

  • omp 18 moved keyHint from @oh-my-pi/pi-coding-agent/modes/components/keybinding-hints to @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

2. Load fails: Cannot find package '@anthropic-ai/claude-agent-sdk'

  • omp plugin install <local folder> only creates a symlink; it does not install the plugin's dependencies.
  • Run bun install --production yourself.
  • --production matters: 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.

3. No 5.5 models

  • The model list is hardcoded in MODEL_IDS_IN_ORDER in src/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 pathToClaudeCodeExecutable to point at your installed claude.

Install (in order)

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

5. Bridge config

~/.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 to false to stop AskClaude from writing files or running commands

6. Point roles at the bridge

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

7. Check

omp
  • No Warning: Failed to load extension on startup.
  • /model, search bridge: the 5.5 models are listed.
  • Roles view: press f on a role to check that no fallback points to anthropic/....

Account safety

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

Debug

CLAUDE_BRIDGE_DEBUG=1 omp
tail -50 ~/.omp/agent/claude-bridge.log
ls ~/.omp/agent/cc-cli-logs/

Roll back

cp ~/.omp/agent/config.yml.bak ~/.omp/agent/config.yml   # restore previous roles
omp plugin --help                                         # find the command to remove the plugin

Updating later

Once 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 --production

No need to reinstall the plugin, since it's a symlink. Just restart omp.

References

About

to safe anthropic ban in omp use

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors