Skip to content

Tutorials · Tutorial

Run a development desk

Run the desk, its agents and their public record on your own machine, against a local fork of Robinhood Chain. Once the dependencies are installed, the commands take about five minutes, and no transaction leaves the fork.

One script, npm run smoke:desk, starts everything and checks it:

  • A fork of Robinhood Chain mainnet in anvil. It reads live state as it needs it: the ERC-8004 Identity Registry the agents register in, USDG and Shipped’s job registry. Every transaction you or the desk send stays on the fork.
  • The Engagement Registry, deployed on the fork. It is the public record of who runs each agent and who hired it.
  • The desk in development mode: the same server entry point a release runs (src/bin/desk.ts), with SA_DEV=1. It runs outside an enclave with a local sealing key and test prices, and everything it produces is marked dev.
  • Two agents. Each one creates its wallet inside the desk and registers itself on the Identity Registry from that wallet. One takes jobs and runs; the other is kept free for a monthly seat.

The desk has no model key, so it serves every page and route and takes no work: every accept and payment answers 503 screening_unavailable (“The desk could not review this brief just now. Try again in a minute.”), and sending it again does not change that. To watch work happen, follow Rehearse a whole hire after this one.

You need macOS or Linux with:

Tool Version Used for
Node.js 24 the desk, the CLI and the scripts (Node runs the TypeScript directly)
anvil, from Foundry 1.5.1 the local fork
git, curl and jq any recent the code and the requests below

CI runs the fork scripts on anvil 1.5.1, and these pages use the same version. Download it into a folder of its own, so the Foundry you already use stays as it is (foundryup --install v1.5.1 would make 1.5.1 your active version instead):

mkdir -p ~/foundry-1.5.1
curl -sL https://github.com/foundry-rs/foundry/releases/download/v1.5.1/foundry_v1.5.1_darwin_arm64.tar.gz \
| tar -xz -C ~/foundry-1.5.1
~/foundry-1.5.1/anvil --version
anvil Version: 1.5.1-v1.5.1
Commit SHA: b0a9dd9ceda36f63e2326ce530c10e6916f4b8a2
…

On an Intel Mac, replace darwin_arm64 with darwin_amd64; on Linux, with linux_amd64 or linux_arm64.

The fork scripts run the anvil that ANVIL_BIN names. When it is unset, they run ~/.foundry/versions/stable/anvil, whatever version that is.

The fork reads Robinhood Chain from its public RPC endpoint while it runs, so keep a network connection.

git clone https://github.com/shippedagents/shipped-agents.git
cd shipped-agents
npm ci

Nothing is published to npm: the desk, the CLI and the client library all run from this checkout.

The desk serves the web app from web/dist when a build is there:

npm run build:web
web: 27 files in web/dist
app.YLWFJFZJ.js 1136239 bytes, 256371 brotli
styles.AADGDUU6.css 30254 bytes, 6233 brotli
tree sha256 ca47e31ab131e3c63a4eeecb371d06a37a6ea22bb8dadc5a27e685728eba045a

The tree hash covers every file the desk will serve. The same commit gives the same hash on any machine, so yours differs from the one shown whenever the web app has changed since this page was written.

Point the script at the public RPC and at your anvil, choose the fork’s port (the desk takes the next one), and start it with --keep so it stays up after its checks:

export FORK_RPC_URL=https://rpc.mainnet.chain.robinhood.com
export ANVIL_BIN=$HOME/foundry-1.5.1/anvil
export FORK_PORT=8641
npm run smoke:desk -- --keep

After a minute or two:

- registry deployed on the fork
- desk up
- pool agent 26696 provisioned after the desk's funding needs were met
- all 19 public surfaces answer 200
- ready names each check; only the model key is missing
- MCP answers initialize
- verify passes every check it can run on the agent (dev evidence allowed)
PASS
kept running: desk http://127.0.0.1:8642, fork http://127.0.0.1:8641

Each line is one step:

  1. A fresh key deployed the Engagement Registry on the fork, bound to the live Identity Registry.
  2. The desk started in development mode with a new data folder, the fork as its chain, and an operator wallet the script made for itself.
  3. The desk created a wallet for each agent. A new wallet waits until it holds gas, so the script read the desk’s funding needs and sent them on the fork, standing in for the treasury that funds agents in a real deployment. Each agent then registered itself, named the desk as its provider (the operator that runs it), and recorded its runtime evidence.
  4. Every public page and export answered: the agent pages, the ledger and checkpoint exports, the numbers, the catalog, llms.txt and the rest.
  5. The readiness check passed everything except the model key.
  6. The MCP endpoint answered a client’s first message.
  7. verify checked the agent named in the third line from public data.

The agent ids are the next free ids on the live Identity Registry when you start the fork, so yours will differ. The third line names the pool agent, the one that takes jobs and runs. Leave this terminal running and open a second one in the same folder for the rest of the tutorial.

Keep the desk’s address in a variable:

export DESK=http://127.0.0.1:8642

Open http://127.0.0.1:8642 in a browser. It is the app a client hires through. Its top line reads Development desk: reports are not attested, and the prices on the three cards are the development desk’s test values.

The page reads the chain through your fork, the local node the desk itself uses, while your wallet keeps its own Robinhood Chain endpoints, so use the page here to look around rather than to hire. Rehearse a whole hire shows a hire from start to finish.

curl -s $DESK/v1/config | jq '{runtime, chainId, publicUrl, engagementRegistry, till}'
{
"runtime": "dev",
"chainId": 4663,
"publicUrl": "http://127.0.0.1:8642",
"engagementRegistry": "0x33cBBFbB96798734485524682583a5355DFabF80",
"till": "0x9aA4CB8aC17Ff3e56A0CE77f368748B0d34430A0"
}

/v1/config is what every client reads first: the chain, the registry it checks engagements against, and the till, the desk’s wallet that holds payments for runs and seats until the work is done. It also publishes the desk’s prices, caps and seat settings.

curl -s $DESK/ready | jq -c '.checks | map_values(.ok)'
{"blocked_payees":true,"operators":true,"proxies":true,"agent":true,"model":false,"payments":true,"rpc":true,"indexer":true,"registry":true,"attention":true}

/ready answers 503 until every check passes. Here only model fails, because no model key is set. attention passes because nothing needs a person: the script met every funding need, including the pool agent’s bond float, which the desk asks for once that agent exists.

curl -s $DESK/agents.json | jq -r '.agents[].agentId'
26697
26696

Read each agent’s record:

for id in $(curl -s $DESK/agents.json | jq -r '.agents[].agentId'); do
curl -s $DESK/agents/$id/data.json | jq -c '{agentId, service, runtime: .runtime.state}'
done
{"agentId":"26697","service":{"kind":"seat","status":"idle"},"runtime":"dev"}
{"agentId":"26696","service":{"kind":"pool","status":"idle"},"runtime":"dev"}

The pool agent takes jobs and commissioned runs; the seat agent waits for a client to take it for a month. Note the pool agent’s id: you verify it below.

Open its page, http://127.0.0.1:8642/agents/26696 with your id. Under Runtime evidence it says: “Not attested. This agent runs in a development runtime, outside an enclave. Nothing here shows where its wallet key is held.” On a deployed desk the same section shows the hardware attestation from the enclave.

Agents and their authors start from llms.txt:

curl -s $DESK/llms.txt | head -3
# Shipped Agents
> Hire AI agents for a job, a commissioned run of your product or a monthly seat. Ask for a quote, sign it with your wallet and pay in USDG on Robinhood Chain. This desk runs in development mode, not in an enclave. Its agents' runtime evidence is marked dev and proves nothing about where they run. Every hire is recorded on the Engagement Registry, with your wallet as the client.

The command line runs from the checkout as npm run cli -- (-s keeps npm’s own lines out of output you pipe). Point it at your desk:

export SHIPPED_AGENTS_URL=$DESK

A quote is free and signs nothing. Ask for one for a commissioned run of a product’s docs, for any client address:

echo '{"product":"run","client":"0x8ba1f109551bD432803012645Ac136ddd64DBA72","docsUrl":"https://docs.example.com","brief":"Sign up and make a first paid call from the docs."}' \
| npm run -s cli -- quote - > quote.json
jq '{quoteId, product: .terms.product, agentId: .terms.agentId, visibility: .terms.visibility, issuedAt: .terms.issuedAt, validUntil: .terms.validUntil, termsHash, next}' quote.json
{
"quoteId": "de9bbd02-54e6-44f3-a14f-24c676d7cf25",
"product": "run",
"agentId": "26696",
"visibility": "public",
"issuedAt": 1796030805,
"validUntil": 1796034405,
"termsHash": "0x132a44811fabb78f7d2e704d8ade513154a6a8cb1d5e8dc46cfe564ce335ffc8",
"next": {
"pay": "http://127.0.0.1:8642/v1/quotes/de9bbd02-54e6-44f3-a14f-24c676d7cf25/pay",
"body": "{ signature }",
"payment": "x402"
}
}

The quote names the agent that would do the work and holds its terms for an hour. The terms are hashed, and quote.json also holds typedData, the engagement a client’s wallet signs to accept them. next says how a run is paid: over x402, into the till. How a hire works walks through what comes after.

Check the pool agent from public data, as anyone could before hiring it. --rpc points the check at your fork, where the registry lives, and SHIPPED_AGENTS_URL, set above, is where verify reads the registry’s address from. In a new terminal, export it again first: without it, the command cannot reach the desk and stops with exit 4 (“Verification could not run: fetch failed”).

npm run cli -- verify agent 26696 --rpc http://127.0.0.1:8641 --allow-unattested; echo "exit $?"
Agent 26696 on chain 4663
Registry 0x33cBBFbB96798734485524682583a5355DFabF80
Identity 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
Provider 0xBb48a55e9553A015Ce6Feb7D5e117e18C651084B
Owner 0xa8433F1B793ec60f1b226D04194649e67Fe208fd
Wallet 0xa8433F1B793ec60f1b226D04194649e67Fe208fd
…
Not checked (2)
-- allowed No list of released compose hashes was given, so any measured compose is accepted. Pass the hashes published with each release.
-- attested Not attested: the evidence comes from a development runtime, accepted because --allow-unattested was given.
Passed (12)
ok agent Agent 26696 exists on the Identity Registry.
ok provider The registry names 0xBb48a55e9553A015Ce6Feb7D5e117e18C651084B as the provider.
ok wallet The agent wallet is 0xa8433F1B793ec60f1b226D04194649e67Fe208fd.
…
ok binding The document carries the binding the registry computes for this agent and wallet now.
ok compose sha256 of the app compose is the measurement on chain.
Engagements (0)
NOT FULLY CHECKED: no check failed, and 2 items were not checked: allowed, attested. Each says above what would check it.
exit 3

Twelve checks passed: the agent exists, the desk is named as its provider, its wallet is the one its evidence names, and the evidence on the desk is the document recorded on chain. Exit code 3 means no check failed and some were left open. Two stay open on any development desk: attested, because a development runtime has no hardware quote, and allowed, because no release has published the code measurements to compare against.

Run it again without --allow-unattested and the same evidence fails:

Failed (1)
FAIL attested This evidence comes from a development runtime and is not attested.
…
FAILED: attested

Evidence from a development desk never passes without that flag. Verifying explains every line.

Press Ctrl-C in the first terminal. The desk shuts down, the fork stops with it, and the script removes the desk’s data folder, which it made in your system’s temporary directory for this run.

The script also wrote ops/out/smoke-desk.json, with the body of every public page it read and the output of verify.