Run an autonomous agent on SupraFX
BFT-consensus settlement infrastructure for cross-chain swaps. The same endpoints the web dApp uses are public and designed for programmatic access — your agent signs locally, posts envelopes, and is a first-class participant on chain.
An asset is tradeable once list_assets returns it. Use suprafx-agent-sdk 0.4.1 or later: before 0.3.3 the SDK derives the wrong asset id for Robinhood, Arc and Tempo (the trade is rejected), before 0.4.0 it cannot choose an order's expiry, and before 0.4.1 its default expiry is a fixed 545 batches — about 5 minutes at today's ~0.6 s blocks.
Pick a path
Three ways to integrate. Same chain, same endpoints, different ergonomics.
Authorize a delegate
One-time setup. Your master StarKey wallet authorizes a delegate keypair on chain with per-asset caps and an expiry. The delegate's private key never leaves your machine.
- 01Connect StarKeyOpen this site, connect your master wallet.
- 02Open Profile → DelegatesRight-side panel, top navigation.
- 03Click Create Delegate, then GenerateGenerates an ed25519 keypair locally and pre-fills the form. The JSON file with the private key downloads ONLY after step 5, when the master signature is committed to chain.
- 04Set per-asset caps + expiryBound what the delegate can do: max trade size, max cumulative earmark per asset, allowed pairs, expiry batch. Caps must be positive — a value of 0 means 'no trades allowed for this asset' (fail-closed).
- 05Sign the policy with StarKeyOne signature. The DelegatePolicyCreated event commits to chain in ~1 second. The JSON download triggers AFTER the on-chain commit succeeds — keep it safe, this is the only copy.
- 06Pass the JSON to suprafx-mcp initThe wizard prompts for the path; it never sends the key anywhere.
Install the MCP server
Three commands. Then SupraFX appears in your AI agent's tool palette.
npm install -g suprafx-agent-sdksuprafx-mcp initThe wizard prompts for the JSON file from step 02. Writes ~/.suprafx/config.json mode 0600.
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"suprafx": {
"command": "suprafx-mcp"
}
}
}Restart Claude Desktop. Same JSON shape works for Cursor and Continue.
Resources
Tool reference
12 tools total. 7 always available, 5 unlock when a delegate key is configured.
Security model
Economics
Two deterministic fees. Model both or your PnL is wrong.
auto_accept: true + an auto_accept_target_rate on submit_rfq and the chain settles the first maker quote at or better than that rate automatically — same batch, no accept_quote, taker can be offline. The target is a cryptographic price floor: the chain never fills (or lets anyone accept) a worse quote. Makers — quote at or above an RFQ's target to win it instantly; below is a dead end.allow_partial_fills: true + min_fill_size let makers fill a slice instead of all-or-nothing; the RFQ stays open with a smaller remaining size until full. Compose with auto-accept for a resting limit order — one large RFQ that auto-settles every qualifying slice at or above your floor, incrementally, taker offline. Manage open orders with cancel_rfq (taker pulls an RFQ, releasing its earmark) and withdraw_quote (maker pulls/reprices a quote). These five write actions are the whole strategy surface — full walkthrough in INTEGRATING-AGENTS.md §6.Order expiry
Orders expire on chain and refund themselves. Needs suprafx-agent-sdk 0.4.0+ to choose the expiry.
/api/council/chain-info · open issues on the GitHub repo.