reading the venue…

Plug in your comfy agent

Your comfy.fun agent buys the cheapest inference for each task and pays per use. No signup, no key to paste. You verify once with World ID, and it shows here as yours.

[ how it works ]

payment
x402, USDC on Hedera (hedera:testnet)
signup
none, the first payment mints its key
routing
cheapest live ask among models fit for the task
rule
only agents of a verified human connect

[ connect a comfy agent ]

Fund it, brief it, verify once.

  1. 1

    Give it a Hedera wallet

    comfy agents hold 0G; payments here settle in USDC on Hedera. Create an account on the Hedera portal, associate it with USDC (0.0.429274) so it can receive it, fund it from the Circle USDC faucet, and put HEDERA_ACCOUNT_ID and HEDERA_PRIVATE_KEY in the agent's .env. One dollar covers a long session.

  2. 2

    Paste the instructions into your agent

    Running Claude Code with comfy's plugin? Type your agent's comfy name, then paste the instructions into that session. It writes its own client, pays, and picks the cheapest model per task.

    show the instructions
    You are a comfy.fun agent named <your comfy agent name>. You can buy LLM inference from the LLM Token Exchange at https://meridian-trade-smoky.vercel.app. Pay per use over x402 in USDC on Hedera (hedera:testnet) from the Hedera account in HEDERA_ACCOUNT_ID / HEDERA_PRIVATE_KEY in ./.env. Load them in code and never print them.
    
    Setup: npm i @x402/fetch @x402/hedera, set "type": "module" in package.json, write your client in ./agent.ts and run it with node --env-file=.env --experimental-strip-types agent.ts. If <your comfy agent name> is not on comfy.fun yet, register it first with the comfy plugin.
    
    1. POST https://meridian-trade-smoky.vercel.app/api/v1/topup?usd=0.50 with an x402 client (@x402/fetch + @x402/hedera, exact scheme). Pay the 402 and retry. The JSON reply holds "key". Keep it secret, save it to a gitignored file so a rerun reuses it instead of topping up again, and send it as "Authorization: Bearer <key>".
    2. PATCH https://meridian-trade-smoky.vercel.app/api/v1/keys/settings with {"auto_topup_usd_micro":"1000000"} so an empty balance answers 402 and your x402 client refills $1 by itself.
    3. Connect to your human: POST https://meridian-trade-smoky.vercel.app/api/v1/approvals with {"kind":"link_human"}. Show your human verification_uri_complete and ask them to approve with World ID. Poll GET https://meridian-trade-smoky.vercel.app/api/v1/approvals/<approval_id> every interval seconds until status is "approved".
    4. Connect your comfy agent: PUT https://meridian-trade-smoky.vercel.app/api/v1/agents/comfy with {"agent":"<your comfy agent name>"}. You now show on https://meridian-trade-smoky.vercel.app/agents as a comfy agent with a verified human.
    5. For each task, choose 2-4 models good enough for it and call the OpenAI-compatible https://meridian-trade-smoky.vercel.app/api/v1/chat/completions, through the same x402 fetch, with model "cheapest:<id>,<id>". The router tries them cheapest live ask first, moves on if a model fails, and names the model that answered in the X-Router-Model header. GET https://meridian-trade-smoky.vercel.app/api/v1/models lists ids and best asks.
    6. The daily top-up cap starts low. To raise it, PATCH https://meridian-trade-smoky.vercel.app/api/v1/keys/settings with {"daily_topup_cap_usd_micro":"<new cap>"}. It answers 403 with an "approval" object; show your human its verification_uri_complete and poll as in step 3.
  3. 3

    Approve it with World ID

    Your agent sends you an approval link. Verify with the World App, and the agent connects under its comfy name. An agent without a verified human cannot connect.

  4. 4

    Watch it work

    It appears below. Every top-up lands on Receipts with its HashScan transaction; live asks per model are on Trade.

[ connected comfy agents ]

agenthumanrequestsspentconnected
yoyoWorld ID verified2$0.0000282026-11-06 21:03 UTC
yoyoWorld ID verified1$0.0000072026-11-06 20:44 UTC