Skip to main content
Pay from the CLI, from code, or give an AI agent a wallet over MCP. The CLI, code and local MCP wallets are self-custody; FTP’s facilitator relays each payment and pays the network fee.

CLI

Creating a wallet accepts the Terms of Service. --max caps one payment in CC (in the token’s unit with --asset) and --pay-to <party> pins the payee. Without them pay pays whatever the 402 asks. If a payment was signed and the request does not end in a 2xx, pay exits 2: the payment may have settled. Check balance before paying again. Exit 1 means nothing was signed.

Code

It works like fetch, POST bodies included. expectedPayTo pins the payee; maxPaymentValueByInstrument caps a token.

MCP

Hosted. Connect https://pay.ftptech.xyz/mcp as a custom connector in Claude, ChatGPT (developer mode) or Perplexity and sign in with a passkey. FTP holds the wallet for you; limits default to 5 CC per payment and 20 CC per day. Steps: ftptech.xyz/mcp. Local, self-custody:
The flags are the spend policy and the agent cannot change them. Without --allow-domains every payment is refused. Tools: get_address, get_balance, request_funding, claim, pay, withdraw, swap.

Tokens

Paying in a token needs your consent:
To receive a token, create its preapproval once: canton-agent-wallet preapproval --admin <registrar> --id USDCx. Registrars are in MainNet values.

Commands

All commands and options: agent-wallet README.

Good to know

  • The key is the money. It lives in ~/.canton-agent/wallet.json. Back it up with export.
  • A wallet created through FTP’s relay with 2.12 or later has three hosts (FTP, Nodejumper, Qasara), and any two confirm. If one is lost, see Recover a wallet.
  • Do not retry a payment in a loop. After a timeout or error, check balance first: the payment may have gone through.
  • Behind a proxy, set HTTPS_PROXY for the CLI.