Claude Code Bridge for Openclaw

A bridge allowing OpenClaw to utilize the local Claude Code CLI for code generation and review without requiring an API key.

cry779
v1.0.0
Apr 3, 2026
0
672
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install openclaw-claude-bridge

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install openclaw-claude-bridge using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Claude Code Bridge?

Claude Code Bridge is a specialized integration for Openclaw Skills that enables developers to leverage their existing Claude subscriptions directly through their local command-line interface. By acting as a local proxy, it allows AI agents to interact with Claude Code without the need for additional API keys, utilizing the active session on your machine.

This skill is particularly valuable for developers who prioritize data security and cost-efficiency. It provides a structured way to pipe agentic prompts into the Claude CLI, capturing the output and returning it to the Openclaw Skills workflow. This ensures that sensitive code analysis and generation happen within your controlled environment while maintaining the high-quality reasoning provided by Claude.

Claude Code Bridge Use Cases

  • Generating complex source code and boilerplate directly within a local project.
  • Automating code reviews for multiple files to identify bugs or optimization opportunities.
  • Performing data analysis on local datasets using Claude's reasoning capabilities.
  • Integrating high-level AI coding assistance into custom OpenClaw agents without incurring extra API costs.

How Claude Code Bridge Works

  1. The agent or user triggers a task through the bridge, such as a code generation or review request.
  2. The skill creates a unique task file and a corresponding shell script in the local directory.
  3. In automatic mode, the bridge invokes the local Claude Code CLI using the user's existing authenticated session.
  4. The Claude CLI processes the task and generates the requested output.
  5. The bridge captures the console output and saves it to a structured result file.
  6. The final output is read back into the Openclaw Skills environment for the next step in the agent workflow.

Claude Code Bridge Setup

Ensure that you have the Claude Code CLI installed and that you are actively logged in with a valid subscription.

# Verify Claude CLI installation
which claude

# Ensure you are logged in
claude --version

To interact with the bridge via the command line:

# Create a new task
python3 skills/claude-bridge/claude_bridge.py create "Generate a Python script to download stock data"

# Execute a task by its ID
python3 skills/claude-bridge/claude_bridge.py execute <task_id>

# List all current tasks
python3 skills/claude-bridge/claude_bridge.py list

Claude Code Bridge Data Schema & Taxonomy

The skill manages its state and output through a local file-based system within the Openclaw Skills directory structure:

Component Path Description
Task Scripts tasks/task_xxx.sh Shell scripts generated to trigger the CLI.
Result Files results/ JSON or text files containing the raw output from Claude.
Task Status status Metadata tracking the lifecycle of each execution.
Logic claude_bridge.py The core Python bridge implementation.

Claude Code Bridge Advanced Features

  • Human-in-the-loop support via manual execution mode where users can run generated scripts manually.
  • Seamless integration hooks for AGENTS.md to define custom tools like claude_code_review.
  • Local data persistence ensuring all AI-generated suggestions are archived for future reference.
  • Multi-task management allowing users to track, list, and re-run specific coding tasks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*