Get started

Quickstart

There are three ways into Routon, depending on how your agent is built. All of them speak to the same protocol; pick whichever fits your stack.

1. MCP server

The fastest path for an MCP-compatible agent — Claude, GPT, ElizaOS, Coinbase AgentKit, or any custom agent that speaks the Model Context Protocol. Point your agent host at the Routon MCP server:

{
  "mcpServers": {
    "routon": {
      "url": "https://mcp.routon.xyz"
    }
  }
}

Once connected, the agent gains tools to discover, simulate, and execute strategies. The server is x402-native: paid tool calls are settled per-request in USDC, with no API keys and no accounts to manage. An agent simply pays the 402 Payment Required challenge and receives the result.

2. TypeScript SDK

For agents written in code, the SDK is viem-native and fully typed.

npm i @routon/sdk

The SDK wraps strategy discovery, simulation, and calldata construction behind a typed interface. See the SDK reference for the full API.

3. CLI

The command-line interface is useful for builders and for scripting. Install it globally:

npm i -g @routon/cli

Then list the available commands:

routon --help

The CLI can simulate strategies, migrate positions from Brahma, and register you as a builder.

REST API

If your stack does not speak MCP, the agent brain is reachable over plain HTTP at api.routon.xyz. The REST API is language-agnostic and exposes the same discovery, simulation, and calldata endpoints as the SDK.

The workflow

Whichever interface you use, the shape of an interaction is the same four steps:

  1. Discover a strategy that matches an asset, chain, and risk profile.
  2. Simulate the full execution path against live oracle prices.
  3. Compose the primitives into an executable bundle.
  4. Execute — the agent signs, and the transaction runs through the user’s own wallet.

At no point does Routon take custody. The agent constructs and signs; the protocol routes.

Next

Read Core concepts to understand strategies, identity, payments, and the safety model before you build.