Fuel

Integrations

Works with what your agent already uses

Fuel speaks the OpenAI API. Point your framework at https://fuelai.cloud/v1, use a Fuel key, and every job runs on the cheapest healthy compute, paid from the agent's own wallet.

Starter kit

Give an agent its own wallet in one command

The quickstart creates a Solana wallet for the agent (or uses yours), signs in, checks the balance, claims the free trial credits (any wallet, once), and runs a first job. Signing in never sends a transaction.

bash
curl -O https://fuelai.cloud/starter/quickstart.mjs
npm i @noble/curves bs58 openai
node quickstart.mjs
bash
curl -O https://fuelai.cloud/starter/quickstart.py
pip install pynacl base58 openai requests
python quickstart.py

Set FUEL_KEYPAIR to use an existing Solana keypair file. Fund the agent by sending USDC or SOL from its wallet to the deposit address it prints.

For agents and tools

Machine-readable

  • /llms.txtPlain-text guide for agents that read sites: sign-in, top-ups, live model prices
  • /openapi.jsonOpenAPI 3.1 spec: import into tools, SDK generators and API directories
  • /v1/modelsEvery model with Fuel's price per 1M tokens
  • /v1/statusLive system status

Getting a key by hand: sign in on the dashboard with Phantom, Solflare or Backpack.

x402

Pay per request, no account

Any x402 client can use Fuel with no sign-up and no top-up. Call a compute endpoint without an Authorization header and Fuel answers 402 with a PAYMENT-REQUIRED header: the job's price ceiling in USDC on Solana (x402 v2, scheme exact, at least $0.01). Sign the USDC transfer with the agent's wallet and send the same request again with PAYMENT-SIGNATURE. Fuel pays the network fee, settles the payment, runs the job as that wallet and returns PAYMENT-RESPONSE with the result. Whatever the job didn't use stays in the wallet's Fuel balance, and a failed job costs nothing.

Works on

/v1/chat/completions, /v1/embeddings, /v1/images/generations, /v1/videos and /v1/3d

Pays in

USDC on Solana mainnet, to Fuel's deposit wallet; Fuel sponsors the network fee

Each payment

Pays for one request. Reusing a signed payment is refused

Agent framework plugins

Agents that manage their own compute

Beyond a base URL: these let an agent check its balance, see prices, run jobs and top up from its own wallet. Built and tested; publishing to npm shortly.

ElizaOS

soon

@fuelcompute/plugin-elizaos

Fuel as the model provider + balance and price actions

GOAT

soon

@fuelcompute/goat-plugin

Balance, prices, completions and capped top-ups as tools

Solana Agent Kit

soon

@fuelcompute/solana-agent-kit-plugin

Methods and actions for v2 agents

MCP

soon

@fuelcompute/mcp

Claude Desktop, Claude Code, Cursor, any MCP client

TypeScript SDK

soon

@fuelcompute/sdk

Wallet sign-in, jobs, market data, credits

OpenAI SDK (Python)

pip install openai
python
from openai import OpenAI

client = OpenAI(base_url="https://fuelai.cloud/v1", api_key="fuel_sk_...")
r = client.chat.completions.create(
    model="openai/gpt-oss-120b",
    messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)
print(r.model_extra["fuel"])  # receipt: provider, price_usd, tokens

OpenAI SDK (Node)

npm i openai
ts
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://fuelai.cloud/v1", apiKey: process.env.FUEL_API_KEY });
const r = await client.chat.completions.create({
  model: "openai/gpt-oss-120b",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(r.choices[0].message.content);

Vercel AI SDK

npm i ai @ai-sdk/openai-compatible
ts
import { generateText } from "ai";
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";

const fuel = createOpenAICompatible({ name: "fuel", baseURL: "https://fuelai.cloud/v1", apiKey: process.env.FUEL_API_KEY });
const { text } = await generateText({ model: fuel("openai/gpt-oss-120b"), prompt: "Hello" });

LangChain (Python)

pip install langchain-openai
python
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(model="openai/gpt-oss-120b", base_url="https://fuelai.cloud/v1", api_key="fuel_sk_...")
print(llm.invoke("Hello").content)

LangChain JS: new ChatOpenAI({ model, apiKey, configuration: { baseURL } }).

LlamaIndex

pip install llama-index-llms-openai-like
python
from llama_index.llms.openai_like import OpenAILike

llm = OpenAILike(model="openai/gpt-oss-120b", api_base="https://fuelai.cloud/v1", api_key="fuel_sk_...", is_chat_model=True)
print(llm.complete("Hello"))

CrewAI

pip install crewai
python
from crewai import Agent, LLM

# "openai/" tells CrewAI (via LiteLLM) to use the OpenAI-compatible protocol
llm = LLM(model="openai/openai/gpt-oss-120b", base_url="https://fuelai.cloud/v1", api_key="fuel_sk_...")
researcher = Agent(role="Researcher", goal="Find facts", backstory="Careful", llm=llm)

OpenAI Agents SDK

pip install openai-agents
python
import asyncio
from agents import Agent, Runner, AsyncOpenAI, OpenAIChatCompletionsModel, set_tracing_disabled

set_tracing_disabled(True)  # tracing needs an OpenAI platform key
client = AsyncOpenAI(base_url="https://fuelai.cloud/v1", api_key="fuel_sk_...")
agent = Agent(
    name="Researcher",
    instructions="Answer briefly.",
    model=OpenAIChatCompletionsModel(model="openai/gpt-oss-120b", openai_client=client),
)
print(asyncio.run(Runner.run(agent, "Hello")).final_output)

The successor to OpenAI's Swarm. Handoffs between agents work the same way: give each agent the Fuel model.

Swarms

pip install swarms
python
from swarms import Agent

agent = Agent(
    agent_name="Researcher",
    model_name="openai/openai/gpt-oss-120b",   # "openai/" = OpenAI-compatible endpoint
    llm_base_url="https://fuelai.cloud/v1",
    llm_api_key="fuel_sk_...",
    max_loops=1,
)
print(agent.run("Hello"))

Follows the Swarms docs (llm_base_url / llm_api_key); not yet run against Fuel by us.

Claude SDK (Anthropic format)

npm i @anthropic-ai/sdk
ts
import Anthropic from "@anthropic-ai/sdk";

// Fuel speaks Anthropic's Messages format too: Claude or open models
const client = new Anthropic({ baseURL: "https://fuelai.cloud", apiKey: process.env.FUEL_API_KEY });
const msg = await client.messages.create({
  model: "claude-sonnet-5-5",          // or "openai/gpt-oss-120b", "Qwen/Qwen3.5-9B", …
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});

Streaming and tool use work. Bare Claude ids map to anthropic/…; any Fuel model id works.

curl

bash
curl https://fuelai.cloud/v1/chat/completions \
  -H "Authorization: Bearer fuel_sk_..." -H "Content-Type: application/json" \
  -d '{"model":"openai/gpt-oss-120b","messages":[{"role":"user","content":"Hello"}]}'