Run a prober
A prober buys ordinary inference from sellers in bounded waves, measures what it gets, signs one observation per route window with its operator key, and publishes it to an indexer that has pinned that key. This page follows the normative prober runbook.
Run it on a host and network you administer, outside any seller's or indexer's infrastructure. Independence is the point.
1. Create and publish the operator key
From a checkout with Bun 1.4.5 or newer (bun install at the root), as a dedicated service user:
umask 077
install -d -m 700 "$HOME/.config/im-prober"
bun -e 'console.log(Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("hex"))' > "$HOME/.config/im-prober/operator.seed"
chmod 600 "$HOME/.config/im-prober/operator.seed"
bun services/prober/src/cli.ts public-key "$HOME/.config/im-prober/operator.seed"
The seed file holds 64 hex characters (32 bytes); it is not the JSON byte-array format the seller gateway uses. The last command prints the base58 public key.
Publish only that public key, and your host's public egress network and region, on a page or repository you control. Send the key to each indexer administrator for an out-of-band match: they add it to their operators list, and SDK and UI clients add it to their operator pins. Never attach seeds, signer files, RPC credentials or raw HTTP transcripts to issues or chats.
The operator key attests to measurements only. Never reuse it as a seller key, an indexer attestation key, a buyer signer or a session key.
2. Restrict egress
- Run the prober as a least-privilege user in an outbound-deny container or behind a firewall or egress proxy you control.
- Allow only: DNS to your resolver, NTP to your time source, TCP 443 to the configured sellers and the discovery ingress, and the exact Solana RPC your buyer wallet uses.
- At the network layer, deny link-local and cloud metadata addresses, private and LAN networks, and loopback (except explicit isolated test destinations), even if DNS resolves a pinned hostname there. Check IPv4 and IPv6.
- Use HTTPS with normal certificate checking. The prober pins exact origins and seller keys, rejects redirects and credentials in URLs, and only calls
/v1/chat/completions.completionOriginsexplicitly authorizes a completion origin other than the listing origin; never let a listing choose origins for you. - Synchronize the clock. Observations use integer unix seconds and the indexer rejects future or stale windows.
3. Write probe.json
Unknown fields are rejected. Paths are resolved from the prober's working directory, so use absolute paths; the examples assume the service user's home is /home/prober. Cap values are micro-USDC, not dollars. Run the prober from the repository root so a relative payment module path resolves.
{
"operatorKeyFile": "/home/prober/.config/im-prober/operator.seed",
"discoveryOrigin": "https://discovery.example",
"discoveryKey": "INDEXER_ATTESTATION_PUBKEY",
"stateFile": "/home/prober/.config/im-prober/probe.sqlite",
"intervalMs": 60000,
"rounds": 1,
"timeoutMs": 10000,
"maxTokens": 32,
"totalBudgetMicros": 85000,
"targets": [{"origin":"https://seller.example","completionOrigins":[],"seller":"SELLER_LISTING_PUBKEY","capMicros":100,"maxConcurrency":64,"model":"MODEL_ALIAS"}],
"payment": {"mode":"module","path":"services/prober/operator.local.ts"}
}
| Field | Range | Meaning |
|---|---|---|
operatorKeyFile |
required | Hex seed file from step 1. |
discoveryOrigin |
required | Indexer origin; observations go to <origin>/v1/observations. |
discoveryKey or discoveryKeys |
exactly one; 1–8 keys | Pinned indexer attestation key(s). Use discoveryKeys during an indexer key rotation. |
stateFile |
required for watch and paid runs |
Private SQLite journal: budget reservations, window schedule, publication outbox. |
totalBudgetMicros |
≥ 0 | Cumulative allowance for this journal (paid probes). |
intervalMs |
≥ 1,000; default 60,000 | How often each route is due for a window in watch mode. |
timeoutMs |
1–60,000; default 10,000 | Per-request deadline. |
maxTokens |
2–512; default 32 | max_tokens of each probe request. |
rounds |
1–10; default 1 | Waves per concurrency level per window. rounds × timeoutMs must stay under 112,250 ms so a window fits in 900 s. |
targets[] |
1–1,000 sellers | origin, pinned seller key, optional completionOrigins (≤ 32), capMicros per request, optional model (default: the route's family) and maxConcurrency (1–64; default 64) capping the levels probed. |
payment |
{"mode":"no-pay","simulatorOrigins":[...]} for loopback simulators only, or {"mode":"module","path":...} for paid probes. |
4. Smoke-test on loopback, without payment
Generate a distinct throwaway seller seed and an indexer seed the same way as the operator seed (step 1), at $HOME/.config/im-prober/sim-seller.seed and $HOME/.config/im-prober/indexer.seed. Then, in separate terminals:
bun demo/sim-provider/src/server.ts --port=8001 --max_concurrency=16
bun services/prober/src/sim-listing.ts "$HOME/.config/im-prober/sim-seller.seed" http://127.0.0.1:8001 16 8002
bun services/prober/src/cli.ts public-key "$HOME/.config/im-prober/indexer.seed"
sim-listing prints {"origin","seller","route_id"}; its seller is SIM_LISTING_PUBKEY below. It serves a real signed listing for the simulator but an empty capacity array, so the indexer logs missing_capacity and serves capacity: null; it never fabricates load.
Save as $HOME/.config/im-prober/indexer.json, replacing the uppercase placeholders (see run an indexer):
{
"attestationKeyFile": "/home/prober/.config/im-prober/indexer.seed",
"database": "/home/prober/.config/im-prober/routes.sqlite",
"sellers": [{"origin":"http://127.0.0.1:8002","completionOrigins":["http://127.0.0.1:8001"],"seller":"SIM_LISTING_PUBKEY"}],
"operators": ["OPERATOR_PUBKEY"],
"hostname": "127.0.0.1",
"port": 8700
}
Save as $HOME/.config/im-prober/probe-sim.json; INDEXER_ATTESTATION_PUBKEY is the key printed by the third command above:
{
"operatorKeyFile": "/home/prober/.config/im-prober/operator.seed",
"discoveryOrigin": "http://127.0.0.1:8700",
"discoveryKey": "INDEXER_ATTESTATION_PUBKEY",
"totalBudgetMicros": 0,
"targets": [{"origin":"http://127.0.0.1:8002","completionOrigins":["http://127.0.0.1:8001"],"seller":"SIM_LISTING_PUBKEY","capMicros":0,"maxConcurrency":16,"model":"sim-llm"}],
"payment": {"mode":"no-pay","simulatorOrigins":["http://127.0.0.1:8001"]}
}
Start the indexer, give it one crawl, then run one pass:
bun services/discovery/src/cli.ts http "$HOME/.config/im-prober/indexer.json"
bun services/prober/src/cli.ts run "$HOME/.config/im-prober/probe-sim.json"
The prober logs probe operator <key>, then one JSON line per route with status (published on success), refused, failed and budget_remaining_micros. Never use no-pay mode against a paid seller: it only talks to the pinned simulator origins.
5. Run for real
runcompletes one full pass (all due routes, allrounds), flushes vouchers and exits.watchruns passes forever under a supervisor; it needsstateFile. Each route gets at most one window perintervalMs, and a pass never overlaps itself.
PROBER_BUYER_SETTINGS="$HOME/.config/im-prober/buyer.json" \
bun services/prober/src/cli.ts watch "$HOME/.config/im-prober/probe.json"
Paid targets need the payment module and a funded devnet buyer: see paid probes. Operating a long-running prober is covered in prober operations.