Skip to Content
px402Devnet
CLI

CLI overview

The px402 command, its three modes and its configuration.

px402 has three modes. There is no pairing code.

CommandsIdentityTalks to
init, address, balance, deposit, split, pay, capsA Solana key made on your machine. No px402 accountSolana through your Helius key, and the API you pay
hosted ...A revocable browser sign-in. No key on this machineThe px402 MCP connector
identity, me, provider, adminYour Turnkey sub-organization’s root API key, stored encryptedThe px402 platform API

Install it first with npm, pnpm, Yarn or Bun. px402 --help prints every command. Every command accepts --profile <name>.

Environment

VariableUsed byMeaning
PX402_NETWORKbalance, deposit, split, paydevnet. Mainnet takes no payments
PX402_HELIUS_RPC_URLthe sameYour Helius RPC URL. It contains your key, so keep it private
PX402_MAX_PRICE_BASEpayRefuse any price above this, in base units. Required
PX402_ALLOWED_ORIGINSpayComma-separated origins, one-label wildcards allowed. Unset refuses every payment
PX402_CAP_PER_REQUEST_BASE, PX402_CAP_DAILY_BASE, PX402_CAP_TOTAL_BASEpayOverride the stored caps
PX402_MAX_IN_FLIGHT_PAYMENTSpayTransfers built at once, 1 to 64. Default 4
PX402_PASSPHRASEkey commands12 characters or more. Prompted when unset
PX402_HOMEallWhere profiles live. Default ~/.px402
PX402_PROFILEprofile commandsDefault default
PX402_PLATFORM_URLprovider commandsDefault https://devnet.platform.px402.tech
PX402_TURNKEY_API_URLprovider commandsDefault https://api.turnkey.com
PX402_MCP_URLhostedDefault https://devnet.mcp.px402.tech/mcp
PX402_MCP_CLIENT_IDhostedOAuth client id for another connector

An empty value counts as unset. The CLI sends no telemetry.

Keep safe

Do not put PX402_PASSPHRASE or an RPC URL with your key into a script you commit or a log you share.

On this page