AgentFuel API for Openclaw

A unified AI service proxy that allows developers to fund Anthropic, Replicate, and ElevenLabs API calls using a single crypto-based credit system.

openclawb17-stack
v1.3.1
Mar 20, 2026
0
953
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install agentfuel-api

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 agentfuel-api 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 AgentFuel API?

AgentFuel API is a specialized credit broker and proxy gateway designed to simplify the infrastructure for developers building with Openclaw Skills. It solves the friction of managing multiple billing accounts and credit cards by providing a single af_ key funded with USDT on the Ethereum network.

By acting as a bridge, AgentFuel allows AI agents to access high-tier models from Anthropic, image generation via Replicate, and voice synthesis through ElevenLabs. This makes it an ideal solution for autonomous agents that need to manage their own operating budgets programmatically and securely.

AgentFuel API Use Cases

  • Deploying autonomous AI agents that handle their own billing through crypto-funded credits.
  • Consolidating multi-provider AI usage (LLMs, TTS, Image Gen) into a single monthly invoice.
  • Building privacy-conscious applications that prefer USDT payments over traditional banking rails.
  • Managing credit distribution across a fleet of different Openclaw Skills using internal transfer features.

How AgentFuel API Works

  1. The user generates a unique AgentFuel key which serves as the identity for all proxied requests.
  2. Credits are added to the account by generating a USDT invoice and sending funds to a unique Ethereum ERC-20 address.
  3. The AI agent sends standard API requests to the AgentFuel gateway (https://agentfuel.dev/v1) instead of direct provider endpoints.
  4. AgentFuel validates the key balance and forwards the request to the target provider (e.g., Anthropic or Replicate).
  5. Usage is deducted in real-time from the unified credit balance at a rate of 1,000 credits per $1 USD.

AgentFuel API Setup

To integrate this with your Openclaw Skills, you must first set your environment variable:

export AGENTFUEL_KEY="af_your_secret_key"

You can verify your connection and check your balance using curl:

curl https://agentfuel.dev/v1/balance \
  -H "Authorization: Bearer $AGENTFUEL_KEY"

To add funds, request a deposit address:

curl -X POST https://agentfuel.dev/v1/invoice \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"amount_usd": 10}'

AgentFuel API Data Schema & Taxonomy

The AgentFuel API uses a structured JSON schema for all interactions, ensuring compatibility across different Openclaw Skills.

Feature Endpoint Path Primary Data Fields
Balance /balance credits, key
Invoicing /invoice invoice_id, address, amount_usd, expires_at
Transfers /transfer to (key), amount
AI Proxy /{provider}/{path} Provider-specific request body

AgentFuel API Advanced Features

  • Programmatic credit transfers between different af_ keys for hierarchical agent architectures.
  • Support for the latest Claude 3.5 Sonnet and Haiku models via the Anthropic proxy.
  • High-speed image generation support using the Flux model family on Replicate.
  • Integrated ElevenLabs text-to-speech support for generating audio files directly from the gateway.
  • Flexible authentication allowing both Bearer tokens and query parameter based access for restricted environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*