Agents and the MCP server
An AI agent uses Orle Agent through its MCP server: on the agent's own machine, where its seed and every one-time key stay, or in Claude through Orle Agent's connector, with an agent key whose limits the vault's owner sets. The server checks each operation before a key signs it, and the relayer lets the agent pay gas in USDG.
10.1How an agent uses Orle Agent#
The Orle Agent MCP server speaks the Model Context Protocol over stdio, so any MCP client can run it: an agent framework, a desktop assistant, a script. On first use it creates a 32-byte master seed in the agent's own directory; every vault key, leaf key and approval key derives from it keys.ts:1-12. The server reads the chain, simulates, signs locally and sends transactions through the relayer.
On start it checks that its RPC serves Robinhood Chain (4663) and refuses any other chain agent.ts:441. Its logs go to stderr as JSON lines and never carry the RPC URL, which may hold an API key server.ts:28-33.
10.2Running the server#
The server is published on npm as the Orle Agent MCP server. It needs Node.js 22 or later and no configuration: the package carries the deployment records of Orle Agent and Orle Agent Swap on Robinhood Chain mainnet and the addresses of Orle Agent's relayer, keeper, aggregator and AI gateway packaged.ts:1-28. An MCP client starts it with npx, which fetches it on first use. In Claude Code:
See the Orle Core MCP setup for installation and operator settings.
In Claude Desktop, Cursor and other MCP clients, in the client's configuration:
See the Orle Core MCP setup for installation and operator settings.
Then the agent calls open_vault, which returns its vault's address; USDG sent there on Robinhood Chain is its balance (getting started goes through it step by step). Every setting is optional:
| Variable | Default | Meaning |
|---|---|---|
ORLE_HOME | ~/.orle-agent | The agent’s directory, mode 0700: the seed, the gas key and every record. |
ORLE_RPC_URL | The public RPC | Robinhood Chain RPC. The public one is rate limited. |
ORLE_RPC_URL_FILE | None | A 0600 file holding the RPC URL, when it carries an API key. Never printed. |
the protocol constant | Orle Agent’s relayer | Sends every transaction, paid in USDG, so the agent needs no ETH. With off, the fee payer key pays gas in ETH. |
the protocol constant | Orle Agent’s keeper | Claims payments for the seller side. With off, accept_payments refuses. |
the protocol constant | Orle Agent’s aggregator | The shielded pool’s batches, only for deposits made before 0.1.6. With off, they stop. |
the protocol constant | Orle Agent AI | The gateway of the ai tools. With off, they refuse. |
ORLE_SWAP_DEPLOYMENT | Mainnet | Path of another Orle Agent Swap deployment record. Without one beside another ORLE_DEPLOYMENT, the Orle Agent Swap and private tools refuse. |
the protocol constant | The public RPC | RPC for Orle Agent Swap’s event searches, which need wide block ranges. Never printed. |
the protocol constant | The WebAssembly prover in the package | A native orle-prove binary to make the private pool’s proofs instead, or off. |
ORLE_DEPLOYMENT | Mainnet | Path of another deployment record. With it, the four services default to off. |
the protocol constant | None | A version 5 vault another seed owns: the server runs as its agent, signs only with the agent key the owner installs, and never holds the owner’s seed (below). |
The configuration is read once at start config.ts:1-92. On a local fork of mainnet, set the four services to off: they act on mainnet. The package is the repository's mcp/ folder with the core and the SDK, bundled into one JavaScript file with its dependencies pinned pack.ts:1-15.
10.3In Claude: the connector#
The same server reaches Claude on the web, the desktop app and the phone through Orle Agent's gateway at https://Orle Agent, added as a custom connector with nothing installed; Orle Agent in Claude goes through it step by step. The gateway speaks MCP over Streamable HTTP with OAuth sign-in, and runs one server for each connected vault, in a sandbox of its own, as that vault's agent: with a seed of its own, kept by the gateway, never the owner's. That server signs only with the agent key the owner installs on the web app's connect page, so every spend it makes is held on chain to the owner's policy remote.ts:2-83.
- The owner's three tools,
policy_set,allow_setandagent_key_revoke, answer with a link: the owner opens it in the browser that keeps the vault and approves or declines remote-auth.ts:64-66. agent_key_requestandagent_key_setare left out: an agent key is handed out and installed only by connecting.- Every chat and app of one Claude account shares its vault's server, each answered on its own.
- For now the connector is for Claude; any other MCP client runs the server on its own machine, as above.
10.4An agent key for a vault#
Since version 5 of the vault, its owner can give an agent a key of its own instead of the seed. A second server, started with the protocol constant set to the vault and a seed of its own, asks for one with agent_key_request; the owner installs it with agent_key_set for 1 to 90 days. Every spend the agent key signs is checked on chain against the vault's policy Vault.sol:169-181 VaultModuleV5.sol:155-198:
| Part | Rule |
|---|---|
| Actions | Only the actions the policy lists. Without a policy the agent key can do nothing, and the vault behaves as on version 4 |
| Per spend | The most one spend may move, in the vault’s token (USDG for the USDG vault) |
| Per day | A budget that refills gradually over 24 hours, as the withdrawal lock’s daily limit does |
| Allowlists | Recipients, payment channels, pools, Morpho vaults, Priors sponsors and borrowers: the agent key reaches only what the owner allowed, and cannot add to it |
| Changes | A tighter setting is in force at once; a looser one, a new allowlist entry and installing an agent key wait the withdrawal lock’s delay when the vault has a lock |
| Stopping | agent_key_revoke ends the key at once, and the standing orders it set; installing another key ends the one before |
v5_status shows the key, the policy, what is left of the budget and the allowlists. Changes follow one rule for every setting VaultV5.sol:12-15. Version 5 also adds standing orders (order_set, order_cancel): pay an allowlisted recipient, sweep into a venue above a threshold, refill from one below it. They run from the vault's own server when due; while it is offline, Orle Agent's keeper runs an order 30 minutes after it is due when it moves at least 5 USDG, at most 4 runs a vault a day. And Priors credit (priors_borrow, priors_repay, priors_consent, priors_leave, priors_root): USDG borrowed for the vault's ERC-8004 agent within the policy, repaid from the vault before it is due.
10.5The tools#
The 98 tools of version 0.1.22, by group. Amounts are decimal strings: USDG with at most 6 decimals, launched tokens, stock tokens, Orle token and ETH with at most 18, any other token with at most its own tools.ts:1-7.
| Group | Tools |
|---|---|
| Vault | open_vault, balance (with the agent’s WETH, Orle token and stock token vaults, and those of the tokens its kept Orle Agent Swap orders named, that hold some), withdraw |
| Payments | pay, open_channel, list_channels, close_channel, accept_payments, seller_balance, seller_withdraw |
| Payment wallet | payment_wallet_setup, payment_wallet_status, payment_wallet_withdraw, autonomo_catalog: x402 exact offers paid from a small wallet of the seed, at most 5 USDG, topped up from the vault |
| Orle Agent AI | ai, ai job, ai credit |
| Raeto | raeto: AI models paid in credits of the vault’s own Raeto account |
| Pad | pad_publish, pad_search, pad_order, pad_jobs, pad_deliver, pad_evaluate, pad_earnings |
| Orle Agent Swap | swap quote, swap, swap split, swap orders (any ERC-20 with a Uniswap pool against USDG or WETH, a token outside the listed ones bought only after the token check; a quote and a swap carry the token’s builder status from HEY Research Lab) |
| Privacy | private_shield, private_balance, private_swap, private_unshield, private_withdraw, private_recover, auto_shield |
| Borro (vault version 3) | borro_markets, borro_position, borro_lend, borro_withdraw, borro_collateral, borro_borrow, borro_repay |
| Withdrawal lock (vault version 3) | vault_lock (with the hashes a vault approves for EIP-1271), vault_link, vault_revoke_hash (withdraws an approval; no tool approves a hash it is given), guard_vault |
| Strategies and trading | strategy_plan, strategy_apply, strategy_check, strategy_report, strategy_refill, trading, breaker |
| Venues (vault version 4) | venues, venue_set, venue_enter, venue_exit, venue_forward, venue_trip |
| Agent key and policy (vault version 5) | v5_status, policy_set, allow_set, agent_key_request, agent_key_set, agent_key_revoke |
| Standing orders (vault version 5) | order_set, order_cancel |
| Priors credit (vault version 5) | priors_borrow, priors_repay, priors_consent, priors_leave, priors_root |
| Launched tokens | sell, token_vault, transfer_token, claim_dividends |
| Creator vault | fund_creator_vault, creator_withdraw, release_creator_payout |
| Airdrops and vesting | airdrop_claim, airdrop_close, vesting_info, vesting_release, vesting_claim_dividends |
| Recovery | recovery_status, set_guardian, set_recovery_policy, cancel_recovery, support_recovery, request_recovery |
| Identity | profile, publish_profile, upload_image (files of Pad orders and deliveries) |
| Orle Agent Tide | tide: link, points, dashboard |
| Reputation proofs | reputation_snapshot, reputation_prove, reputation_verify |
Orle Agent Tide#
Orle Agent Tide shares a pot of Orle token each week among the agents registered in ERC-8004 through an vault. The points come from Orle Agent Swap fees, Raeto credits and balances, counted across every vault of the agent once it has linked them. tide with action link does that: each of its other vaults approves a hash that holds a secret derived from the seed, which only Orle Agent can match to the agent, and the vault holding its identity approves the set, one relayer spend per vault. A WETH, Orle token or stock token vault that holds its token but was never created (the tokens were sent to its address) is created first, one more transaction, so what it holds counts; an empty one is left out. The approvals themselves add no tie between the vaults; a vault's own swaps already name the vault they pay. points shows the agent its own points by source, and dashboard gives a link to its page on Orle Agent with the key in the link's fragment. No list of everyone's points is published. How a week is scored TIDE.md.
Reputation proofs#
An agent that works on Pad can prove that the Pad record of one vault meets a verifier's thresholds without saying which vault it is. The record is read from Pad itself, so there is no issuer, and the vault approves each snapshot of it with an EIP-1271 hash approval, so no vault upgrade is needed. Reputation has no owner and no upgrade Reputation.sol:42-73.
- Snapshot. Time runs in weekly epochs.
reputation_snapshotcopies the USDG vault's record into this epoch's tree in Reputation, once per epoch: completed jobs, distinct paying clients, USDG paid for completed jobs, rejected and expired jobs, and the limit tier. The relayer sends the approval and the snapshot in one transaction, paid in USDG. - Prove.
reputation_provemakes a post-quantum STARK proof that a leaf of this epoch's tree holds a record meeting the thresholds and belongs to the agent's reputation secret, bound to the verifier's scope, recipient and fresh challenge. Nothing about the agent's vault is read while it proves, and the proof holds until the epoch ends. - Verify.
reputation_verifychecks a proof with an eth_call to Reputation.verify, which costs nothing, and says how many vaults the tree held and how many of them meet the statement.
| Part | Rule |
|---|---|
| Proven | The record meets every threshold the verifier asks: at least so many completed jobs, distinct clients and USDG earned, a rate of rejected and expired jobs below a limit, a tier, and a record at least 30 days old by default (the vault’s first snapshot that long ago). |
| Hidden | Which of the tree’s vaults made the proof, and so which of the records it holds is the prover’s. The pseudonym is one per vault and scope, so proofs under different scopes cannot be linked to each other. |
| Not hidden | Every snapshot is public: its transaction names the vault and the record it wrote. Anyone can count the vaults of a tree that meet a statement, so a statement few vaults meet says more about who made it. |
| Anonymity set | No proof when fewer than 5 vaults of the tree meet the statement, together with the statements proven before under the same scope (k = 5), and none until 4 other vaults have snapshotted after the agent’s own. |
| Pad listings | A listing may carry a proof made for it, in the one scope of the epoch. Orle Agent’s index verifies it on chain and shows its statements only while that record backs no other listing in the epoch: at most one listing per record and epoch. Such a proof is not anonymous: the listing names its provider vault. |
| Reputation secret | Drawn once and kept in ORLE_HOME, never a private note’s secret. A new one can be scheduled at most once every 4 epochs and takes effect from the next epoch. |
| Gas | A snapshot about 2.6 million gas, 3.3 million with its approval in the same transaction, paid in USDG through the relayer. Verifying is an eth_call; as a transaction it takes about 11 million gas for a proof of about 82 KB. |
How the agent snapshots and proves reputation.ts:1-42, and a listing's proof pad-reputation.ts:1-22. Both contracts are verified on Sourcify; their addresses are on the contracts page.
Builder status from HEY Research Lab#
Since version 0.1.19, swap quote, swap, and trading buy and status with a token answer with builder: what HEY Research Lab, the public record of building on Robinhood Chain, holds on the project behind the token. It gives HEY's own status words, its count of meaningful ships in 30 days (null when HEY did not measure it), the latest ship with its evidence, and the link to the project's page on HEY. It is builder evidence, never a rating or a trading signal, and it never holds up a swap: the server asks for it when the call starts and answers unavailable when HEY does not answer in time. A token HEY has not published answers not_published, which says nothing about the token, and a project whose own site names another contract answers project_only, so its activity is never shown as the token's. Orle Agent's index reads HEY with Orle Agent's key and keeps each answer for 60 seconds at most, as HEY asks.
The launchpad's tools are gone#
Since 26 Oct 2026 the server has no tools for new launches: Pad takes their place (the launchpad contract, not upgradeable, still accepts a launch sent to it directly). Version 0.1.14 removed the code of the fifteen tools left out since then: launching, buying, and what promotes a launch (pool_info, quote_swap, buy, claim_referral, pairs, launch, launches, tokens, token_info, publish_token_metadata, set_token_metadata, set_pool_setting, set_creator_share, airdrop_fund, airdrop_start). What lets a holder or a creator leave stays: selling, the token vaults, dividends, the creator vault's funds and payouts, vesting releases, and an open airdrop round's claim and close tools.ts:94-118.
10.6Checked before signing#
A one-time key that signs an operation that then fails has to sign again, which the scheme forbids. So the server signs nothing that would failmessages.ts:19-24:
- Simulation with a throwaway key. Every vault operation runs first exactly as it would be signed, from the relayer's account, on the latest block one second later, with a throwaway key's root put in place of the vault's own for the simulation only quote.ts:5-10.
- Swaps are quoted. The quote finds the gas the swap needs and adds a margin, and signs a minimum output of the quote less the slippage, 1% by default and 10% at most.
- Near the circuit breaker, no signature. A swap that would use more than 80% of the price move a pool allows in one transaction is refused, since a small move would make it fail quote.ts:18-20.
- A signed operation goes first. If a spend was signed and has not landed, it is sent again before anything new is signed.
- The relayer is paid before signing. Room in a relayer channel is reserved for an operation's price before its key signs, so a signed key can always be relayed.
A refusal comes back as refused_before_signing: nothing was signed or spent.
10.7Gas in USDG: the relayer#
The relayer sends the agent's calls from its own account, pays the gas in ETH and charges the vault in USDG server.ts:1-3, through a payment channel of 1 USDG, or more when a payment needs it config.ts:35-39.
| Rule | Value |
|---|---|
| Price | Simulated gas, plus its L1 data part, plus the gas every signed swap reserves, times the gas price; plus 10% |
| ETH to USD | Chainlink ETH/USD, plus the feed’s 0.5% deviation threshold; refused if older than 25 hours |
| Agent’s check | The agent computes the same price itself and refuses to pay more than 10% above it (the gas price moves between its read and the relayer’s) |
| Calls per request | At most 8, all or nothing |
| What it relays | Only calls to Orle Agent’s contracts, USDG and WETH, in the shapes the agent’s vaults and the pool use |
The relayer cannot change what an agent signed: a vault spend, a leaf spend and a deposit are each bound by their signatures to every field that moves value. It also keeps every WOTS signature it receives until the chain shows the key used, and refuses a second message for the same key gate.ts:147-151. Without a relayer, the agent pays gas in ETH from its own fee payer key.
10.8What stays on the machine#
- The seed and the gas key, in files of mode 0600 in a 0700 directory owned by the agent's user; anything accessible to other users is refused disk.ts:1-7.
- Every WOTS signature, written before it is used.
- Records of vaults, launches, private notes and private vaults. They hold no key: spending still takes the seed.
Nothing secret is ever printed, logged or sent anywhere.
10.9Identity and what comes next#
The identity tools came with version 2 of the vault, live since 22 October 2026 after the upgrade owner's 72-hour delay (the scheduling transaction): an agent's profile on IPFS and its ERC-8004 registration, kept in a registry that only the creator vault can write to. Registering is optional; the order is on the getting started page. The vaults run version 5 now, which keeps them.
The web app at Orle Agent runs a vault in the browser, with Orle Agent Swap, private balances, Orle token locks, the connect page that gives Claude an agent key, and the vault's Agent tab, where its owner sets the policy and the allowlist and stops the key.