OpenClaw extension routes requests through Claude Code CLI instead of API

✍️ OpenClawRadar📅 Published: April 18, 2026🔗 Source
OpenClaw extension routes requests through Claude Code CLI instead of API
Ad

OpenClaw Claude Runner Extension

An OpenClaw extension has been released that routes requests through the Claude Code CLI binary instead of using the Anthropic API. This approach avoids per-token API costs and potential TOS violations while providing the complete Claude Code feature set.

How It Works

The extension functions as a gateway plugin. When OpenClaw gateway receives a request, it hands it to this extension, which then spawns the Claude CLI as a subprocess. The extension executes the command claude -p "your prompt" --output-format stream-json, parses the NDJSON output, and translates it back to OpenAI-compatible Server-Sent Events (SSE). The gateway remains unaware it's not communicating with a standard API.

Features and Compatibility

  • Provides full Claude Code experience including tool use, file editing, multi-step reasoning, MCP servers, and memory
  • Works at the max plan flat rate instead of per-token API pricing
  • Compatible with Claude models supported by Claude Code CLI: Opus 4.5, Sonnet 4.6, Sonnet 4, Haiku 4.5
Ad

Installation

Installation requires five commands:

git clone https://github.com/siimvene/openclaw-claude-runner.git
cd openclaw-claude-runner
bash install.sh
claude login
openclaw gateway restart

Architecture and Inspiration

The extension was inspired by the Jinn project, which implements similar functionality as a standalone service. The developer opted to create an OpenClaw extension instead, which integrates cleanly with the existing gateway without replacing any components.

This approach is particularly useful for developers who want to use Claude Code features through OpenClaw while avoiding API costs and maintaining compliance with usage terms.

📖 Read the full source: r/openclaw

Ad

👀 See Also

AutoAgents Rust Framework Adds Python Bindings for Prototyping
Tools

AutoAgents Rust Framework Adds Python Bindings for Prototyping

AutoAgents, a Rust-based multi-agent framework, now has Python bindings that allow developers to prototype in Python while maintaining the same Rust core runtime, provider interfaces, pipeline model, and agent semantics. The bindings enable experimentation with local AI models without external systems.

OpenClawRadar
wmux: Electron Terminal Multiplexer for Windows with Browser Control via MCP
Tools

wmux: Electron Terminal Multiplexer for Windows with Browser Control via MCP

wmux is an open-source Electron terminal multiplexer for Windows 10/11 that provides tmux-style splits, persistent sessions, and browser control via Chrome DevTools Protocol for AI coding agents like Claude Code. It registers as an MCP server automatically and allows agents to interact with browsers while running multiple sessions side-by-side.

OpenClawRadar
Tether: An MCP Server for Sharing Context Between AI Models via SQLite
Tools

Tether: An MCP Server for Sharing Context Between AI Models via SQLite

Tether is an open-source tool that collapses JSON data into 28-byte content-addressed handles, allowing multiple AI models to share context through a shared SQLite database. It functions as an MCP server, enabling direct communication between models like Claude and MiniMax without copy-pasting.

OpenClawRadar
Argus: A VS Code Extension to Debug Claude Code Session Costs and Behavior
Tools

Argus: A VS Code Extension to Debug Claude Code Session Costs and Behavior

A developer built Argus, a VS Code extension that parses Claude Code JSONL transcripts into a real-time timeline with per-step token/cost breakdown, cache hit ratio, and flagging of retry loops, duplicate reads, and context pressure.

OpenClawRadar