foxd-cli
v0.3.1
Published
Multi-chain memecoin trading from your terminal — Solana sniper bot, Pump.fun launches, honeypot checks, copy trading and MEV-protected swaps across 6 chains. Open CLI alternative to GMGN, Banana Gun and Photon.
Maintainers
Keywords
Readme
foxd-cli — Solana sniper & multi-chain memecoin trading from your terminal
FoxD as a command line tool. Snipe new Pump.fun, BONK.fun, Raydium LaunchLab, four.meme and Clanker launches, run honeypot and rug checks, copy profitable wallets, place take-profit / stop-loss / trailing stops, and launch tokens across several launchpads at once — across Solana, Ethereum, BNB Chain, Base, Arbitrum and HyperEVM.
An open CLI alternative to GMGN, Banana Gun, Photon and Trojan: scriptable,
--json on everything, no Telegram bot in the loop.
npm i -g foxd-cli
foxd login --all # one command, every scope
foxd sniper feed --chain solana --stages fresh --limit 20
foxd analytics security --chain solana --address <mint>
foxd trade quote --chain solana --tokenIn So111… --tokenOut <mint> \
--amountIn 50000000 --side buyfoxd login uses the OAuth device flow — sign in with Google, X, Telegram,
email or a wallet; --all grants every scope in the same command. foxd whoami
shows your scopes, tier and remaining spend allowance.
Every command is generated from
foxd-contract — the same
declaration behind the REST API, the MCP server and the SDK — so the CLI covers
the whole platform by construction and its help text cannot go stale.
Shape
foxd <module> <method> [--flag value]foxd tools # every module and tool
foxd tools market # one module
foxd help market.trending # flags, scopes, cost and the REST routeComposing
--json on anything gives raw JSON, so it drops straight into a pipeline:
foxd market trending --chain solana --json | jq -r '.tokens[] | "\(.symbol) \(.priceUsd)"'
foxd sniper feed --stages fresh --limit 20 --json | jq '.fresh[] | select(.score > 70)'Exit status is 0 on success and 1 on any failure, so set -e and CI do the right
thing. Human-readable tables shorten long values for display — use --json when
you need exact addresses.
Signing in
foxd login uses the OAuth device flow, the same pattern as gh auth login:
sign in with Google, X, Telegram, email or a wallet. The key is written to your
config file with 0600 permissions. FOXD_API_KEY always wins, which is what
you want in CI.
foxd login --all # grant every scope, for a key only you will hold
FOXD_API_KEY=fxk_live_… foxd account usage
foxd market chains --key fxk_live_… # one-off overrideTrading from the command line
foxd trade quote --chain base --tokenIn 0x0000000000000000000000000000000000000000 \
--tokenOut 0x532f… --amountIn 10000000000000000 --side buy
foxd trade execute --chain base --tokenIn 0x0000000000000000000000000000000000000000 \
--tokenOut 0x532f… --amountIn 10000000000000000 --side buyAmounts are always base units as a string — wei on EVM, lamports on Solana.
Execution is bounded by the scopes on your key, the wallet it is bound to, and a
rolling 24-hour USD spend cap; foxd whoami shows all three.
Links
- Documentation: https://foxd.xyz/docs · CLI guide
- REST API: https://foxd.xyz/api/v1
- SDK:
foxd-sdk· MCP:foxd-mcp
MIT
