oauth-coder-bridge for Openclaw

A local HTTP bridge that allows OpenClaw to interact with Anthropic models via OAuth-authenticated CLI sessions instead of API keys.

earlvanze
v1.3.0
Apr 8, 2026
0
870
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install oauth-coder-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 oauth-coder-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 oauth-coder-bridge?

The oauth-coder-bridge is a specialized utility designed for the Openclaw Skills ecosystem that facilitates communication between your AI agent and the Anthropic Claude CLI. By acting as a local HTTP proxy, it translates standard API messages into CLI commands handled by the oauth-coder wrapper. This allows developers to leverage their existing Claude Pro or Team subscriptions through OAuth authentication, bypassing the need for per-token billing associated with traditional API keys.

This bridge ensures a seamless developer experience by mimicking the Anthropic API structure while running entirely on your local machine. It is an essential tool for those looking to integrate high-performance models like Claude 3.5 Sonnet or Opus into their automated workflows without the overhead of API management.

oauth-coder-bridge Use Cases

  • Developers wanting to use Openclaw Skills without maintaining or paying for separate Anthropic API keys.
  • Automating tasks using Claude 3.7 Sonnet or Opus via the official CLI toolchain.
  • Running local AI agent workflows that require high-context windows supported by the Claude OAuth interface.
  • Testing and prototyping Openclaw Skills integrations using a subscription-based model rather than usage-based billing.

How oauth-coder-bridge Works

  1. The OpenClaw agent sends a standard Anthropic-formatted JSON request to the bridge's local endpoint (default port 8787).
  2. The oauth-coder-bridge receives the payload and parses the prompt, model selection, and parameters.
  3. The bridge executes a subprocess command using the oauth-coder binary, passing the prompt through the authenticated CLI session.
  4. The real claude CLI processes the request via OAuth tokens and returns the text response.
  5. The bridge captures the output and packages it back into a JSON format compatible with Openclaw Skills for the agent to consume.

oauth-coder-bridge Setup

To get started with this component of Openclaw Skills, ensure you have the oauth-coder binary installed and authenticated via claude login. Then run the following commands:

# Run the setup script to install the bridge and configure OpenClaw
bash scripts/setup.sh

# Start the bridge server locally
python3 ~/.openclaw/scripts/oauth-coder-bridge.py &

# Verify the connection
curl http://127.0.0.1:8787/health

oauth-coder-bridge Data Schema & Taxonomy

The bridge manages request flow and configuration through environment variables and local endpoints. Data is organized as follows:

Feature Details
Models Prefixed with claude-cli/ (e.g., claude-cli/claude-3-7-sonnet-latest)
Endpoints /health for status, /v1/messages for Anthropic compatibility
Configuration Managed via OAUTH_CODER_BRIDGE_PORT and OAUTH_CODER_BIN paths
Logging Local stderr or optional file-based logging for request history

oauth-coder-bridge Advanced Features

  • Support for the latest Anthropic models including Opus 4.6 and Sonnet 3.7 within Openclaw Skills.
  • Built-in rate limiting (30 requests per minute) to prevent session throttling during heavy automation.
  • Configurable prompt length limits up to 100,000 characters to handle large codebases.
  • Systemd service integration for persistent background operation on Linux/macOS environments.
  • Automatic model aliasing for easy switching between different Claude versions.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*