Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
Swap & Bridge Commands
Use the swap commands to perform same-chain token swaps or cross-chain bridges. When --from-chain and --to-chain differ, the CLI automatically routes through a bridge.
swap quote Command
Get a swap or bridge quote showing expected output, fees, and route.
Syntax
mm swap quote --from <token> --to <token> --amount <amount> --from-chain <chain-id> [--to-chain <chain-id>] [--to-address <address>] [--slippage <percent>]
Supported Flags
| Name | Required | Description |
|---|---|---|
--from |
Yes | Source token symbol (e.g. ETH, POL, USDC) |
--to |
Yes | Destination token symbol (e.g. USDC, USDT) |
--amount |
Yes | Human-readable amount to swap (e.g. 0.5, 100) |
--from-chain |
Yes | Source EVM chain ID (e.g. 1 for Ethereum, 137 for Polygon) |
--to-chain |
No | Destination EVM chain ID. Defaults to --from-chain for same-chain swaps |
--to-address |
No | Recipient address for bridged output tokens. Only valid for cross-chain swaps. Defaults to the signer's wallet |
--slippage |
No | Maximum slippage as a percentage, 0-100 (defaults to 0.5) |
Example
mm swap quote --from ETH --to USDC --amount 0.5 --from-chain 1
mm swap quote --from USDC --to USDT --amount 100 --from-chain 137
mm swap quote --from ETH --to USDC --amount 1 --from-chain 1 --to-chain 137
mm swap quote --from ETH --to USDC --amount 0.5 --from-chain 1 --slippage 1
mm swap quote --from ETH --to pUSD --amount 0.5 --from-chain 1 --to-chain 137 --to-address 0x742d...f2bD18
swap execute Command
Execute a swap or bridge, either by referencing a previous quote ID or by providing parameters for an automatic re-quote and execute.
Syntax
mm swap execute --quote-id <id> [--password <password>]
mm swap execute --from <token> --to <token> --amount <amount> --from-chain <chain-id> [--to-chain <chain-id>] [--to-address <address>] [--slippage <percent>] [--password <password>]
Supported Flags
| Name | Required | Description |
|---|---|---|
--quote-id |
Yes (unless re-quote args given) | Quote ID returned by mm swap quote. If omitted, provide --from, --to, --amount, and --from-chain to re-quote |
--from |
Yes (unless --quote-id) |
Source token symbol |
--to |
Yes (unless --quote-id) |
Destination token symbol |
--amount |
Yes (unless --quote-id) |
Amount to swap |
--from-chain |
Yes (unless --quote-id) |
Source EVM chain ID |
--to-chain |
No | Destination EVM chain ID. Defaults to --from-chain for same-chain swaps |
--to-address |
No | Recipient address for bridged output tokens. Only valid for cross-chain swaps. Defaults to the signer's wallet. Persisted quotes retain the recipient for --quote-id execution |
--slippage |
No | Maximum slippage as a percentage, 0-100 (defaults to 0.5) |
--password |
No | Password to unlock the BYOK mnemonic (BYOK mode only) [env: MM_PASSWORD] |
Validation Rules
- Either
--quote-idOR the full set of re-quote flags (--from,--to,--amount,--from-chain) must be provided. - When
--quote-idis given, re-quote flags are ignored.
Example
mm swap execute --quote-id <quote-id>
mm swap execute --from ETH --to USDC --amount 0.5 --from-chain 1
mm swap execute --from USDC --to USDT --amount 100 --from-chain 137 --to-chain 137 --slippage 1
swap status Command
Check the status of a previously executed swap or bridge by its quote ID.
Syntax
mm swap status --quote-id <id> [--tx-hash <hash>]
Supported Flags
| Name | Required | Description |
|---|---|---|
--quote-id |
Yes | Quote ID returned by mm swap quote |
--tx-hash |
No | Source transaction hash. Overrides the stored hash from execute |
Example
mm swap status --quote-id <quote-id>
mm swap status --quote-id <quote-id> --tx-hash 0xabc...123
Notes
- If the chain is not mentioned by the user, ask for the chain.
- Use
mm chains listto discover supported chain IDs. - Same-chain swap: omit
--to-chain(it defaults to--from-chain). - Cross-chain bridge: set
--to-chainto a different chain than--from-chain. The CLI automatically routes through a bridge. - The typical flow is:
mm swap quoteto preview, thenmm swap execute --quote-id <id>to submit. - You can skip the quote step by passing all swap parameters directly to
mm swap execute. - Use
mm swap status --quote-id <id>to track progress after execution. - If the user asks to "bridge" tokens, use the
swapcommands with different--from-chainand--to-chainvalues. - After execution, track swap progress with
mm swap status --quote-id <id>.