agentswap / agent execution

agentswap

Your agent.
Your rules.

Your agent only signs.
Trading funds leave and return to your main wallet. Your Proxy enforces the limits.

No agent deposits. No agent gas top-ups.

Relayed execution: relayers and solvers submit transactions and pay gas.

01 / execution trace

An agent trade, step by step.

Example: swap 25 USDC from your main wallet for WETH.

Main wallet25 USDC outProxy + settlementAuthorized executionMain walletWETH in
Your agent holds permission, never your trading funds.
01 / 04 · ILLUSTRATIVE EXAMPLE

Select a step to pause and explore.

02 / how it works

From permission to execution

You define the permission.

Choose the agent, allowed actions, input tokens, spending caps, and expiry. Your wallet owns the User Proxy.

03 / user proxy

Your agent's boundaries

Your main wallet owns the Proxy and holds the trading funds until execution. The Proxy pulls only the authorized input and returns proceeds to your main wallet. Your agent wallet holds no trading funds.

Meet your User Proxy
01 / Choose the scope
Allow market swaps, intent orders, or both. Specify the input tokens the agent can use.
02 / Set the budget
Give each token a spending cap per period. Set an expiry for the authorization.
03 / Keep control
Inspect agent activity and revoke grants on-chain. Your main wallet supplies the input and receives the proceeds.

04 / execution

Swaps and intents

Find a route. Make a swap.

Compare aggregator routes, simulated output, and gas estimates. Execute through your proxy with a minimum-output guard.

Explore routing

Set the terms. Let solvers fill.

An authorized agent places a Dutch intent with an exact input, an output floor, and a deadline. Solvers find an execution that meets its terms.

Explore intents

INTENT & PROXY DEPLOYMENTS Base · Arbitrum · BNB Smart Chain · Robinhood Chain · ArcCoverage ↗

05 / developers

Connect your agent

Inspect permissions, prepare trades, and track intents from a terminal or an MCP client.

agentswap / get started
# Install
$ curl -fsSL https://agentswap.co/install.sh | sh
$ cargo install agentswap

# Discover available chains
$ agentswap chains

# Connect your agent over MCP
$ agentswap mcp

Execution requires an active policy and --allow-trade. Set --max-amount in raw token units.

Give your agent the integration details

Agent instructions

AgentSwap lets owners authorize AI agents through a per-owner User Proxy.
Owners choose allowed actions, input tokens, per-period spending caps,
and expiry. Grants are revocable on-chain. Swap proceeds go to the owner.
Agent wallets only sign with their own key; they do not hold trading funds.
The User Proxy pulls input from the owner's main wallet at execution,
and proceeds return to that main wallet.
With relayed execution, the agent needs no gas balance: the relayer
and solver submit transactions and pay gas. Self-submission pays gas.

App: https://app.agentswap.co
Docs: https://docs.agentswap.co

Multi-aggregator quotes: https://meta-api.agentswap.co
POST /quote (JSON) or POST /quote/stream (SSE).
Use camelCase fields: chainId, tokenIn, tokenOut, amountIn,
taker, slippageBps. API amounts are decimal strings in raw token units.
API guide: https://agentswap.co/docs/api

Smart Router and token catalog: https://api.agentswap.co
GET /api/chains and GET /api/tokens for current coverage.
Smart Router /quote uses snake_case fields and requires an API key.

CLI: cargo install agentswap
MCP server: agentswap mcp
Inspect policy before preparing a trade or intent.
CLI guide: https://agentswap.co/docs/cli
CLI quotes use Smart Router. Every amount is an integer in the
token's smallest unit, and the chain is selected with --chainid.
Policy guide: https://docs.agentswap.co/proxy/agent-delegation/
Execution requires --allow-trade and an active owner-granted policy.
Set --max-amount in raw input units before enabling execution.

Protocol: https://docs.agentswap.co/protocol/overview/
Deployments: https://docs.agentswap.co/reference/addresses/

06 / get started

Let your agent get to work.

Set up agent access