ClawAPI Manager for Openclaw

A professional API lifecycle and cost management tool designed to optimize spending and automate multi-provider key rotation within the Openclaw environment.

2233admin
v1.1.2
Mar 3, 2026
0
847
2

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install clawapi-manager

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 clawapi-manager 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 ClawAPI Manager?

ClawAPI Manager is a specialized tool for Openclaw Skills that provides centralized management for API keys, cost tracking, and intelligent task routing. It is designed to save developers between 30-90% on API expenses by automatically directing simple requests to free or low-cost models while reserving premium models for complex reasoning.

By serving as a native management layer, it handles the complexities of multi-provider deployments, including OpenAI, Anthropic, and Google. It ensures high availability through automated failover and health monitoring, making it an essential component for any production-grade implementation of Openclaw Skills.

ClawAPI Manager Use Cases

  • Reducing monthly API expenditures through smart routing to free model alternatives.
  • Centralizing the management of API keys across 40+ different AI providers.
  • Automatically detecting and replacing expired or rate-limited API keys to prevent downtime.
  • Receiving real-time budget alerts via Telegram, Discord, or Slack when spending thresholds are reached.
  • Validating and auto-fixing configuration errors within a local development environment.

How ClawAPI Manager Works

  1. The manager initializes by scanning local configuration files to inventory all available API keys and providers.
  2. It performs periodic health checks to verify key validity and monitor rate limit statuses.
  3. Upon receiving a task, the smart router evaluates the complexity and selects the most cost-effective model available in the Openclaw Skills workspace.
  4. During execution, the cost monitor tracks token usage in real-time to update budget consumption metrics.
  5. If a provider failure occurs, the system triggers an automated round-robin failover to ensure the task is completed without manual intervention.

ClawAPI Manager Setup

To integrate this management tool into your Openclaw Skills environment, follow these steps:

cd ~/.openclaw/workspace/skills
git clone https://github.com/2233admin/clawapi-manager.git
cd clawapi-manager
pip install -r requirements.txt

# Initialize configuration files
cp config/managed_keys_central.json.example config/managed_keys_central.json
cp config/openrouter_keys.json.example config/openrouter_keys.json

Edit the JSON files in the config directory to include your specific provider keys.

ClawAPI Manager Data Schema & Taxonomy

The skill organizes its management data through specific JSON structures and logging systems:

File Name Purpose
managed_keys_central.json Stores primary API provider credentials and endpoint URLs.
openrouter_keys.json Configures key rotation and specific model routing for OpenRouter.
cost_monitor.py Generates usage metadata and tracks spending against defined budgets.
gateway.log Records rotation events, validation errors, and health check results.

ClawAPI Manager Advanced Features

  • Intelligent Smart Routing that prioritizes cost-effective models based on task intent.
  • Multi-platform notification support for budget alerts, including Feishu and QQ.
  • Automated config validation with a one-click fix command for rapid troubleshooting.
  • Round-robin key rotation with configurable health check intervals.
  • Seamless integration with 40+ providers via standardized Openclaw Skills interfaces.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*