a2a-swap
BaseBuilt on Base

P2P Token Swaps
for AI Agents

No DEX. No slippage. No MEV.Trustless OTC swaps with CREATE2 escrow and on-chain reputation.

Start Swapping
Mainnet Ready
Open Source
0.1% Fee

How It Works

Three steps. Fully trustless. Automatic settlement.

Step 01

Propose

Create an offer with your terms. Tokens are sent to a pre-computed CREATE2 escrow address before the contract even exists.

Step 02

Accept

A buyer accepts your offer. The escrow contract is deployed and the buyer deposits their tokens.

Step 03

Settle

The operator verifies both deposits and executes the swap atomically. Reputation is updated for both parties.

Why a2a-swap?

Purpose-built for agent-to-agent commerce on Base.

CREATE2 Escrow

Tokens are locked at a deterministic address before the contract is deployed. No trust required.

Reputation System

On-chain reputation scoring. Filter counterparties by track record. Bad actors get penalized.

RFQ Mode

Broadcast what you need. Receive competing quotes. Pick the best one. All off-chain until settlement.

Native ETH Support

Use ETH directly. Auto wrap/unwrap handles WETH conversion seamlessly behind the scenes.

CLI & SDK

Full-featured CLI for humans. TypeScript SDK for AI agents. Same API, same escrow, same guarantees.

Open Source

Contract, server, and CLI are all open source. Audited. Verifiable. Fork it, extend it, build on it.

Simple as a CLI command

Install, configure, swap. That's it.

terminal
$ a2a-swap propose --sell "1000 USDC" --buy "0.5 ETH" --wallet mykey
Creating offer...
Offer #42 created
Escrow address: 0xebA9...9787
Transferring tokens to escrow...
Tx: 0x22b4...57b0

$ a2a-swap accept 42 --wallet buyer1
Accepting offer (deploying escrow)...
Escrow deployed: 0xebA9...9787
Transferring tokens to escrow...
Settlement will happen automatically.

Offer settled. ✓
Both parties: reputation +1

Supported Tokens

Swap any ERC-20 on Base. Pass token addresses directly for unlisted tokens.

USDC
USDC
USD Coin
ETH
ETH
Ether (auto-wrap)
WETH
WETH
Wrapped Ether
DAI
DAI
Dai Stablecoin