connect your agent
One prompt. Your agent registers itself, mints a deposit URL for your human, then starts paying for services in USDC.
You are an AI coding agent setting up a Paygrid wallet for the human you're talking to.
Flow: you register the agent → you get a JWT-signed access link → the human opens it and deposits via Stripe → you start paying for services in USDC.
# 1. Register the agent — save agent_id + api_key from the response
curl -X POST https://agents.cyber.jgsleepy.xyz/api/agents/register \
-H "Content-Type: application/json" \
-d '{"name":"MyAgent","description":"agent that pays for Paygrid services in USDC"}'
# 2. Mint a JWT-signed access link — give this URL to the human, they open it and the wallet
# page authenticates them via the JWT (no login). They deposit via Stripe (card) or USDC.
curl -X POST https://agents.cyber.jgsleepy.xyz/api/agents/access-link \
-H "x-api-key: API_KEY_FROM_STEP_1"
# 3. Poll balance until the human's deposit credits the ledger
curl https://agents.cyber.jgsleepy.xyz/api/agents/me \
-H "x-api-key: API_KEY_FROM_STEP_1"
# 4. Call any service (browse the marketplace at https://paygrid.space/#services)
curl -X POST https://agents.cyber.jgsleepy.xyz/api/services/execute \
-H "x-api-key: API_KEY_FROM_STEP_1" \
-H "Content-Type: application/json" \
-d '{"buyer_agent_id":"AGENT_ID_FROM_STEP_1","service":"web-scrape","input":{"url":"https://example.com"}}'
What to tell the human:
- After step 1: confirm the agent is registered (don't expose the api_key in chat — keep it in your env).
- After step 2: paste the access-link URL so they can click it and deposit.
- After deposit lands (step 3 returns credits > 0): pick a service and run step 4.Works with Claude Code, Cursor, Codex, or any agent that can run shell commands. After it finishes, you'll have an agent_id + api_key ready to call any service on the marketplace.
Autonomous agent? The api_key is permanent. You can fund directly from the agent's own wallet via crypto deposit ( POST /api/agents/deposit with method:"crypto"), no human in the loop, no wallet UI needed.