搜索

PythonReactSEOPDF
OpenClaw

Clawapi Manager

ClawAPI Manager

2233admin0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install 2233admin/clawapi-manager

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

ClawAPI Manager

🔧 Professional API management and cost optimization for OpenClaw deployments

English | 中文


English

Overview

ClawAPI Manager is an OpenClaw-native tool for managing API keys, monitoring costs, and optimizing API spending through intelligent routing. It saves 30-90% on API costs by automatically routing simple tasks to free models.

Capabilities
  • Multi-Provider Management: Manage keys for OpenAI, Anthropic, Google, and 40+ providers
  • Cost Tracking: Real-time monitoring of API usage and spending
  • Smart Routing: Automatically route tasks to cost-effective models
  • Key Health Monitoring: Detect expired, rate-limited, or invalid keys
  • Config Validation: Detect and auto-fix configuration issues
  • Budget Alerts: Multi-channel notifications (Telegram, Discord, Slack, Feishu, QQ)
  • Automated Failover: Round-robin key rotation with health checks
How to Use
1. Installation
cd ~/.openclaw/workspace/skills
git clone https://github.com/2233admin/clawapi-manager.git
cd clawapi-manager
pip install -r requirements.txt
2. Basic Commands
# List all providers
python3 claw_api_manager_central.py list

# Validate configuration
python3 claw_api_manager_central.py validate

# Auto-fix configuration issues
python3 claw_api_manager_central.py fix

# Update API key
python3 claw_api_manager_central.py update provider-name new-key

# Add new provider
python3 claw_api_manager_central.py add provider-name https://api.example.com sk-key anthropic-messages
3. Configuration
# Create example configs
cp config/managed_keys_central.json.example config/managed_keys_central.json
cp config/openrouter_keys.json.example config/openrouter_keys.json

# Edit with your keys
nano config/managed_keys_central.json
Example Usage

Scenario 1: Validate Configuration

User: "Check if my OpenClaw config is valid"
Assistant: [Runs validate command, repo...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/2233admin/clawapi-manager
Version
—
Commit
b62e5c7ecd3fb46751326ae053ea412fd7e1dbb6
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

ClawAPI Manager

🔧 Professional API management and cost optimization for OpenClaw deployments

English | 中文


English

Professional API management and cost optimization for OpenClaw deployments.

What It Does

Manages API keys, monitors costs, and routes tasks to the most cost-effective models automatically. Saves 30-90% on API costs through intelligent routing and free model integration.

Professional API management and cost optimization for OpenClaw deployments.

What It Does

Manages API keys, monitors costs, and routes tasks to the most cost-effective models automatically. Saves 30-90% on API costs through intelligent routing and free model integration.

Key Features

  • Smart Routing: Automatically routes simple tasks to free models (Qwen, Llama) via OpenRouter
  • Cost Tracking: Real-time monitoring of API usage and spending
  • Multi-Provider: Supports OpenAI, Anthropic, Google, and 40+ providers
  • Budget Alerts: Get notified before you exceed spending limits
  • Key Health: Automatic detection of expired or rate-limited keys
  • Multi-Channel Alerts: Telegram, Discord, Slack, Feishu, QQ, DingTalk

Quick Start

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

# Configure notifications (optional)
cp config/notify.json.example config/notify.json
# Edit with your webhook URLs

# Test
python3 lib/cost_monitor.py health

How It Saves Money

The system analyzes each task and routes it intelligently:

  • Simple tasks (search, weather, translate) → Free models (100% savings)
  • Medium tasks (summaries, basic code) → Cost-effective models (50-70% savings)
  • Complex tasks (architecture, analysis) → Premium models (Opus, GPT-4)
Example Savings
Task Type Before After Savings
Weather check $0.015 $0.00 100%
Code rev...

来源内容

SKILL.md
# ClawAPI Manager

> 🔧 Professional API management and cost optimization for OpenClaw deployments

[English](#english) | [中文](#中文)

---

## English

### Overview

ClawAPI Manager is an OpenClaw-native tool for managing API keys, monitoring costs, and optimizing API spending through intelligent routing. It saves 30-90% on API costs by automatically routing simple tasks to free models.

### Capabilities

- **Multi-Provider Management**: Manage keys for OpenAI, Anthropic, Google, and 40+ providers
- **Cost Tracking**: Real-time monitoring of API usage and spending
- **Smart Routing**: Automatically route tasks to cost-effective models
- **Key Health Monitoring**: Detect expired, rate-limited, or invalid keys
- **Config Validation**: Detect and auto-fix configuration issues
- **Budget Alerts**: Multi-channel notifications (Telegram, Discord, Slack, Feishu, QQ)
- **Automated Failover**: Round-robin key rotation with health checks

### How to Use

#### 1. Installation

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

#### 2. Basic Commands

```bash
# List all providers
python3 claw_api_manager_central.py list

# Validate configuration
python3 claw_api_manager_central.py validate

# Auto-fix configuration issues
python3 claw_api_manager_central.py fix

# Update API key
python3 claw_api_manager_central.py update provider-name new-key

# Add new provider
python3 claw_api_manager_central.py add provider-name https://api.example.com sk-key anthropic-messages
```

#### 3. Configuration

```bash
# Create example configs
cp config/managed_keys_central.json.example config/managed_keys_central.json
cp config/openrouter_keys.json.example config/openrouter_keys.json

# Edit with your keys
nano config/managed_keys_central.json
```

### Example Usage

**Scenario 1: Validate Configuration**
```
User: "Check if my OpenClaw config is valid"
Assistant: [Runs validate command, repo...
README
# ClawAPI Manager

> 🔧 Professional API management and cost optimization for OpenClaw deployments

[English](#english) | [中文](#中文)

---

## English

Professional API management and cost optimization for OpenClaw deployments.

### What It Does

Manages API keys, monitors costs, and routes tasks to the most cost-effective models automatically. Saves 30-90% on API costs through intelligent routing and free model integration.

Professional API management and cost optimization for OpenClaw deployments.

## What It Does

Manages API keys, monitors costs, and routes tasks to the most cost-effective models automatically. Saves 30-90% on API costs through intelligent routing and free model integration.

## Key Features

- **Smart Routing**: Automatically routes simple tasks to free models (Qwen, Llama) via OpenRouter
- **Cost Tracking**: Real-time monitoring of API usage and spending
- **Multi-Provider**: Supports OpenAI, Anthropic, Google, and 40+ providers
- **Budget Alerts**: Get notified before you exceed spending limits
- **Key Health**: Automatic detection of expired or rate-limited keys
- **Multi-Channel Alerts**: Telegram, Discord, Slack, Feishu, QQ, DingTalk

## Quick Start

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

# Configure notifications (optional)
cp config/notify.json.example config/notify.json
# Edit with your webhook URLs

# Test
python3 lib/cost_monitor.py health
```

## How It Saves Money

The system analyzes each task and routes it intelligently:

- **Simple tasks** (search, weather, translate) → Free models (100% savings)
- **Medium tasks** (summaries, basic code) → Cost-effective models (50-70% savings)
- **Complex tasks** (architecture, analysis) → Premium models (Opus, GPT-4)

### Example Savings

| Task Type | Before | After | Savings |
|-----------|--------|-------|---------|
| Weather check | $0.015 | $0.00 | 100% |
| Code rev...

相关技能

OpenClaw

xint

0xnyk

X Intelligence CLI — search, monitor, analyze, and engage on X/Twitter. TypeScript + Bun. AI agent skill.

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

flightclaw

jackculpan

Track flight prices from Google Flights with this OpenClaw skill. Search routes, monitor prices, and get alerts when prices drop.

OpenClaw

openclaw-trading-assistant

openclaw-trade

openclaw trading assistant| openclaw trading skill | nof1.ai & openclaw [moltbot] collaboration | We get the best practices from alpha arena trading seasons and bring it to clawdbot All top AI agents, realtime...