# agents.txt — Aegis trading gateway # Machine- and human-readable notes for AI agents. Served at /agents.txt. # Facts about this software; the operator's published terms and fee schedule take precedence. name: Aegis what: A non-custodial order-routing gateway. AI agents place and cancel limit orders on crypto exchanges (Coinbase, Kraken, Binance, Bybit, OKX, Upbit) through their owner's trade-only exchange API keys, and swap Solana tokens (pump.fun bonding curves, and Jupiter for graduated tokens and other SPL tokens) through a swap-only delegated trading key. status: Pre-launch. Built and tested against exchange mocks and sandboxes; Solana against an in-memory mock chain only (no mainnet sends in this build). ## Safety guarantees (enforced by the gateway, not by the agent) - Non-custodial: Aegis never holds customer funds. Exchange keys are trade-only (no withdrawal permission) and sit in a hardware security module. - No withdrawals or transfers: no API, MCP tool or SDK call can withdraw, transfer or move funds. Requests for one are refused. - Every order passes the same checks before it is sent: agent, owner, global and per-exchange kill switches; per-order quantity and notional limits; position and open-order limits; a price band around the market; order rate limits; and a reservation of the maximum fee from prepaid credits. A failed check rejects the order and nothing reaches the exchange. - Agents cannot raise their own limits. Raising a limit needs two human operators. - Every order, fill, fee and rejection is recorded in a hash-chained audit log. - Incoming deposits are screened against the OFAC SDN sanctions list. ## Solana (venues solana and pumpfun) - Symbol: the token's mint address then -SOL, e.g. -SOL. venue pumpfun = the bonding curve (before graduation); solana = Jupiter. Omit venue to route automatically. - Trading key: one per owner, generated inside the gateway and never exported. The owner funds it from their own wallet, which is linked by an operator. Agents never see or sign with it; they can only ask for swaps. - No withdrawals or transfers: before signing, every transaction is checked instruction by instruction. Only compute-budget, token-account and swap instructions are allowed; swap output must land in the trading key's own token accounts; any SOL or token transfer, approval, authority change or platform fee to another address is refused, including inside transactions Jupiter builds. The only way funds leave is an operator sweep, and only to the owner's linked wallet. - Per-agent caps: SOL per trade (default 1), SOL per rolling 24 h (default 5), maximum slippage (default 300 bps). Lowering is immediate; raising needs two operators. - Token safety checks before every buy, each set to block, warn or off by operators: mint authority, freeze authority, restrictive Token-2022 extensions, honeypot (an unsigned buy-then-sell simulation and a round-trip quote), liquidity, holder concentration, rug flags. get_quotes returns the report. - Mandatory simulation: the exact signed transaction is simulated (simulateTransaction) before it is sent, and refused if it fails or spends more SOL than the trade allows. A refused trade sends nothing and reserves nothing. - Priority fees: a percentile of recent fees, capped per compute unit and per transaction. Confirmation: polled with rebroadcast until the blockhash expires; expired or failed swaps release their fee reservation. A sent swap cannot be canceled. - Fees: the same per-trade bps of notional, metered in USD at the SOL price, from the same prepaid credits. ## How to connect - Register: the owner (a human) creates the agent in the Aegis portal with the agent's Ed25519 public key and gets a key id. The agent's signing key is generated on the agent's machine and never sent to Aegis. It is an API identity key, not a wallet key, and it cannot withdraw anything. - Pin the gateway's identity public key (shown in the portal and at /agent/v1/identity). - MCP (Model Context Protocol), stdio: run the `aegis-mcp` proxy from your MCP client. It performs the handshake and signs every request. See MCP.md. - MCP, streamable HTTP: POST /mcp after the handshake at POST /agent/v1/hello. Every request carries a session MAC (headers aegis-session, aegis-seq, aegis-mac). There are no bearer tokens. - Python SDK: package `aegis-agent` (sdk/python). See sdk/python/QUICKSTART.md. ## MCP tools - Read-only: get_quotes, preview_order, list_open_orders, get_positions, list_fills, get_credits, get_limits. - Mutating (need an idempotency_key): place_order, cancel_order. - Prices and quantities are decimal strings. Excess precision is refused, never rounded. - Solana: place_order and preview_order take no price; qty is the SOL to spend (buy) or the tokens to sell, and slippage_bps is optional. ## Pricing model - Prepaid credits in USD. The owner tops up with crypto (BTC, USDC or USDT). Card payments are not offered at launch. - A per-trade fee in basis points of filled notional, charged per fill from credits. The worst-case fee is reserved when an order is placed, and the unused part is released when it finishes. Routing stops when credits run out. - Software defaults (the operator may publish different rates): Starter 5 bps, falling to 4 and 3 bps with 30-day volume; Pro $500 per 30 days at 3 to 1.5 bps; Institutional $5,000 per 30 days at 2 to 0.5 bps. Flat monthly arrangements are possible for selected owners. ## Contact contact: support@aegisexchange.ai docs: README.md, MCP.md, sdk/python/QUICKSTART.md