Claude Wrapper — Development skill for Claude Code
Wrap the claude cli commands to instead call opencode.
How to install Claude Wrapper
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open dmulder/claude_wrapper and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Wrapper does
Wrap the claude cli commands to instead call opencode.
Alternatives in Development
- Claude SEO — Multi-Platform Agent Instructions — For Cursor, Cursor Cloud Agents, Google Antigravity, and Gemini CLI 5k ★
- Mcporter — Call MCPs via TypeScript, masquerading as simple TypeScript API 4.1k ★
- Petdex — A public gallery of animated pets for Codex, Claude Code, DeepSeek Harness, Hermes, OpenCode, Gemini CLI, and 4k ★
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
Fangai
Wrap CLI coding agents (Pi, Claude, Aider, Codex, OpenCode, …) as A2A servers — one command. Built with @a2a-j
Atomara Skill
Agent skill that verifies a PDF (bank statement, payslip, invoice) for signs of editing via the Atomara API. S
Cc Wrap
TypeScript API wrapper for Claude Code supporting interactive and non-interactive modes
Pi Codegraph
Pi-agent wrapper around codebase-memory-mcp: derived code knowledge (call graphs, blast radius) over a harness
Clawctl
Drive openclaw via the clawctl wrapper. Read-only by default, JSON-first, traceparent on every call, secrets r
Practices
Read the technique log. With no ref, call the osiris MCP tool practices (optional surface to narrow to one dom
Related Agents
Loom Codex Forwarder
Forwarding shim for the loom codex implementation lane. Receives a fully-specified implementation task, hands
Abstraction Hunter
Tests every symbol a diff introduces — function, class, wrapper, module, option, dependency — against its call
Team Codex Verifier
Codex-delegated verify stage. Forwards the dispatch to the packaged Codex verify wrapper via one Bash call and