Claude Wrapper
Description
Wrap the claude cli commands to instead call opencode
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
claude_wrapper
`claude_wrapper.py` is a compatibility wrapper that accepts a subset of Claude CLI flags and commands and translates them into equivalent `opencode` CLI invocations. It is intended to let existing `claude`-style scripts keep working while actually calling `opencode` under the hood.
What it does
- Parses common
claudeflags (session control, model, debug) and maps them toopencodeflags. - Translates a few top-level commands to their
opencodeequivalents. - Rejects unsupported flags and commands with a clear error message.
- Runs
opencodeviasubprocess.runand exits with an error if it is missing.
Command translation
| Claude command | Opencode command |
|---|---|
install |
upgrade |
update |
upgrade |
mcp |
mcp |
setup-token |
auth |
doctor |
unsupported |
plugin |
unsupported |
If no command is supplied and a prompt is provided, the wrapper uses `opencode run `.
Flag translation
--resumeor--session-id->--session--continueor--resume(no id) ->--continue--system-prompt->--prompt--from-pr->pr--debugor-d->--log-level DEBUG--debug-file->--print-logsand redirects stderr to the file--version->--version
Any explicitly unsupported flag results in an error and exit code 1.
Usage
Run it as a drop-in replacement for `claude`:
./claude_wrapper.py "Summarize this repo"
Continue the most recent session:
./claude_wrapper.py --continue "Add a README"
Resume a specific session:
./claude_wrapper.py --resume 12345 "Fix tests"
Use a command:
./claude_wrapper.py install
Requirements
- Python 3
opencodeinstalled and available on your PATH
Notes
- Unsupported Claude flags are deliberately rejected to avoid silent behavior changes.
- If
opencodeis not found, the wrapper prints an error and exits.
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11