SDK / Set up
Command line
Try Maxy from a terminal. npx maxy asks whether you want a menu or a command line. Each command also runs once from your shell, with --json for scripts. Install the SDK first (Install), and put npx in front of each command below. Outside a project with the SDK installed, run npx -p https://maxy.co/sdk/maxy-labs-sdk-latest.tgz maxy: a bare npx maxy there would fetch an unrelated npm package of that name.
| Command | Does |
|---|---|
maxy doctor | Checks your key, clock and connection |
maxy price 20 usdc base | Today's price, nothing reserved |
maxy swap 20 usdc base to btc | Buys BTC in one line |
maxy new evm | Creates a wallet on this computer |
maxy ls orders | That wallet's orders |
maxy login | Signs an EVM wallet in |
maxy sandbox key | Gets a test key, no sign-up: export MAXY_API_KEY=$(npx maxy sandbox key) |
maxy sandbox advance <id> --to completed | Moves a sandbox order on |
maxy webhooks listen --forward-to <url> | Real signed events on your laptop |
With a test key it shows [SANDBOX] on every run. maxy help lists every command. Every one is also in the integration guide PDF.