Claude Code CLI for OpenClaw
Install, authenticate, and use Claude Code CLI as a native coding tool for any OpenClaw agent system.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/asif2bd/claude-code-cli-openclawWhat This Skill Does
The Claude Code CLI for OpenClaw skill integrates Anthropic’s official Claude Code CLI into your OpenClaw agent workflow. Unlike standard API-based agents that dump massive file contents into the context window, this skill utilizes Claude Code’s native file exploration and tool-calling capabilities. By acting as a specialized developer tool, it reduces token usage by 80-90%, improves edit precision, and allows your agent to work directly with your project codebase using a persistent, authenticated Claude Max session. It bridges the gap between raw terminal access and intelligent coding assistance.
Installation
- Ensure Node.js and npm are installed on your environment.
- Install the package globally via your terminal:
npm install -g @anthropic-ai/claude-code. - Run the installation script provided in the skill directory to configure paths:
bash /root/.openclaw/workspace/skills/claude-code/scripts/install.sh. - Initialize authentication using
claude setup-token. Follow the browser-based OAuth flow to generate a long-livedsk-ant-oat01-token. Note that standard API keys are not compatible; a valid Claude Max subscription is required.
Use Cases
- Refactoring: Efficiently apply structural changes across multiple files without exceeding context limits.
- Complex Bug Fixes: Allow the agent to explore the directory, read logs, and trace code execution flow natively.
- Project Onboarding: Use the CLAUDE.md file to help the agent understand architecture, style guides, and project-specific constraints automatically.
- Automated Scaffolding: Generate boilerplate code, unit tests, and documentation files with high fidelity.
Example Prompts
- "Claude Code, scan the
src/directory and propose a refactor for the authentication module to improve error handling." - "Use Claude Code to fix the integration bug in
database.jsafter reading the project documentation inREADME.md." - "Run a code review on the latest commit and generate a summary of technical debt in the
components/folder."
Tips & Limitations
- TTY Requirement: This skill requires a PTY-enabled terminal for the OAuth setup process.
- Token Efficiency: Always prefer this tool for large-scale edits to keep costs flat under your Claude Max subscription.
- Limitations: It is strictly for coding tasks; do not use it as a general-purpose chat interface. Ensure your Git repo is clean before running autonomous edits to allow for easy reverts.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-asif2bd-claude-code-cli-openclaw": {
"enabled": true,
"auto_update": true
}
}
}Tags
Flags: file-write, file-read, external-api, code-execution
Related Skills
sealvera
Tamper-evident audit trail for AI agent decisions. Use when logging LLM decisions, setting up AI compliance, auditing agents for EU AI Act, HIPAA, GDPR or SOC 2, or when a user asks about AI decision audit trails, explainability, or SealVera.
aethercore
AetherCore v3.3.4 - Security-focused final release. High-performance JSON optimization with universal smart indexing for all file types. All security review issues fixed, ready for production.
survey-response-coder
将开放式问卷回答编码成主题、情绪与标签,并生成可复核手册。;use for survey, coding, qualitative workflows;do not use for 把少量样本当总体结论, 暴露受访者隐私.
opentangl
Not a code generator — an entire dev team. You write the vision, it ships the code. Autonomous builds, PRs, reviews, and merges across multiple repos. Point it at any JS/TS project and a product vision. It plans features, writes code, verifies builds, creates PRs, reviews diffs, and merges — autonomously. Manages multiple repos as one product. Use when you want to ship code without writing it. AI code generation, autonomous development, workflow automation, multi-repo orchestration, TypeScript, JavaScript, GitHub, OpenAI, Anthropic, Claude, GPT, LLM, devtools, CI/CD, pull requests, code review.
obsidian-cli
Skill for the official Obsidian CLI (v1.12+). Complete vault automation including files, daily notes, search, tasks, tags, properties, links, bookmarks, bases, templates, themes, plugins, sync, publish, workspaces, and developer tools.