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

Developer builds Rust compression library with Claude Opus 4.6, questions utility
A developer used Claude Opus 4.6 for two weeks to create a 15,800-line Rust compression library with 449 passing tests, Python bindings, and C FFI layer, but questions whether another compression library was needed.
OpenClaw Mock API for Building Tools/Integrations Against the Gateway
An open source mock of the OpenClaw gateway WebSocket API using Imposter. Supports chat.send/history, session create/list, agent list, model list. Extend with YAML and JSON.

Databasus PostgreSQL Backup Tool Gains Anthropic Open Source Support
Anthropic has recognized the open source database backup tool Databasus through their Claude for Open Source program, providing maintainers with free access to Claude Max. The tool supports PostgreSQL, MySQL, MariaDB, and MongoDB with scheduled backups, 70+ storage destinations, and AES-256-GCM encryption.

Apideck CLI: A Low-Context Alternative to MCP for AI Agents
Apideck CLI is an AI-agent interface that uses ~80 tokens for its agent prompt instead of tens of thousands for tool schemas, addressing MCP's context window consumption problem. Benchmarks show MCP can cost 4 to 32× more tokens than CLI for identical operations.