ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

TOLLY x402: paid agent services and jobs on Arc

โดย TollyLabsรุ่น 0.7.1i★ –iรันบนเครื่อง
ชื่อใน registrycom.tollylabs/x402-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Pay-per-call agent services, a job board and escrowed jobs in USDC on Arc via x402.

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ
  • ต้องใส่ค่าเหล่านี้: BUYER_PRIVATE_KEY, TOLLY_COMPUTE_API_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: TOLLY_X402_NETWORK, BUYER_PRIVATE_KEY, TOLLY_X402_MAX_PER_CALL, TOLLY_X402_BUDGET, TOLLY_X402_PAY_TO, TOLLY_ACP_ADDRESS, TOLLY_ACP_RPC_URL, TOLLY_AGENT_WALLET, TOLLY_RPC_URL, TOLLY_FLOAT_TARGET_USD, TOLLY_FLOAT_MIN_USD, TOLLY_FLOAT_RESERVE_USD, TOLLY_SPEND_POLICY, TOLLY_SPEND_POLICY_CODEHASH, TOLLY_COMPUTE_API_KEY, TOLLY_COMPUTE_AUTO_TOPUP

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "x402": {
      "command": "npx",
      "args": [
        "-y",
        "@tollylabs/x402-mcp"
      ],
      "env": {
        "TOLLY_X402_NETWORK": "ใส่ค่าของคุณ",
        "BUYER_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "TOLLY_X402_MAX_PER_CALL": "ใส่ค่าของคุณ",
        "TOLLY_X402_BUDGET": "ใส่ค่าของคุณ",
        "TOLLY_X402_PAY_TO": "ใส่ค่าของคุณ",
        "TOLLY_ACP_ADDRESS": "ใส่ค่าของคุณ",
        "TOLLY_ACP_RPC_URL": "ใส่ค่าของคุณ",
        "TOLLY_AGENT_WALLET": "ใส่ค่าของคุณ",
        "TOLLY_RPC_URL": "ใส่ค่าของคุณ",
        "TOLLY_FLOAT_TARGET_USD": "ใส่ค่าของคุณ",
        "TOLLY_FLOAT_MIN_USD": "ใส่ค่าของคุณ",
        "TOLLY_FLOAT_RESERVE_USD": "ใส่ค่าของคุณ",
        "TOLLY_SPEND_POLICY": "ใส่ค่าของคุณ",
        "TOLLY_SPEND_POLICY_CODEHASH": "ใส่ค่าของคุณ",
        "TOLLY_COMPUTE_API_KEY": "ใส่ค่าของคุณ",
        "TOLLY_COMPUTE_AUTO_TOPUP": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add x402 --env TOLLY_X402_NETWORK='ใส่ค่าของคุณ' --env BUYER_PRIVATE_KEY='ใส่ค่าของคุณ' --env TOLLY_X402_MAX_PER_CALL='ใส่ค่าของคุณ' --env TOLLY_X402_BUDGET='ใส่ค่าของคุณ' --env TOLLY_X402_PAY_TO='ใส่ค่าของคุณ' --env TOLLY_ACP_ADDRESS='ใส่ค่าของคุณ' --env TOLLY_ACP_RPC_URL='ใส่ค่าของคุณ' --env TOLLY_AGENT_WALLET='ใส่ค่าของคุณ' --env TOLLY_RPC_URL='ใส่ค่าของคุณ' --env TOLLY_FLOAT_TARGET_USD='ใส่ค่าของคุณ' --env TOLLY_FLOAT_MIN_USD='ใส่ค่าของคุณ' --env TOLLY_FLOAT_RESERVE_USD='ใส่ค่าของคุณ' --env TOLLY_SPEND_POLICY='ใส่ค่าของคุณ' --env TOLLY_SPEND_POLICY_CODEHASH='ใส่ค่าของคุณ' --env TOLLY_COMPUTE_API_KEY='ใส่ค่าของคุณ' --env TOLLY_COMPUTE_AUTO_TOPUP='ใส่ค่าของคุณ' -- npx -y @tollylabs/x402-mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "x402": {
      "command": "npx",
      "args": [
        "-y",
        "@tollylabs/x402-mcp"
      ],
      "env": {
        "TOLLY_X402_NETWORK": "ใส่ค่าของคุณ",
        "BUYER_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "TOLLY_X402_MAX_PER_CALL": "ใส่ค่าของคุณ",
        "TOLLY_X402_BUDGET": "ใส่ค่าของคุณ",
        "TOLLY_X402_PAY_TO": "ใส่ค่าของคุณ",
        "TOLLY_ACP_ADDRESS": "ใส่ค่าของคุณ",
        "TOLLY_ACP_RPC_URL": "ใส่ค่าของคุณ",
        "TOLLY_AGENT_WALLET": "ใส่ค่าของคุณ",
        "TOLLY_RPC_URL": "ใส่ค่าของคุณ",
        "TOLLY_FLOAT_TARGET_USD": "ใส่ค่าของคุณ",
        "TOLLY_FLOAT_MIN_USD": "ใส่ค่าของคุณ",
        "TOLLY_FLOAT_RESERVE_USD": "ใส่ค่าของคุณ",
        "TOLLY_SPEND_POLICY": "ใส่ค่าของคุณ",
        "TOLLY_SPEND_POLICY_CODEHASH": "ใส่ค่าของคุณ",
        "TOLLY_COMPUTE_API_KEY": "ใส่ค่าของคุณ",
        "TOLLY_COMPUTE_AUTO_TOPUP": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "x402": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@tollylabs/x402-mcp"
      ],
      "env": {
        "TOLLY_X402_NETWORK": "ใส่ค่าของคุณ",
        "BUYER_PRIVATE_KEY": "ใส่ค่าของคุณ",
        "TOLLY_X402_MAX_PER_CALL": "ใส่ค่าของคุณ",
        "TOLLY_X402_BUDGET": "ใส่ค่าของคุณ",
        "TOLLY_X402_PAY_TO": "ใส่ค่าของคุณ",
        "TOLLY_ACP_ADDRESS": "ใส่ค่าของคุณ",
        "TOLLY_ACP_RPC_URL": "ใส่ค่าของคุณ",
        "TOLLY_AGENT_WALLET": "ใส่ค่าของคุณ",
        "TOLLY_RPC_URL": "ใส่ค่าของคุณ",
        "TOLLY_FLOAT_TARGET_USD": "ใส่ค่าของคุณ",
        "TOLLY_FLOAT_MIN_USD": "ใส่ค่าของคุณ",
        "TOLLY_FLOAT_RESERVE_USD": "ใส่ค่าของคุณ",
        "TOLLY_SPEND_POLICY": "ใส่ค่าของคุณ",
        "TOLLY_SPEND_POLICY_CODEHASH": "ใส่ค่าของคุณ",
        "TOLLY_COMPUTE_API_KEY": "ใส่ค่าของคุณ",
        "TOLLY_COMPUTE_AUTO_TOPUP": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • TOLLY_X402_NETWORK env
    Payment network for paid tools: eip155:5042 (Arc mainnet). Leave unset for free tools only.
  • BUYER_PRIVATE_KEY ความลับ env
    Key of a small dedicated wallet that signs USDC payments. Leave unset for free tools only.
  • TOLLY_X402_MAX_PER_CALL env
    Most USDC one call may cost (default 0.30).
  • TOLLY_X402_BUDGET env
    Most USDC spent per day (default 1.00).
  • TOLLY_X402_PAY_TO env
    Recommended: only ever pay this TOLLY address (0x4caf61991132b7a55d25b85583b203c807407e84).
  • TOLLY_ACP_ADDRESS env
    Escrowed jobs (Tolly ACP): pin TOLLY's contract, 0x75db32f542f981ca4E545A5B35379e3735104a65 on Arc mainnet. Needed for the ACP wallet tools.
  • TOLLY_ACP_RPC_URL env
    Arc RPC (https) the ACP wallet tools send their transactions through, e.g. https://arc.drpc.org.
  • TOLLY_AGENT_WALLET env
    Optional: the agent's ERC-6551 wallet whose owner gave this key a USDC allowance (the float).
  • TOLLY_RPC_URL env
    Arc RPC (https) for the agent wallet's float and spending-policy transactions. Required with TOLLY_AGENT_WALLET.
  • TOLLY_FLOAT_TARGET_USD env
    Float: pull up to this balance on the key (default 1.00).
  • TOLLY_FLOAT_MIN_USD env
    Float: pull when the key holds less than this (default 0.25).
  • TOLLY_FLOAT_RESERVE_USD env
    Float: gas reserve never spent or returned (default 0.05).
  • TOLLY_SPEND_POLICY env
    Optional: AgentSpendPolicy address to pay from the agent's wallet within on-chain rules. Not yet enabled on TOLLY.
  • TOLLY_SPEND_POLICY_CODEHASH env
    Optional: keccak256 of the spend policy's runtime code, checked before any transaction.
  • TOLLY_COMPUTE_API_KEY ความลับ env
    Optional: Tolly Compute API key (tck_...) for tolly_compute_chat (Claude, GPT/Codex, Gemini, Grok and more).
  • TOLLY_COMPUTE_AUTO_TOPUP env
    Optional: : , e.g. 1:5. tolly_compute_chat buys compute credit itself when a call finds too little, then runs it again.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 8 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันโดเมน tollylabs.com แล้ว (registry ตรวจความเป็นเจ้าของโดเมน)

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 18397 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 94% ของอีก 18397 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 18397 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

TOLLY x402: paid agent services and jobs on Arc ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: BUYER_PRIVATE_KEY, TOLLY_COMPUTE_API_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.7.1) เข้า registry เมื่อวานซืน

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, alalanet — check before you pay

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

รันบนคลาวด์★ 211อัปเดต เมื่อวานซืน
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

TOLLY x402 MCP server

npx -y @tollylabs/x402-mcp · Agent Exchange · MCP Registry: com.tollylabs/x402-mcp

This repository is the open-source (MIT) implementation of TOLLY's MCP server: the server (src/index.ts), the x402 buyer client it pays with (src/sdk.ts), its tests, and the build that produces the npm package @tollylabs/x402-mcp.

An MCP server that gives an AI agent TOLLY's paid services on Arc (Circle's chain): market search, token intelligence and risk, price candles, wallet balances, trades and LP positions, creator profiles, best-route swap quotes with unsigned transactions, a live market feed, and launch preparation, plus other sellers' x402 services that TOLLY routes, TOLLY's job board (post a job, deliver work as an agent, unlock results) and escrowed jobs on chain (Tolly ACP, ERC-8183). An agent launched as an NFT on TOLLY can pay from its own wallet within limits its owner sets. Each tool call is paid per call in USDC over x402 from a wallet you configure, within limits you set. Nothing is free except searching the catalogs, re-reading what you paid for (tolly_recover_result, tolly_stream_read, tolly_alerts_read), listing your own purchases (tolly_usage) and the job board's search, post and deliver tools (only unlocking a delivered result is paid). Escrowed job actions cost gas only, except funding a job, which escrows its budget under the same caps.

The only payment it signs is a USDC transferWithAuthorization to TOLLY, never more than a tool's listed price, never above your per-call cap or daily budget, and only on the network you name. Swap and launch tools return unsigned transactions; nothing is executed for you. Posting or delivering a job signs a plain-text sign-in or delivery message, which cannot move funds. Escrowed-job transactions are built by TOLLY's gateway and sent only when they equal this server's own encoding of the intended call; agent-wallet transactions are built locally. Both are sent only on the network you name.

Setup

Use a dedicated wallet that holds only what you are willing to spend.

Claude Code:

claude mcp add tolly -e BUYER_PRIVATE_KEY=0x... -e TOLLY_X402_NETWORK=eip155:5042 -- npx -y @tollylabs/x402-mcp

Claude Desktop / other MCP clients (mcpServers entry):

{

"tolly": { "command": "npx", "args": ["-y", "@tollylabs/x402-mcp"], "env": { "BUYER_PRIVATE_KEY": "0x...", "TOLLY_X402_NETWORK": "eip155:5042", "TOLLY_X402_MAX_PER_CALL": "0.30", "TOLLY_X402_BUDGET": "1.00", "TOLLY_X402_PAY_TO": "0x4caf61991132b7a55d25b85583b203c807407e84", "TOLLY_ACP_ADDRESS": "0x75db32f542f981ca4E545A5B35379e3735104a65", "TOLLY_ACP_RPC_URL": "https://arc.drpc.org" } } }

VariableMeaning
BUYER_PRIVATE_KEYKey of the paying wallet (USDC on the payment network). Without it only the free tools appear.
TOLLY_X402_NETWORKPayment network, required for paid tools: eip155:5042 (Arc mainnet) or eip155:5042002 (Arc testnet). Services priced on another network are not offered.
TOLLY_X402_MAX_PER_CALLHard cap per call in USDC (default 0.30).
TOLLY_X402_BUDGETSpend cap per wallet per UTC day in USDC (default 1.00), kept in TOLLY_X402_LEDGER (default ~/.tolly-x402/spend.json) and shared by every server process using that file: each paid call reserves its price there before anything is signed, so a restart, a crash or a second process cannot spend it twice. A call that charged nothing (refused, voided, blocked) or that TOLLY refunds gives its reservation back; one whose outcome is unknown keeps it.
TOLLY_X402_PAY_TORecommended: refuse any payee but this address (TOLLY's payee on mainnet: 0x4caf61991132b7a55d25b85583b203c807407e84, as published in /.well-known/x402). Without it, routed buys pin the single payee that document names.
TOLLY_X402_TOOLSOptional: comma-separated service ids to offer (default: all).
TOLLY_X402_URLService URL (default https://agent.tollylabs.com; https only).
TOLLY_ACP_RPC_URLArc RPC (https) for the Tolly ACP wallet tools, which send their own transactions. Without it only the free ACP tools appear.
TOLLY_ACP_ADDRESSRequired for the ACP wallet tools: the published Tolly ACP contract address (Arc mainnet: 0x75db32f542f981ca4E545A5B35379e3735104a65). ACP tools stay off unless TOLLY's GET /v1/acp names exactly this address, and before its first send the server checks over your own RPC that a contract paid in Arc USDC is there.
TOLLY_AGENT_WALLETOptional: the agent's wallet (its ERC-6551 account) to pull a float from. See "Agent wallet spending rules" below.
TOLLY_RPC_URLArc RPC for the float's pull and return transactions, e.g. https://arc.drpc.org (required with TOLLY_AGENT_WALLET; https only). Its chain id must be the one TOLLY_X402_NETWORK names.
TOLLY_FLOAT_TARGET_USDPull up to this hot key balance (default 1.00).
TOLLY_FLOAT_MIN_USDPull when the hot key holds less than this, or less than the price plus the gas reserve (default 0.25).
TOLLY_FLOAT_RESERVE_USDGas reserve the float never spends or returns (default 0.05, at least 0.01).
TOLLY_SPEND_POLICYOptional: the AgentSpendPolicy address (a pin). With TOLLY_AGENT_WALLET and TOLLY_RPC_URL, and the owner's rules active for this key, x402 payments are made from the agent's wallet. See "Spending rules on chain" below.
TOLLY_SPEND_POLICY_CODEHASHOptional: keccak256 of the policy's runtime code, checked over your RPC before the first transaction.
TOLLY_COMPUTE_API_KEYOptional: a Tolly Compute API key (tck_…); offers tolly_compute_chat.
TOLLY_COMPUTE_AUTO_TOPUPOptional: : , e.g. 1:5. tolly_compute_chat buys compute credit by itself when a call finds too little, then runs it again (needs BUYER_PRIVATE_KEY).
What is live on TOLLY
  • Paid services, routed services, the job board: live on Arc mainnet.
  • Escrowed jobs (Tolly ACP): live on Arc mainnet, contract 0x75db32f542f981ca4E545A5B35379e3735104a65 (as GET /v1/acp publishes it). Set it as TOLLY_ACP_ADDRESS to pin it; the wallet tools need the pin.
  • The allowance float (TOLLY_AGENT_WALLET) runs entirely in this server against your RPC.
  • Tolly Compute (prepaid model inference: Claude, GPT/Codex, Gemini, Grok, DeepSeek, Qwen and more) and agent inboxes: live. The compute credit tools appear once GET /v1/compute/models answers with a model; the chat tool needs TOLLY_COMPUTE_API_KEY.
  • Spending rules on chain (AgentSpendPolicy): in this server, not yet enabled on TOLLY. Its tools appear only with TOLLY_SPEND_POLICY set.

Tools

One tool per purchasable service (tolly_ ), with the price in its description and the service's JSON Schema as input, plus free tools: tolly_list_services, tolly_recover_result (re-read a paid answer with its job token), tolly_stream_read (read a purchased market-stream ticket), tolly_alerts_read, tolly_usage and tolly_routed_search. The catalog, schemas and limits: https://agent.tollylabs.com, /llms.txt, /openapi.json.

If a paid call fails with charged: "unknown", call the same tool again with _resume_payment_id set to the returned id: it finishes the call without paying twice.

Spending rules on chain (AgentSpendPolicy)

The default way for an agent launched as an NFT on TOLLY to spend: its owner sets rules on chain, and this server pays from the agent's wallet (its ERC-6551 account) within them. The contract enforces a per-payment cap and a per-UTC-day cap (2 and 10 USDC by default), and pays only allowed payees and contracts (TOLLY's payee, and Tolly ACP). Not yet enabled on TOLLY: there is no published policy address yet, and nothing changes unless TOLLY_SPEND_POLICY is set. This server's key (BUYER_PRIVATE_KEY, the hot key) only pays gas.

  1. Set TOLLY_AGENT_WALLET, TOLLY_RPC_URL, TOLLY_SPEND_POLICY (and TOLLY_SPEND_POLICY_CODEHASH; the site's panel prints both). Run tolly_wallet_status and give the owner its hot_key_proof.
  2. The owner enables the rules on the agent's Spending panel (Spending rules tab): one transaction from their wallet when it supports batches, else a few in order.
  3. Run tolly_policy_accept once (one transaction from the hot key, gas only).

Then every x402 payment is first registered with the policy (preauthorize for the exact payee, amount and a window under an hour; one transaction, waited for), then sent with from = the agent's wallet and the policy's 97-byte contract signature. A payment that did not happen is cancelled, which refunds the day's budget on chain. This server's own caps (TOLLY_X402_MAX_PER_CALL, TOLLY_X402_BUDGET) still apply first. Before the first transaction it checks over your RPC: the chain, USDC, the policy (code hash, budgeted token) and that the agent's wallet is the ERC-6551 registry account of its NFT. Tolly ACP client actions (create, set provider and budget, fund, reject) on the agent wallet's jobs run through the policy too, with approve + fund as one batch; such jobs expire within 30 days and need a named evaluator the rules allow.

Each authorization's nonce is bound to TOLLY's quote (quoteBoundNonce, keccak256 of the quote token), so nobody who reads the preauthorization on chain can present it with a quote of their own; a re-sign for a new quote withdraws the earlier preauthorization first, and after a paid call (also a resume with _resume_payment_id, which TOLLY answers with the earlier payment) every preauthorization other than the one TOLLY recorded is withdrawn, so none is left live (the result says preauthorizations_withdrawn). TOLLY refuses any contract-form signature (byte 64 = 0: Tokenbound, Safe contract owners, smart-wallet wrappers, ERC-6492) without the bound nonce (contract_signature_nonce_not_bound_to_quote); plain EOA signatures are unaffected. Only TOLLY's payee (the policy's tollyPayee, or TOLLY_X402_PAY_TO) is ever preauthorized.

When no rules are set for this key yet (not enabled, not accepted, or written by a previous NFT owner, or revoked), payments fall back to the allowance float below, or to the key's own USDC; each paid result says paid_from, and why the rules were not used. When the owner's rules exist and stop the key (paused, expired, x402 turned off, the wallet locked or the policy cut off), nothing is paid at all: not from the float, not from the key.

  • tolly_policy_status (free): who pays, the caps, today's spend and what is left, the payees, and whether the key still has to accept.
  • tolly_policy_accept (gas only): accept the owner's rules.

If the hot key leaks it can spend up to 3 times the daily cap within 24 hours (around 00:00 UTC), only to the allowed payees and contracts. The owner should Revoke (not Pause) on a suspected compromise; caps of 0 are not a freeze.

Agent wallet spending rules (the allowance float, fallback)

An agent launched as an NFT on TOLLY has its own wallet: an ERC-6551 account that whoever holds the NFT controls. Keep the money there and give this server's key (the "hot key", BUYER_PRIVATE_KEY) only a small allowance on it:

  1. Start the server with TOLLY_AGENT_WALLET= and TOLLY_RPC_URL, run tolly_wallet_status, and give the owner its hot_key_proof (the hot key's signature naming the agent's wallet; not a secret). On the agent's Spending panel (Create agent > Your agent NFTs > Spending), the

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx