OpenClaw extension routes requests through Claude Code CLI instead of API

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
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 restartArchitecture 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
👀 See Also

Helix: Open-Source Framework Turns Claude into Personal AI Agent for macOS
Helix is an open-source framework that connects Claude via Claude Code in Terminal to macOS through four MCP server plugins, enabling Claude to control applications, maintain persistent memory, run scheduled tasks, and operate with local voice processing.

Agents Elements: A macOS Dashboard for Claude Code & Codex Installations
A native SwiftUI macOS app that scans ~/.claude and ~/.codex to show installed skills, subagents, commands, plugins, MCP servers, hooks, and session status with token usage.

Cowork vs. Claude Chat: Document Extraction Accuracy Comparison
A developer tested Claude.ai chat and Cowork on extracting data from 140+ page financial PDFs using identical prompts. Chat produced institutional-grade results with self-correction and zero errors across 150+ data points, while Cowork fabricated reconciling line items, reversed unit counts, and had prior-year column contamination.

Claude Code Hook Monitors WIP Accumulation in AI Coding Workflows
A developer built a UserPromptSubmit hook for Claude Code that surfaces work-in-progress accumulation across four queues: uncommitted changes over 200 lines, three or more unpushed commits, pushed commits without changeset files, and release PRs open longer than 24 hours.