Skip to main content

CLI Commands

The full surface of the axon CLI. Run axon --help for the live help; run axon <cmd> --help for per-command details.

Lifecycle

CommandDescription
axonDefault action — starts the local daemon, opens dashboard, locks keystore (dashboard drives unlock)
axon startUnlock via env passphrase + start daemon in foreground
axon --liveStart in live mode (real money)
axon --demoStart in demo mode (default)
axon --host <host>Bind to a non-default host (requires --i-understand-network-exposure)
axon statusPrint daemon status + wallet address (queries running daemon)
axon doctorCheck keystore, config, RPC, venues, agent runtimes. Pass --live to error on missing live config.

Onboarding

CommandDescription
axon initInteractive wizard — create keystore + recovery phrase
axon init --guidedWizard + interactive RPC / Hyperliquid / backend config
axon import --mnemonic "<24-word>"Recover keystore from BIP-39 phrase
axon import --private-key <hex>Recover from raw private key
axon import --from-backup <file>Restore from an encrypted backup file
axon addressPrint owner EOA + trading address
axon tokenPrint env-var lines (AXON_URL, AXON_TOKEN) for agent runtimes

Agent integration

CommandDescription
axon installAuto-configure MCP server in every detected runtime
axon install <runtime>Target a specific runtime (claude-code, cursor, cline, ...)
axon install --printDry-run: show what would be written
axon install --verifyVerify existing configs (catch stale paths)
axon mcpRun the MCP server over stdio (called by your agent runtime)
axon mcp --list-toolsPrint the tool schema as JSON and exit
axon init-agent [dir]Scaffold a runnable starter agent (JavaScript, zero config)
axon skills installInstall the Axon SKILL.md into every detected agent runtime

Trading + lifecycle

CommandDescription
axon depositOpen LI.FI / Jumper to bridge USDC to your Arbitrum owner EOA
axon hl checkHyperliquid preflight — verify owner funded, builder approved, agent key healthy
axon hl deposit --amount <usd>Bridge USDC into HL trading account via Bridge2
axon hl spot-to-perp --amount <usd>Move USDC HL spot ↔ perp
axon hl revoke-agentForget the persisted HL agent key (forces re-approval next trade)
axon approve-builderSign Hyperliquid approveBuilderFee with the owner EOA (one-time setup)
axon kill-switch onArm the kill switch (halts trading)
axon kill-switch offDisarm the kill switch
axon settleTrigger one settlement cycle immediately
axon dashboardOpen the dashboard in your browser
axon invitePrint your shareable invite/referrer code

Strategies + marketplace

CommandDescription
axon strategy init [dir]Scaffold a new strategy project (TypeScript)
axon strategy listList installed strategies on the running daemon
axon strategy install <id>Install a strategy on the running daemon
axon strategy uninstall <id>Uninstall a strategy
axon strategy assign <id> --wallet <id>Bind a wallet to a strategy
axon strategy backtest <manifest>Replay a manifest against historical candles
axon catalog listList every strategy in the catalog (bundled + cached)
axon catalog refreshForce a catalog refresh now

Audit log

CommandDescription
axon audit verifyRecompute the hash chain and report tampering
axon audit reset --confirmArchive the audit log and start a fresh chain
axon audit anchorsList recent local settlement markers
axon audit rebuild-chain --confirmRecover from a chain break (concurrent writers)
axon audit prune --kind <name> --older-than <duration> --confirmDrop spam rows of a given kind

Telemetry + system

CommandDescription
axon telemetry statusPrint current anonymous-analytics consent state
axon telemetry onEnable anonymous usage analytics
axon telemetry offDisable anonymous usage analytics
axon tutorialFriendly in-terminal walkthrough

Environment variables

VariableDefaultWhat it does
AXON_DATA_DIR~/.axonWhere the keystore, audit DB, configs live
AXON_PORT47890Daemon HTTP port
AXON_HOST127.0.0.1Daemon bind host (non-localhost requires escape hatch)
AXON_ALLOW_NETWORK_EXPOSUREunsetSet to 1 to allow non-localhost binding
AXON_TELEMETRYunsetSet to 0 to force-disable analytics
AXON_CHAIN_ID42161Chain ID for live/testnet mode
AXON_RPC_URLArbitrum publicRPC endpoint
AXON_HL_URLhttps://api.hyperliquid.xyzHyperliquid API base
AXON_HL_BUILDER_ADDRESS0x0...Platform builder address for HL builder fee
AXON_HL_BUILDER_FEE_TENTHS_BPS30Builder fee in tenths of bps (30 = 3 bps; max 100 = 10 bps)
AGENTTRADE_PASSPHRASEunsetLegacy: pre-set the keystore unlock passphrase at boot

The AGENTTRADE_* prefix is the legacy compatibility prefix — all canonical env vars use AXON_*.