> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polygon.technology/llms.txt
> Use this file to discover all available pages before exploring further.

# Move money with the Polygon Agent CLI

> Check balances, add funds, send tokens, swap and bridge, act on price levels, and earn yield from the agent wallet, inside its allowance.

This guide covers the money movement an agent does day to day. It assumes the wallet is connected. Run `agent wallet status` first; if it shows `connected: false`, see [Get started](https://docs.polygon.technology/payment-services/agentic-payments/cli/quickstart.md).

Every write command previews unless you pass `--broadcast`. Pass `--dry-run` or `--broadcast` explicitly in scripts, so the result doesn't depend on the saved mode.

## Check balances and prices

```bash theme={null}
agent wallet status                     # holdings on every supported chain, and what the allowance covers
agent balances --chains polygon,base    # balances on the chains you name
agent price ETH                         # ETH, BTC, POL, and stablecoins need no chain
agent price <symbol-or-address> --chain base
```

`wallet status` marks holdings the agent can't spend. To cover a token or chain, add it to the allowance with `agent wallet allowance set --add <token>@<chain>`. Native coins such as ETH and POL can't be covered.

## Add funds

```bash theme={null}
agent fund
```

This opens the wallet's dashboard, where you add funds. USDC on Polygon is the simplest choice. The wallet address is the same on every chain.

Keep at least 0.1 USDC or 0.1 POL in the wallet. The CLI pays network fees from it, preferring USDC.

## Send tokens

Preview, check the recipient, then send:

```bash theme={null}
agent send-token --symbol USDC --to <address> --amount 5 --dry-run
agent send-token --symbol USDC --to <address> --amount 5 --broadcast
```

The result includes a transaction link. In session mode, sends come out of the allowance, and native coins can't be sent.

## Swap, buy, sell, or bridge

All trades go through `swap`, which routes through OMS Cross-chain. Get a quote first:

| To | Run |
| - | - |
| Buy an amount of a token | `agent swap --to POL --to-amount 10 --dry-run` |
| Buy a dollar amount | `agent swap --to WETH --amount-usd 50 --dry-run` |
| Sell part of a holding | `agent swap --from WETH --to USDC --amount 50% --dry-run` |
| Swap one token for another | `agent swap --from USDC --to USDT --amount 5 --dry-run` |
| Bridge to another chain | `agent swap --from USDC --to USDC --chain polygon --to-chain base --amount 20 --dry-run` |

The preview shows what's sold, the expected and minimum amounts received, fees, price impact, and when the quote expires. Execute the quote you reviewed with its `intentId`:

```bash theme={null}
agent swap --intent <intentId> --broadcast
agent swap status --intent <intentId>   # follow a trade that's still settling
```

The default slippage is 0.5%; change it with `--slippage`. The CLI refuses to execute a quote that costs more than 10% in fees or price impact, or that pays with a token you didn't name, until you confirm it. Buys of ETH and POL deliver WETH and WPOL.

## Act on a price

A watch checks a token's USD price and either alerts you or trades when it crosses a level:

```bash theme={null}
agent watch create --token ETH --mode alert --buy-below 2000 --sell-above 3500
agent watch create --token ETH --mode auto --buy-below 2000 --buy-amount 100
agent watch create --token BTC --mode auto --sell-above 120000 --sell-amount 50%
```

Watches run only when checked. Schedule `agent watch check` with cron or your assistant's scheduler, or run `agent watch run` to check in the foreground. Read and clear alerts with `agent alerts` and `agent alerts --ack <id>`.

Auto trades execute within the allowance without asking. A watch re-arms after the price moves 2% back. Set `--every` (5 minutes to 24 hours) and `--expires` (up to 90 days) to change how often it checks and when it ends.

## Earn yield

Yield deposits and withdrawals need owner mode. Connect with `agent wallet login --owner` on a machine you control.

```bash theme={null}
agent deposit --asset USDC --amount 100 --dry-run
agent deposit --asset USDC --amount 100 --protocol morpho --broadcast
agent withdraw --position <aToken-or-vault-address> --amount max --broadcast
```

`deposit` picks the pool with the most deposits unless you pass `--protocol aave`, `--protocol morpho`, or `--vault <address>`. `withdraw` takes an Aave aToken or ERC-4626 vault address and an amount in the underlying token, or `max`.

## Move funds back to your own wallet

To take funds out of the agent wallet, withdraw as the owner. It needs a new sign-in:

```bash theme={null}
agent wallet withdraw --to <your-address> --token USDC --amount 50 --chain polygon
```
