TokenBroker is a unified AI API gateway that provides smart routing, budget control, and cost auditing for local LLM API calls.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install ai-token-broker
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install ai-token-broker using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
TokenBroker is an advanced, unified AI API gateway built to streamline how your local agents interact with various LLM providers. As one of the premier Openclaw Skills, it acts as an intelligent proxy that sits between your applications and your AI endpoints. It dynamically resolves routing rules to ensure that requests are sent to the most budget-appropriate and performance-fitting models.
By managing connections centrally, TokenBroker avoids redundant billing, optimizes token usage, and automatically switches fallback pipelines based on real-time budget status. The system is designed to seamlessly integrate with local budgeting frameworks to enforce monthly caps, making it an essential component for high-throughput AI environments.
TokenBroker depends on its backend service running on port 8766. It typically starts automatically upon installation. If you need to manually launch or restart the service, navigate to the system directory and run the server:
cd ~/.openclaw/workspace/production-system/token-broker
npx ts-node src/server.ts
Deploy this skill directly via your command line interface:
# Install via ClawHub
clawhub install ai-token-broker
# Or install via OpenClaw command line
openclaw skills install ai-token-broker
Following installation, the system automatically compiles TypeScript builds, validates port configuration, launches the background engine, and registers it as a daemon managed by Supervisor.
TokenBroker maps specific execution types to optimized API targets:
| Task Type | Target Model | Routing Rule Description |
|---|---|---|
| Daily Q&A | DeepSeek V3 Lite | Automatically routed to the free tier to minimize operational costs. |
| Analysis & Writing | DeepSeek V4 Fast | Dispatched to mid-tier models optimized for rapid and low-cost execution. |
| Coding & Reasoning | DeepSeek V4 Thinking | Routed to high-reasoning, premium models for mission-critical logic. |
| Budget Exhaustion | Free Tier Fallback | Automatically downgrades the provider to free options to maintain uptime. |
Manage the gateway using conversational query structures within your interface:
| Command Pattern | Expected System Response |
|---|---|
Broker status or Gateway status |
Verifies and prints the current API gateway connection status. |
Route stats or API stats |
Displays a detailed report of routed LLM calls and associated latency. |
Set route [Task] [Provider] |
Updates or overrides active routing rules in the configuration store. |
How much spent today |
Prints an aggregated summary of the actual budget consumed today. |
Broker help |
Displays the listing of all available management commands. |
http://localhost:8766/api/health. If offline, it downgrades automatically to direct API connections so operations remain uninterrupted.Loading
A powerful copywriting assistant designed to generate high-converting, viral Xiaohongshu (XHS) social media copy, diagnose content strategies, and draft structured action plans.

An AI agent skill powered by the Xiangyun API to perform highly accurate, structured passport OCR and metadata extraction from images.

An AI behavioral tracking tool that uses computer vision to analyze pet play area video feeds, quantify toy interactions, and generate daily health and wellness activity curves.

An architectural blueprint and audit tool designed to keep your OpenClaw bootstrap filesystem lean, organized, and optimized for low token usage.

A specialized tool that strips artificial writing signatures from Chinese text drafts, transforming them into natural, humanized, and platform-native copy.

An AI-powered copywriting reviewer that analyzes marketing drafts and WeChat articles to deliver diagnostic insights, structural optimizations, and actionable writing revisions.








































