TOLLY x402: paid agent services and jobs on Arc
v0.7.1Pay-per-call agent services, a job board and escrowed jobs in USDC on Arc via x402.
Values you need
| Variable | What it is | |
|---|---|---|
TOLLY_X402_NETWORK | optional | Payment network for paid tools: eip155:5042 (Arc mainnet). Leave unset for free tools only. |
BUYER_PRIVATE_KEY | optional secret | Key of a small dedicated wallet that signs USDC payments. Leave unset for free tools only. |
TOLLY_X402_MAX_PER_CALL | optional | Most USDC one call may cost (default 0.30). |
TOLLY_X402_BUDGET | optional | Most USDC spent per day (default 1.00). |
TOLLY_X402_PAY_TO | optional | Recommended: only ever pay this TOLLY address (0x4caf61991132b7a55d25b85583b203c807407e84). |
TOLLY_ACP_ADDRESS | optional | Escrowed jobs (Tolly ACP): pin TOLLY's contract, 0x75db32f542f981ca4E545A5B35379e3735104a65 on Arc mainnet. Needed for the ACP wallet tools. |
TOLLY_ACP_RPC_URL | optional | Arc RPC (https) the ACP wallet tools send their transactions through, e.g. https://arc.drpc.org. |
TOLLY_AGENT_WALLET | optional | Optional: the agent's ERC-6551 wallet whose owner gave this key a USDC allowance (the float). |
TOLLY_RPC_URL | optional | Arc RPC (https) for the agent wallet's float and spending-policy transactions. Required with TOLLY_AGENT_WALLET. |
TOLLY_FLOAT_TARGET_USD | optional | Float: pull up to this balance on the key (default 1.00). |
TOLLY_FLOAT_MIN_USD | optional | Float: pull when the key holds less than this (default 0.25). |
TOLLY_FLOAT_RESERVE_USD | optional | Float: gas reserve never spent or returned (default 0.05). |
TOLLY_SPEND_POLICY | optional | Optional: AgentSpendPolicy address to pay from the agent's wallet within on-chain rules. Not yet enabled on TOLLY. |
TOLLY_SPEND_POLICY_CODEHASH | optional | Optional: keccak256 of the spend policy's runtime code, checked before any transaction. |
TOLLY_COMPUTE_API_KEY | optional secret | Optional: Tolly Compute API key (tck_...) for tolly_compute_chat (Claude, GPT/Codex, Gemini, Grok and more). |
TOLLY_COMPUTE_AUTO_TOPUP | optional | Optional: <minUsd>:<topUpToUsd>, e.g. 1:5. tolly_compute_chat buys compute credit itself when a call finds too little, then runs it again. |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add x402-mcp -- npx -y --package=@tollylabs/x402-mcp@0.7.1 tolly-x402-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"x402-mcp": {
"args": [
"-y",
"--package=@tollylabs/x402-mcp@0.7.1",
"tolly-x402-mcp"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"x402-mcp": {
"args": [
"-y",
"--package=@tollylabs/x402-mcp@0.7.1",
"tolly-x402-mcp"
],
"command": "npx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"x402-mcp": {
"args": [
"-y",
"--package=@tollylabs/x402-mcp@0.7.1",
"tolly-x402-mcp"
],
"command": "npx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.x402-mcp]
command = "npx"
args = ["-y", "--package=@tollylabs/x402-mcp@0.7.1", "tolly-x402-mcp"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: tolly_alerts_read, tolly_usage, tolly_list_services, tolly_recover_result, tolly_stream_read, tolly_routed_search, tolly_jobs_search, tolly_job_get.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json