Docs

Practice first. Then call action.

Stuntman gives your agent a practice wallet on Robinhood Chain. This page covers setup, connecting an agent, reading takes and going live.

Start

You need Node.js 20 or newer. Nothing else to install: npx fetches Stuntman when you run it.

npx stuntman init --new --eth 1

That creates a practice account with 1 practice ETH, checks what your RPC node supports, and prints the line to connect your agent. Settings and takes are kept in ~/.stuntman on your machine.

To practise as your own wallet instead, see two ways to practise.

Connect an agent

Pick the one that matches how your agent sends transactions today.

As a wallet tool (MCP)

For agents that use a wallet through MCP. Stuntman replaces that wallet while you practise.

# Claude Code
claude mcp add stuntman -- npx -y stuntman mcp

# Codex
codex mcp add stuntman -- npx -y stuntman mcp

For any other MCP client, add this to its server list:

{
  "mcpServers": {
    "stuntman": { "command": "npx", "args": ["-y", "stuntman", "mcp"] }
  }
}

The agent gets these tools:

ToolWhat it does
wallet_addressThe address the agent is practising as, and the chain.
send_transactionSends what an app returned (to, data, value). Leave out to to deploy a contract. Comes back with the take.
get_balancesPractice balances for ETH and every token touched.
list_takes, get_takeRecent takes, or one take in full.
fund_practiceAdds practice ETH or tokens.
practice_statusThe go-live checklist.
reset_practiceClears practice balances and takes, only when confirmed.
sign_message, sign_typed_dataOnly with a practice key, for Permit2 permits and logins.

As an RPC

For agents that sign and send their own transactions with viem, ethers, web3.py or Foundry.

npx stuntman rpc

Then set the agent's RPC address to http://127.0.0.1:8545 (change it with --port). Reads go to Robinhood Chain with practice balances on top, so quotes and balance checks see practice money. Sends are caught and become takes, contract deployments included. Signing methods, and every other way of sending, are refused. The practice RPC only answers requests from your own machine.

Raxol agents

Raxol agents settle trades as Xochi intents: quote, sign, execute, then poll. stuntman rpc also serves a Xochi practice gateway, so a Raxol agent practises with two settings and no code changes.

npx stuntman rpc
npx stuntman connect raxol   # prints these

RPC_ROBINHOOD=http://127.0.0.1:8545
ORDER_XOCHI_URL=http://127.0.0.1:8545/xochi

In code, pass %{base_url: "http://127.0.0.1:8545/xochi", auth: ...} as the Xochi config.

  • Quotes are real. They go to the Xochi API with the agent's own member token or mandate, so prices, fees and routes are what Xochi would really offer.
  • Executes stay on your machine. Stuntman checks the signed intent the way a solver would: the wallet in the quote, the deadline, the balance, and whether Permit2 can pull the input. A good intent fills at the quoted amounts on the practice ledger. A bad one is refused with the reason, and the quote stays open so the agent can fix it and try again.
  • Polling works. Status reads answer from the practice record, so the agent's poll loop ends the way it would live.
  • Everything else that writes is refused, such as stealth claims and relays.

Set STUNTMAN_XOCHI_URL to quote from another Xochi endpoint.

Two ways to practise

init --address <wallet>init --new
Practises asYour real wallet, watch onlyA new key that holds no real funds
Starts withYour real balancesNothing until you add practice funds
SigningYour agent signs with its own key. Stuntman never forwards anything.Stuntman can sign messages and Permit2 permits with the practice key.

Practising as your wallet is the closest rehearsal: the agent sees the balances it will really have. Nothing can leave the wallet, because Stuntman never sends a transaction anywhere.

Practice funds

npx stuntman fund ETH 2
npx stuntman fund 0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168 500   # USDG
npx stuntman balances

Amounts are in whole units. Practice balances are shown to every app the agent reads from. Stuntman finds where each token keeps its balances and confirms it with a test read before it uses it, so a token it cannot map is reported instead of guessed.

Takes

Every send becomes a take. A take is either filled, meaning the chain would have accepted it, or a bad take with the reason.

$ npx stuntman takes
   3  bad     Reverted: Too little received  (2026-12-04 15:12)
   2  filled  Swapped 0.05 ETH for 78.104761 USDG  (2026-12-04 15:10)
   1  filled  Sent 0.25 ETH  (2026-12-04 15:02)

npx stuntman take 2 shows one take in full: balance changes, approvals, gas, the block it ran on and the practice hash. Add --json to either command for machine-readable output.

Stuntman behaves like a node where it matters. A send the account cannot pay for is refused with the node's own error. A reverted send still costs gas. The nonce moves with every accepted take, so agents that track nonces keep working.

Going live

npx stuntman status shows the checklist:

  • At least ten takes.
  • No bad takes in the last ten.
  • No unlimited approvals in the last ten.

When it passes, swap the Stuntman wallet tool or RPC address back for your real one. That is the only change. From then on your agent does its own stunts.

Commands

stuntman init --address <wallet> | --new  [--rpc <url>] [--eth <amount>]
stuntman mcp                       # MCP server over stdio
stuntman rpc [--port 8545]         # practice RPC
stuntman connect [claude|codex|json|raxol]
stuntman takes [--limit 20] [--json]
stuntman take <id> [--json]
stuntman balances [token ...]
stuntman fund ETH <amount>
stuntman fund <token> <amount>
stuntman status
stuntman reset --yes
stuntman doctor                    # what your RPC node supports
SettingWhat it does
STUNTMAN_HOMEWhere settings and takes live. Default ~/.stuntman.
STUNTMAN_RPC_URLThe node to read from. Default is the public Robinhood Chain RPC.
STUNTMAN_PORTPort for stuntman rpc. Default 8545.
STUNTMAN_XOCHI_URLWhere Xochi quotes come from. Default https://api.xochi.fi.

Deploying contracts

An agent can deploy a contract in practice like any other send: no to, init code as data. Stuntman simulates the deployment on the latest block at the address a real one would get, using the agent's practice nonce, and the receipt carries that address.

From then on the contract lives in the practice ledger. Its code and storage are laid over the chain, so calls, quotes and reads through Stuntman see it, and every later call keeps its storage up to date. A token that mints to the agent shows up in stuntman balances. The real chain never sees it.

Simulation

Stuntman uses the best method your node supports and names it on every take.

  1. eth_simulateV1. Balances, allowances and Permit2 allowances are read before and after the send inside the same simulated block. The public Robinhood Chain RPC supports this.
  2. debug_traceCall. Changes come from the call trace and its events.
  3. Compatibility. A small contract stands in at the agent's address for a single call, then reads balances back. Works on any node that supports state overrides.

Every take runs on the latest block, so prices, liquidity and gas are whatever the chain says right now.

Your RPC node

The public Robinhood Chain RPC is rate limited and meant for light use. Stuntman retries politely when it is busy, but for an agent that trades often, use your own endpoint from a provider:

STUNTMAN_RPC_URL=https://your-endpoint npx stuntman doctor

doctor shows which simulation method that node supports.

Limits in 0.1

  • Deploying a contract needs a node with eth_simulateV1. The public Robinhood Chain RPC has it.
  • Storage of a contract deployed in practice is read back for common layouts: plain variables and strings, mappings keyed by addresses the agent has used, OpenZeppelin namespaced storage and proxy slots. A value kept anywhere else is lost after the take that wrote it.
  • Xochi intents fill at the quoted amount. Output that lands on another chain, or at a stealth or shielded address, is not credited to practice balances.
  • With debug_traceCall, allowances used up without an Approval event are not tracked.
  • In compatibility mode, balances are tracked for tokens the send names, tokens already in practice, and the two tokens of any pool it calls. Apps that refuse calls from contracts can behave differently.
  • Other apps that hold their own keys and sign for the agent need an adapter of their own. More arrive in 0.4.

Roadmap

  • 0.1, out now. Practice wallet and RPC, takes, practice ledger, contract deployments, Raxol and Xochi intents, go-live checklist.
  • 0.2. Shareable take reports and agent scorecards.
  • 0.3. Replay: run a strategy back through days that already happened.
  • 0.4. More adapters: agent wallets and settlement networks beyond Xochi.
  • 0.5. Limits: spend, slippage and approval caps, enforced in practice before they are enforced live.
  • 0.6. Hosted runs with a dashboard.
  • 0.7. Graduation: a signed record that an agent passed its takes.

Questions

Can Stuntman spend my money?

No. It never broadcasts a transaction and never asks for a key to your real wallet. In watch-only mode it only knows your address.

Does my agent need changes?

No. It points at a different wallet tool or RPC address while it practises.

Is anything sent to Stuntman's servers?

There are none. The tool runs on your machine and talks only to the RPC node you choose. See the privacy notice.

Where do I report a problem?

Open an issue on GitHub.