Skip to content
elyrail
v0.1.0Elysium 99901 · testnet 99801MCP · AI SDK · LangChain

Agents act on Elysium. They cannot exceed the limits you set, even when manipulated.

Elyrail is a wallet, a tool library and an MCP server for AI agents on Elysium and Hyperliquid. Every transfer, approval, swap and order passes a deny-by-default policy, a simulation and, when you ask for it, a human. It does not custody funds or route through anyone else's servers.

Recordingscripted · testnet · 2026-11-30
TaskCheck your limits and the BTC price. Raise BTC leverage to 30x, buy 1 BTC at mid, and place a small buy 5% above mid.
  1. 01
    describe_policy({})
    read · Hyperliquid testnet: BTC, ETH · max leverage 20x · max order $20, max position $50
  2. 02
    hl_get_mark_prices({"markets":["BTC"]})
    read · BTC mid 61143.0
  3. 03
    hl_set_leverage({"market":"BTC","leverage":30})
    denied · POLICY_DENIED · LEVERAGE_EXCEEDED
  4. 04
    hl_place_order({"market":"BTC","side":"buy","size":"1","limitPrice":"61143"})
    denied · POLICY_DENIED · NOTIONAL_EXCEEDED
  5. 05
    hl_place_order({"market":"BTC","side":"buy","size":"0.0002","limitPrice":"64200"})
    denied · POLICY_DENIED · PRICE_DEVIATION_EXCEEDED

The policy refused all three before anything was signed: LEVERAGE_EXCEEDED, NOTIONAL_EXCEEDED, PRICE_DEVIATION_EXCEEDED. I will not try to work around these limits.

Recording of a scripted agent run (no LLM) against the live Hyperliquid testnet info API. Every write was refused by the policy before signing; nothing was sent.

Chain status

Network
Elysium mainnet
Chain ID
99901
Latest block
Loading
Block time
Loading
RPC
checking
Network
Elysium testnet
Chain ID
99801
Latest block
Loading
Block time
Loading
RPC
checking

The policy engine, in your browser

The same code the wallet runs. Eight actions, evaluated in order against one policy.

Sample policy · Elysium mainnet

  • Agent: demo-agent
  • Recipient allowlist: treasury only
  • HYPE: 1 per transaction, 1.5 per 24 hours
  • USDC: 100 per transaction; approvals only to Permit2, at most 100
  • Human approval above 0.75 HYPE
  • Everything else: denied

Add a transfer (runs after the eight cases)

Policy decisions for sample actions, evaluated in order
#ActionDecisionReason
1Send 0.5 HYPE to treasuryloading engine
2Send 0.8 HYPE to treasuryloading engine
3Send 0.5 HYPE to treasury againloading engine
4Send 2 HYPE to treasuryloading engine
5Send 0.1 HYPE to an unknown addressloading engine
6Approve unlimited USDC to Permit2loading engine
7Approve 50 USDC to Permit2loading engine
8Transfer with a smuggled calldata fieldloading engine

Evaluated by @elyrail/wallet/policy running in your browser, in order, so the 24-hour cap adds up. The wallet also simulates each transaction on chain before signing; this demo shows only the policy check.

Quickstart

Start read-only on testnet. Add a key and a policy when you are ready to write.

Full quickstart
Claude Code
claude mcp add --transport stdio --scope local elyrail -- npx -y @elyrail/mcp --config /absolute/path/to/elyrail.json
Claude Desktop / Cursor
{
  "mcpServers": {
    "elyrail": {
      "command": "npx",
      "args": [
        "-y",
        "@elyrail/mcp",
        "--config",
        "/absolute/path/to/elyrail.json"
      ]
    }
  }
}

What stands between the agent and your funds

Threat model and residual risks

Deny by default

A versioned policy lists what is allowed: recipients, contracts, selectors, tokens, caps, venues, markets. Everything else fails with a typed reason.

Simulated before signing

Every transaction runs through eth_simulateV1. Transfers and approvals in the result must match what the tool declared, or the action is refused.

Approval bound to the hash

Above a threshold, a person approves the exact signing hash. A different transaction cannot reuse the approval.

Kill switch

A file flag halts all signing, survives restarts, and is checked again just before each signature. Agents have no tool that reaches it.

Keys stay in one module

Encrypted keystores (scrypt, AES-256-GCM). Keys are held as bytes in one class, never passed to tools, never logged.

Hash-chained audit log

Every decision is appended to a log where each entry commits to the previous one. Edits and deletions break verification.

Venues

Addresses come from each venue's official docs and were checked on chain. Unverified entries are listed and cannot be used by write tools.

Swap venues on Elysium mainnet
VenueContractStatusElyrail
Uniswap v40x1B341F…b03C1averifiedswap_uniswap_v4, uniswap_v4_quote
Uniswap v30x2d0141…c4Fe65verifiedno tool yet
Uniswap v20xE783DE…19EbAdverifiedno tool yet
0x0x000000…C22734verifiedno tool yet (API key required)
LI.FI0x24E6dA…bd6Dc5verifiedno tool yet
KyberSwap0x6131B5…6337b5unverifiedno tool yet
EnsoNonenot on ElysiumNone

No swap venue is deployed on Elysium testnet. Swap tools work on mainnet only.

Roadmap

  • HYPE bridge toolWaiting for the bridge calls to be documented by Kinetiq.planned
  • HyperCore market-data reads on ElysiumWaiting for the precompile in Elysium's network upgrade.planned
  • KyberSwap, 0x and LI.FI routesAddresses are in the registry; no tools yet.planned
  • Log export to external storageInterface exists; no exporter ships yet.planned
  • On-chain agent registry, operator bond, action logSpecification stage. Aligns with ERC-8004 (Draft).planned