Live on Base

Your agent earns. Your agent thinks. You pay less for AI.

Your unused AI subscription earns USDC every time another agent calls it. Use your earnings on pooled LLM calls at below-retail rates with no subscription and no minimums.

Become an agent that thinks for free

Register your API key. It earns USDC per token served — deposited to the same wallet you spend from. No transfer step. No human approval. Share enough capacity and your reasoning costs nothing. Configure it once. It runs forever. Start here →

How It Works

Two ways to use Targe

Earn

Earn 90% of every token your key serves, paid automatically in USDC.

All keys are encrypted and never exposed.

How to earn →

Subscription free AI

Need AI without a subscription? Access pooled keys from the network. Pay per token in USDC, only for what you use.

Anthropic keys 70% below retail. OpenAI and Google pools open to subscription key holders.

Get started →
Live Data

Live Pool Status

Current availability and pricing across all pooled keys, refreshes every 60 seconds.

Key Pool
Loading pool data…
For key owners

Earn USDC from your unused API capacity

Register your LLM key, set your markup, and earn every time another agent uses it. You keep 90% of every token charged. The gateway handles routing, encryption, rate limiting, and settlement.

1

Register your wallet

Create an agent account with an EIP-191 signature. Takes seconds. POST /agent/register

2

Share your API key

Submit your LLM key via POST /agent/keys. It is encrypted with AES-256-GCM and never exposed to consumers or visible in the pool.

3

Set your markup

A minimum markup is enforced above retail reference pricing. Scarcity-based dynamic pricing is auto-applied at peak demand — up to 2× the base rate.

4

Earn automatically

Your share of every token is credited to your wallet balance in USDC. View your earnings at GET /agent/keys/:id/earnings. Earnings are credited to your spendable balance immediately — no withdrawal cycle needed to reuse them.

register key
# Register your Anthropic API key in the pool
$ curl -X POST https://api.targe.io/agent/keys \
  -H "X-Agent-Auth: <base64-auth-json>" \
  -H "Content-Type: application/json" \
  -d '{
    "llmProvider": "anthropic",
    "baseUrl": "https://api.anthropic.com",
    "apiKey": "sk-ant-...",
    "models": ["claude-haiku-4-5-20251001"],
    "rateLimits": {"tpm": 100000, "rpm": 60},
    "pricing": {"mode": "cost_plus", "markupPercent": 20},
    "costBasis": "subscription"
  }'

# Response includes key ID, status, and estimated margins
{"key":{"id":"skey-abc123","status":"available"},"estimatedMargins":{...}}

# Check earnings any time
$ curl https://api.targe.io/agent/keys/skey-abc123/earnings \
  -H "X-Agent-Auth: <base64-auth-json>"

# Pause or reclaim at any time
$ curl -X POST https://api.targe.io/agent/keys/skey-abc123/pause \
  -H "X-Agent-Auth: <base64-auth-json>"
Your key is encrypted at rest. Consumers never see it. You set rate limits. You can pause or withdraw at any time with one signed request.
Anthropic Claude OpenAI GPT Google Gemini
For consumers

Access AI models without a subscription

Call the pool proxy and the gateway routes to the best available key based on price, capacity, and reliability. Pay per token in USDC. No monthly plan. No API key needed.

1

Register a wallet

One-time registration with an EIP-191 signature. POST /agent/register

2

Deposit USDC on Base

Send any amount of USDC to your deposit address on Base. Credited automatically within a few confirmations.

3

Call the pool proxy

Use the standard provider API format. The gateway selects the best available key automatically. POST /proxy/pool/anthropic/v1/messages

4

Pay only for what you use

Balance is deducted per token after the response completes. No minimums. Check remaining balance at GET /agent/balance.

pool request — non-streaming
# Call Anthropic via pool — best key auto-selected
$ curl -X POST https://api.targe.io/proxy/pool/anthropic/v1/messages \
  -H "Payment-Signature: <base64-payment-json>" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-haiku-4-5-20251001",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

# Response includes upstream data + pool metadata
{"content":[...],"_x402_pool":{"selectedKey":"skey-...","poolSize":4}}
pool request — streaming (SSE)
# Add "stream": true for SSE streaming
$ curl -N -X POST https://api.targe.io/proxy/pool/anthropic/v1/messages \
  -H "Payment-Signature: <base64-payment-json>" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-haiku-4-5-20251001","max_tokens":256,
    "messages":[{"role":"user","content":"Hi"}],"stream":true}'

event: message_start
data: {"type":"message_start",...}

event: content_block_delta
data: {"type":"content_block_delta","delta":{"text":"Hello!"}}

# Token usage metered and settled automatically on stream end
Streaming (SSE) is fully supported. Balance is deducted after the stream completes based on actual token usage. See the live pool status above for current pricing across all active models.
MCP Server

Works inside Claude — no code required

Install the Targe MCP server and Claude Desktop or Cursor can call the LLM pool directly as a tool. Non-developers can earn, consume, and manage keys through natural language — zero code.

4 tools, one install

Ask Claude to call the pool, check your balance, or register a key — all through natural language. No code, no headers, no signing required.

View on GitHub →

One command to connect

Add Targe to Claude Code, Claude Desktop, or Cursor. After restart, all four tools appear automatically. Claude handles auth, pool selection, and payments for you.

View on npm →
Claude Code — add MCP server
# Add Targe as an MCP server (Claude Code)
$ claude mcp add targe --scope user \
  -e "WALLET_KEY=0xYourPrivateKey" \
  -- npx -y @targe/mcp-server

# Restart Claude Code — then ask Claude:
"What LLM models are available on Targe?"
"What's my Targe balance?"
"Call claude-haiku via the Targe pool and summarise this doc."
"Register my Anthropic key in the pool with 20% markup."
Claude Desktop / Cursor — mcp config
// Add to your Claude Desktop or Cursor MCP config
{
  "mcpServers": {
    "targe": {
      "command": "npx",
      "args": ["-y", "@targe/mcp-server"],
      "env": {
        "WALLET_KEY": "0xYourPrivateKey"
      }
    }
  }
}
Quick Start

Get started in minutes

Choose your integration path.

step 1 — register
# Sign challenge: targe-provider:register:{timestamp}
$ curl -X POST https://api.targe.io/agent/register \
  -H "Content-Type: application/json" \
  -d '{"address":"0xYourWallet","signature":"0xSig...","timestamp":1706356800000}'

{"success":true,"address":"0x...","depositAddress":"0x..."}
step 2 — deposit USDC on Base
# Send USDC to your deposit address on Base
# Credited automatically after ~3 confirmations

# Check your balance
$ curl https://api.targe.io/agent/balance \
  -H "X-Agent-Auth: <base64-auth-json>"
step 3 — browse pools
# View available LLM pools and live pricing
$ curl https://api.targe.io/catalog | jq '.keyPools'
step 4 — call the pool
# Payment-Signature = base64(JSON({"from": "0xYourWallet"}))
$ curl -X POST https://api.targe.io/proxy/pool/anthropic/v1/messages \
  -H "Payment-Signature: <base64-payment-json>" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-haiku-4-5-20251001","max_tokens":256,
    "messages":[{"role":"user","content":"Hello!"}]}'
TypeScript SDK
# Install the SDK
$ npm install @targe/sdk

// Initialize with your wallet private key
import { Targe } from '@targe/sdk';

const client = new Targe({ privateKey: '0x...' });

// Check balance
const balance = await client.getBalance();

// Call pool proxy
const response = await client.proxyPool('anthropic', 'v1/messages', {
  model: 'claude-haiku-4-5-20251001',
  max_tokens: 1024,
  messages: [{ role: 'user', content: 'Hello!' }]
});

// Streaming
for await (const chunk of client.proxyPoolStream('anthropic', 'v1/messages', {
  model: 'claude-haiku-4-5-20251001',
  max_tokens: 256,
  messages: [{ role: 'user', content: 'Hi' }]
})) { process.stdout.write(chunk); }
Using Claude Desktop or Cursor?
No code required — see the MCP server section to connect Targe directly to Claude as a tool.
Claude Desktop / Cursor MCP config
// Add to your Claude Desktop or Cursor MCP config
{
  "mcpServers": {
    "targe": {
      "command": "npx",
      "args": ["-y", "@targe/mcp-server"],
      "env": {
        "WALLET_KEY": "0xYourPrivateKey"
      }
    }
  }
}
4 tools available after restart:
targe_get_catalog — list live pools and pricing
targe_get_balance — check your USDC balance
targe_proxy_pool — call any LLM via the pool
targe_register_key — share an API key to earn USDC