Built by MissionDeck.ai · GitHub · ProSkills.md
Empower OpenClaw agents with token-efficient, file-based coding via Claude Code CLI
This OpenClaw skill teaches agents how to install, authenticate, configure, and use Claude Code CLI — Anthropic's official command-line coding tool. Claude Code provides native file exploration and tool-based editing, reducing token usage by 80-90% compared to raw API calls for coding tasks.
- 🚀 Token Efficiency: ~500 tokens per task vs 10k-50k with raw API
- 💰 Flat-Rate Billing: Uses Claude Max subscription, not per-token API charges
- 🎯 Better Code Quality: Native file exploration, codebase understanding, precise edits
- 🧠 Project Context: CLAUDE.md provides persistent project knowledge across sessions
claude-code/
├── SKILL.md # Complete integration guide
├── README.md # This file
├── templates/
│ └── CLAUDE.md.template # Project brain template
└── scripts/
└── install.sh # One-command installation
| Mode | Description |
|---|---|
| 🤖 OpenClaw Backend | Use as claude-cli model in any agent (claude-cli/sonnet-4.6, claude-cli/opus-4.6) |
| 🖥️ Direct CLI | Run claude --print from any project directory — no agent config needed |
| ☁️ With MissionDeck | Track Claude Code sessions live in your MissionDeck.ai dashboard via JARVIS integration |
cd /root/.openclaw/workspace/skills/claude-code
bash scripts/install.shOr manually:
npm install -g @anthropic-ai/claude-codeclaude setup-tokenFollow the browser OAuth flow (requires Claude Max subscription).
Add Claude Code as a CLI backend in ~/.openclaw/config.patch:
{
"agents": {
"defaults": {
"cliBackends": {
"claude-cli": {
"command": "/usr/bin/claude",
"env": {
"CLAUDE_CODE_OAUTH_TOKEN": "YOUR_OAUTH_TOKEN_HERE"
}
}
},
"models": {
"claude-cli/opus-4.6": { "alias": "claude-cli-opus" },
"claude-cli/sonnet-4.6": { "alias": "claude-cli-sonnet" }
}
}
}
}Apply: gateway config.patch
Copy the template to your project:
cp templates/CLAUDE.md.template /path/to/your/project/CLAUDE.md
# Edit with project-specific detailscd /path/to/project
CLAUDE_CODE_OAUTH_TOKEN=$CLAUDE_CODE_OAUTH_TOKEN claude --print "Fix the auth redirect bug in src/pages/Login.tsx"- Code Implementation: Build features with file-aware context
- Bug Fixes: Search codebase, identify issues, apply precise fixes
- Refactoring: Multi-file changes with import/dependency awareness
- Code Reviews: Analyze code quality, suggest improvements
- Project Scaffolding: Generate boilerplate with context awareness
See SKILL.md for complete documentation:
- Installation and authentication
- OpenClaw configuration
- Project setup (CLAUDE.md)
- Agent workflow and prompting patterns
- Troubleshooting and best practices
- Real-world examples
Task: Remove discount banner from navbar
# 1. Sync project
cd /root/.openclaw/workspace/missiondeck
git pull origin main
# 2. Run Claude Code
CLAUDE_CODE_OAUTH_TOKEN=$CLAUDE_CODE_OAUTH_TOKEN claude --print "Remove the discount banner from the navbar"
# 3. Review changes (Claude Code shows diffs)
# 4. Build check
npm run build
# 5. Commit and push
git checkout -b agent/remove-banner
git add .
git commit -m "chore: remove discount banner from navbar"
git push origin agent/remove-bannerResult: 2 lines changed, ~450 tokens used, build passed, deployed ✓
- Claude Max Subscription: Required for OAuth authentication
- Node.js/npm: For installing the CLI
- OpenClaw Gateway: Running and configured
- Git: Recommended for managing code changes
CRITICAL: Never commit your CLAUDE_CODE_OAUTH_TOKEN to version control.
- ✅ Store in environment variables or secrets manager
- ✅ Add
.env*files to.gitignore - ✅ Use OpenClaw config.patch (not committed to git)
- ❌ Never hardcode tokens in scripts
- ❌ Never share tokens publicly
Add to .gitignore:
.env
.env.local
.env.*.local
openclaw.json
config.patchConfigured in openclaw.json, Claude Code can be used as:
- Primary model for coding agents
- Fallback model when API limits hit
- Direct invocation via exec tool
Once ACP harness is configured:
sessions_spawn({
runtime: "acp",
agentId: "claude-code",
message: "Implement user authentication",
label: "claude-code-auth"
})| Method | Tokens per Task | Cost Model |
|---|---|---|
| Raw API (full file dump) | 10,000 - 50,000 | Per-token billing |
| Claude Code (tool-based) | ~500 | Flat-rate (Claude Max) |
Savings: 80-90% reduction in token usage
MissionDeck.ai is the cloud dashboard that powers multi-agent coordination at scale.
- Visual Kanban — See all agent tasks in a beautiful real-time board
- Team Chat — Agents and humans collaborate in shared threads
- Session Tracking — Monitor Claude Code sessions across all agents
- Cloud Sync — JARVIS Mission Control syncs tasks to MissionDeck via API
- No server required — Fully hosted, your agents connect automatically
Claude Code CLI + JARVIS Mission Control + MissionDeck.ai = complete AI agent workspace
Try it free: missiondeck.ai
"Show me your plan first. List every file you'll touch. Wait for approval."
"Fix the bug. After you're done, grill yourself — what edge cases did you miss?"
Prompt 1: "Research how the payment flow works"
Prompt 2: "Plan how to add recurring billing"
Prompt 3: "Implement the plan"
"In src/pages/AuthVerify.tsx, line 42, fix the redirect bug. Expected: go to /dashboard. Current: stays on /verify."
claude setup-token # Re-authenticate
# Update token in environment and OpenClaw configexport PATH="$PATH:$(npm bin -g)"
echo 'export PATH="$PATH:$(npm bin -g)"' >> /root/.bashrccp templates/CLAUDE.md.template /path/to/project/CLAUDE.md
# Edit with project detailsSee SKILL.md for complete troubleshooting guide.
MissionDeck Project:
- Created
/root/.openclaw/workspace/missiondeck/CLAUDE.md - Documented: 24 edge functions, signup flow, all routes, coding standards
- Result: Claude Code instantly understood project structure
- Zero extra context needed in prompts
Task: "Remove discount banner"
- Claude Code searched codebase
- Found
DiscountBannerinNavbar.tsx - Proposed 2-line change (import + JSX)
- Build passed, deployed live
- 450 tokens used (vs ~8,000 with raw API)
- MissionDeck.ai — Cloud dashboard for Claude Code session tracking and multi-agent coordination
- ProSkills Homepage — More OpenClaw skills and resources
- Skill on GitHub — Source repository
- Claude Code Official Docs
- NPM Package
- Claude Max Subscription
This skill is part of the Matrix Zion OpenClaw system. Contributions, improvements, and feedback welcome.
BSD 3-Clause License
Matrix Zion (ProSkillsMD)
Website: https://missiondeck.ai
Created: 2026-03-13
Version: 1.0.2
OpenClaw Compatibility: 2026.2+
Ready to supercharge your agent's coding workflow? Start with bash scripts/install.sh and follow the complete guide in SKILL.md.
clawhub install jarvis-mission-control # Free agent command center with Claude Code session tracking
clawhub install openclaw-token-optimizer # Reduce token costs by 50-80%
clawhub search Asif2BD # All skillsMissionDeck.ai · Free tier · No credit card required