Claude API Gateway for Openclaw

A high-performance API gateway providing direct, zero-markup access to the full Claude model family through an OpenAI-compatible interface.

xiaoyinqu
v1.0.0
Mar 4, 2026
0
0
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install claude-api-gateway

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 claude-api-gateway 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 API Gateway?

The Claude API Gateway is a specialized integration designed for Openclaw Skills that allows developers to interact with Anthropic's most powerful models, including Claude 4.5 Opus, Sonnet, and Haiku, without the need for a dedicated Anthropic account. By acting as a unified bridge, it offers an OpenAI-compatible API format that simplifies the implementation of high-reasoning LLMs in any agentic workflow.

This skill is built for developers who prioritize performance and cost-efficiency. It provides a zero-markup pricing model, ensuring you pay exactly what the provider charges while gaining additional stability through built-in failover capabilities and prompt caching support. It is the definitive way to leverage Claude's nuanced understanding within the Openclaw Skills ecosystem.

Claude API Gateway Use Cases

  • Complex architectural reasoning and deep system design sessions.
  • Comprehensive code reviews and automated security vulnerability analysis.
  • Generating high-quality, long-form technical content and creative writing.
  • Building resilient AI workflows that require automatic failover to alternative LLMs during provider outages.

How Claude API Gateway Works

  1. The user authenticates using a SkillBoss API key configured in their local environment.
  2. Commands are issued to the agent to select specific Claude models via the Openclaw Skills interface.
  3. The gateway receives OpenAI-compatible requests and routes them to the appropriate Anthropic model endpoint.
  4. Optional prompt caching is applied to optimize token usage and reduce latency for repetitive tasks.
  5. The system automatically manages model failover to secondary providers like GPT or Gemini if the primary Claude service is unavailable.

Claude API Gateway Setup

To integrate this gateway with your Openclaw Skills environment, execute the setup script:

curl -fsSL https://skillboss.co/openclaw-setup.sh | bash

Configure your environment variable with your API key:

export SKILLBOSS_API_KEY="your_key_here"

Once configured, you can switch to a Claude model immediately using the model command:

/model skillboss/claude-4-5-sonnet

Claude API Gateway Data Schema & Taxonomy

The Claude API Gateway organizes metadata and configuration parameters to ensure seamless model delivery within Openclaw Skills.

Attribute Description
SKILLBOSS_API_KEY The primary authentication token required for API access.
model_id Identifiers for specific versions including claude-4-5-opus and claude-3.5-haiku.
prompt_caching Boolean flag indicating if context caching is active for the session.
failover_target Metadata defining the secondary model used during service disruptions.

Claude API Gateway Advanced Features

  • Zero-markup pricing ensures direct access to provider rates for all Claude models.
  • Native support for prompt caching to significantly lower costs on long-context tasks.
  • Multi-provider failover logic that switches to alternative high-reasoning models if Claude is down.
  • Full OpenAI SDK compatibility allowing for drop-in replacement in existing toolchains using Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0