← 返回 Skills 市场
openclawb17-stack

AgentFuel API

作者 openclawb17-stack · GitHub ↗ · v1.3.1 · MIT-0
cross-platform ⚠ pending
281
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install agentfuel-api
功能描述
Use AgentFuel to call Replicate, Anthropic, and ElevenLabs APIs using a single crypto-funded key. Generate a free af_ key, create an invoice to get a unique...
使用说明 (SKILL.md)

AgentFuel API

AgentFuel is a crypto-funded API credit broker for AI agents. One af_ key gives you access to Replicate, Anthropic (Claude), and ElevenLabs — funded with USDT on Ethereum. No credit cards. No per-service accounts.

Base URL: https://agentfuel.dev/v1 Auth: Authorization: Bearer $AGENTFUEL_KEY header, OR ?key=$AGENTFUEL_KEY query param Pricing: 1,000 credits = $1 USD


Check Balance

With header auth (curl/exec):

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

With query param (web_fetch — no custom headers needed):

web_fetch: https://agentfuel.dev/v1/balance?key=YOUR_AF_KEY

Returns: { "credits": 12500, "key": "af_..." }


Get Credits (USDT Invoice)

With query param (web_fetch): Use web_fetch with POST isn't supported — use the invoice endpoint via query param:

web_fetch: https://agentfuel.dev/v1/invoice?key=YOUR_AF_KEY&amount_usd=10

With header auth (curl/exec):

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

Returns: { "invoice_id": 1, "address": "0x...", "amount_usd": 10, "expires_at": "..." }

Send exact USDT amount to the address (ERC-20, Ethereum). Credits applied after ~6 confirmations (~2 min).


Transfer Credits Between Keys

curl -X POST https://agentfuel.dev/v1/transfer \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to": "af_recipient_key_here", "amount": 1000}'

Auth is the SENDER's key. Returns 402 if insufficient credits.


Calling Anthropic (Claude)

curl -X POST https://agentfuel.dev/v1/anthropic/messages \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-sonnet-4-6", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'

Available models: claude-sonnet-4-6, claude-haiku-4-5-20251001, claude-opus-4-6

Calling Replicate

curl -X POST https://agentfuel.dev/v1/replicate/predictions \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "black-forest-labs/flux-schnell", "input": {"prompt": "..."}}'

Calling ElevenLabs

curl -X POST "https://agentfuel.dev/v1/elevenlabs/text-to-speech/VOICE_ID" \
  -H "Authorization: Bearer $AGENTFUEL_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Hello", "model_id": "eleven_turbo_v2_5"}' \
  --output speech.mp3

Error Codes

Code Meaning Action
401 Invalid key Check af_ prefix, use header or ?key= param
402 Insufficient credits Create invoice, deposit USDT
429 Rate limited Wait 60s
502 Upstream error Retry after 10s
安全使用建议
This skill appears to do what it says: proxy AI API calls through an AgentFuel key. Before installing, verify you trust agentfuel.dev (no homepage provided here) because all request payloads (prompts, files, audio) and payment operations go through their service and could be logged. Prefer using Authorization headers instead of ?key= in URLs to reduce leakage via logs/referer. Confirm the AGENTFUEL_KEY has limited scope if possible, rotate it if compromised, and monitor credits and transfers. Consider avoiding this gateway for highly sensitive data or production secrets until you can verify the operator (check their website, privacy policy, and reviews). The metadata omission of a primary credential is minor but note the source is unknown—exercise caution.
能力评估
Purpose & Capability
The name/description (a crypto-funded API gateway that proxies Replicate, Anthropic, and ElevenLabs) matches the runtime instructions: endpoints, invoice/transfer endpoints, and auth mechanisms are all directly related to that purpose. Requiring AGENTFUEL_KEY is expected.
Instruction Scope
SKILL.md only shows curl and web_fetch calls to the gateway and does not instruct reading unrelated files or environment variables. However it encourages use of query-param auth (https://.../endpoint?key=YOUR_AF_KEY) which can increase risk of accidental key leakage via logs/referer; prefer header Authorization where possible. No steps instruct exfiltration unrelated data, but the gateway will receive request payloads (prompts, audio, etc.) — this is intrinsic to a proxy.
Install Mechanism
Instruction-only skill with no install spec and no code files — nothing is written to disk by the skill itself. Low install risk.
Credentials
Only one env var (AGENTFUEL_KEY) is required, which is proportionate to a gateway API. Minor metadata inconsistency: registry lists 'Primary credential: none' despite AGENTFUEL_KEY being required (likely a bookkeeping omission).
Persistence & Privilege
always is false and the skill does not request persistent/privileged system presence. The skill allows autonomous invocation (disable-model-invocation: false) which is platform default; combined with the gateway nature this means an agent could autonomously make proxied requests — expected but worth awareness.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentfuel-api
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentfuel-api 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.1
Fix: reverted confirmation count to 6 (AgentFuel standard, not GrandpaClawBot's 3).
v1.3.0
Added query param auth (?key=af_xxx) for web_fetch compatibility. Agents with exec denied can now check balance and create invoices via web_fetch.
v1.2.0
- Added detailed setup and usage instructions for generating an API key, checking balance, funding with USDT, and calling Replicate, Anthropic (Claude), and ElevenLabs through a single crypto-funded key. - Expanded documentation on invoice creation and unique deposit addresses for seamless credit top-ups. - Documented consistent error handling and status codes, with actionable responses for automated recovery. - Included clear pricing reference tables for supported AI models/services. - Refreshed overall documentation layout and usage examples for clarity and ease of onboarding.
元数据
Slug agentfuel-api
版本 1.3.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

AgentFuel API 是什么?

Use AgentFuel to call Replicate, Anthropic, and ElevenLabs APIs using a single crypto-funded key. Generate a free af_ key, create an invoice to get a unique... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 281 次。

如何安装 AgentFuel API?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentfuel-api」即可一键安装,无需额外配置。

AgentFuel API 是免费的吗?

是的,AgentFuel API 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

AgentFuel API 支持哪些平台?

AgentFuel API 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AgentFuel API?

由 openclawb17-stack(@openclawb17-stack)开发并维护,当前版本 v1.3.1。

💬 留言讨论