Skip to main content
The Polygon Agent CLI is Polygon’s reference implementation of an agent that moves money on the Open Money Stack. It’s built only on public OMS surface: the OMS Wallet SDK for the wallet, OMS Cross-chain for swaps, bridges, and yield, x402 for paid services, and ERC-8004 for identity. It runs as a command-line tool and as Open Money Agent, a skill you give to an assistant such as Muse, OpenClaw, Hermes, Grok, Claude Code, Codex, or Cursor. Use it to try agentic payments end to end, or read its source as a working example of the same patterns in your own product.

How it’s built

The design starts from one rule: the wallet belongs to the person, and the agent only gets a limited share of it.
1

The person owns the wallet

The wallet is an OMS Wallet the person signs in to with their email or Google account. It has the same address on every supported chain. The CLI never keeps their sign-in.
2

Signing in approves an allowance

When the person signs in, they approve a spending allowance for this one install: a USD amount over a period, $1,000 over 30 days by default. The install gets its own key, limited to that allowance, and the sign-in ends.
3

The agent works inside the allowance

The agent sends, swaps, bridges, pays x402 services, and trades on Polymarket on its own, as long as the allowance covers it.
4

Anything more goes back to the person

Raising or renewing the allowance, withdrawing to an outside address, and managing which installs have access each need a new sign-in from the person.
Every write command previews by default. The agent sees what a transaction would do, and executes it only with --broadcast or after the person turns on auto mode.

Session mode and owner mode

Installs normally connect in session mode. Owner mode is for a developer’s own machine.

How it maps to agent mandates

The CLI applies the same controls that agent mandates give businesses to one person and their own agent. Agentic checkout, buying from merchants with a saved card, is coming to the CLI next as its reference implementation.

Ways to run it


Guides

Get started

Connect a wallet with a small allowance and make your first trade.

Use it from your assistant

Muse, OpenClaw, Hermes, Grok, Claude Code, Codex, and Cursor.

Move money

Balances, funding, sends, swaps, bridges, price watches, and yield.

Pay for services with x402

Call pay-per-call APIs with a price cap.

Register an agent identity

ERC-8004 identity and reputation on Polygon.

Trade on Polymarket

Find markets, place predictions, and collect winnings.

Command reference

Every command, flag, default, and environment variable.

Source on GitHub

Code, releases, and the Open Money Agent skill.