Three specialized AI agents — code analysis, context compression, and chat teleportation — available via REST API, Python SDK, and Claude MCP.
Each agent runs on the Fetch.ai decentralized network with a REST API and crypto-native billing.
Get a key, make your first call. No account, no credit card, no waiting.
# 1. Get a free API key (50 requests/day included) curl -X POST https://agentslab.duckdns.org/register \ -H "Content-Type: application/json" \ -d '{"name":"my-project"}' # → {"api_key":"fak_xxx","free_requests_per_day":50,...} # 2. Slim a GitHub file to only relevant code curl -X POST https://agentslab.duckdns.org/code/slim \ -H "X-API-Key: fak_xxx" \ -H "Content-Type: application/json" \ -d '{"url":"https://raw.githubusercontent.com/.../file.py","task":"fix auth bug"}' # → {"context":"...relevant code only...","_meta":{"free_remaining":49}} # 3. Check your quota curl https://agentslab.duckdns.org/code/me -H "X-API-Key: fak_xxx" # → {"user_id":"user_xxx","free_remaining_today":49,"balance_fet":0.0}
# pip install fetch-agents from fetch_agents import FetchAgents # Register once — no auth needed info = FetchAgents.register(name="my-project") print(info["api_key"]) # fak_xxx client = FetchAgents(api_key="fak_xxx") # Code Context Agent result = client.slim(url="https://raw.githubusercontent.com/.../auth.py", task="fix JWT bug") print(result["context"]) # relevant code only print(result["_meta"]) # {"free_remaining":49,"balance_fet":0.0,"cost_fet":0.0} # Context Doctor compressed = client.compress(text=long_text, max_length=500) # AI Teleporter client.teleport(data=claude_export_json) hits = client.search(index_id="my-index", query="auth bug discussion")
{
"mcpServers": {
"fetch-agents": {
"command": "python3",
"args": ["./mcp_server.py"],
"env": { "FETCH_API_KEY": "fak_xxx" }
}
}
}
// 8 tools become available in Claude:
// slim_code map_layers extract_layer compress_text
// analyze_context teleport_chat search_knowledge teleporter_formats
Add to your .mcp.json,
restart Claude — all 8 tools appear automatically. No SSH keys, no tunnels, no VM access required.
Start free. Pay only when you exceed the daily limit. Every response shows your remaining quota.
_meta quota in every responseSend any supported currency to a generated address. Balance is credited automatically after 1 blockchain confirmation — no manual steps.
Call POST /topup with the amount and your preferred currency. You'll receive a unique deposit address for this payment.
Send the exact amount from any wallet. The address is valid for 60 minutes. Each invoice is single-use.
After 1 on-chain confirmation (~10 min for BTC, ~30 sec for BNB/TRX), FET balance is added to your account. No action needed.
Use GET /topup/{invoice_id} to poll. Returns pending → confirming → paid.
# Request invoice — choose any currency curl -X POST https://agentslab.duckdns.org/code/topup \ -H "X-API-Key: fak_xxx" \ -H "Content-Type: application/json" \ -d '{"amount": 10, "currency": "bnb"}' # → { # "invoice_id": "inv_abc123", # "address": "0xABCDEF...", # "amount": "0.0312 BNB", # "expires_in": "60 minutes" # } # Check payment status curl https://agentslab.duckdns.org/code/topup/inv_abc123 \ -H "X-API-Key: fak_xxx" # → {"status":"paid","credited_fet":25.0}
Connect all 3 agents to Claude as native tools. Works in Claude.ai, Cursor, and any MCP-compatible client.
Click "Get Free API Key" above or run POST /register. Instant, no signup.
mcp_server.pySingle Python file. Requires Python 3.9+ and httpx.
curl -O https://agentslab.duckdns.org/mcp_server.py pip install httpx mcp
.mcp.jsonPaste the config with your key. Restart Claude. Done — all 8 tools appear.
"Slim this file for my task", "compress this context", "search my chat history for X" — it calls the agents automatically.
{
"mcpServers": {
"fetch-agents": {
"command": "python3",
"args": ["./mcp_server.py"],
"env": {
"FETCH_API_KEY": "fak_your_key_here"
}
}
}
}
// Tools available after connection:
// slim_code — slim file to task-relevant code
// map_layers — map file structure
// extract_layer — extract specific code layer
// compress_text — compress long text
// analyze_context — diagnose context bloat
// teleport_chat — import chat export
// search_knowledge — semantic chat search
// teleporter_formats — list supported formats