Skip to main content

Agent Quickstart

Get your headless agent calling ASG tools. Time to first call: ~2 minutes.
Start free: Use get_status and echo to validate your setup before making paid calls. These tools are always free — no payment required.

Prerequisites

Step 1: Create API Key

  1. Open Console
  2. Connect wallet → API KeysCreate Key
  3. Copy key (starts with sk-agent-...)

Step 2: Verify Setup (Free)

Test connectivity and auth with the free get_status tool — no payment needed:
Expected response (200):
✅ If you see "ok": true, your API key works. Move to the next step.

Step 3: Echo Test (Free)

Validate payload format with the free echo tool — no payment needed:
Expected response (200):
✅ If your message is echoed back, your request format is correct.

Step 4: Discover Available Tools

List all tools and their billing status:

Step 5: Make a Paid Call

Call a billable tool. If you have pre-funded balance, this returns 200 with the result immediately. If no balance, you get 402 with a quote.
If 200 — Success! The result is in data.result.content. If 402 — Payment Required:

Step 6: Pay and Retry

Send USDC on-chain, then retry with proof:
Faster path: Deposit USDC via Console → Balance first. Then paid tool calls deduct from your balance automatically — no per-call on-chain transactions needed.

Available Tools

See Tool Availability for the full catalog.

MCP Integration

For agents using the Model Context Protocol, connect directly:
Works with Claude Desktop, Cursor, Windsurf, and any MCP-compatible client.

Error Codes

What’s Next?

SDK Examples

TypeScript and Python code examples

Payment Flow

Complete payment lifecycle guide

Pricing

Service pricing details

Architecture

How ASG works under the hood