--json flag for machine-readable output and --input-json <json> for scripting.
Make sure you’ve completed the Install and Set Up the Bags CLI guide before using these commands.
setup
First-run wizard that configures RPC, imports your wallet, and authenticates in one step using eitherwallet (default) or manual auth mode.
auth
Agent authentication commands.auth login
Authenticate and store credentials locally. Supportswallet mode (challenge/signature flow) and manual mode (validate provided API key via sdk.auth.me()).
manual mode requires --api-key (or --input-json with apiKey) and exits immediately if missing.
auth status
Display the current authentication state includingauthMode and the masked API key.
auth logout
Remove stored credentials. Optionally delete the local keypair too.wallet
Wallet management commands.wallet generate
Generate and save a new Solana keypair to~/.config/bags/keypair.json.
wallet import
Import a keypair from a base58 private key or a JSON secret key file.wallet show
Show the wallet’s public key and SOL balance.wallet balance
Show SOL balance, or a specific SPL token balance.settings
CLI configuration commands.settings show
Print the current CLI settings (RPC URL, commitment, output mode).settings set
Update one or more CLI settings.trade
Quote and execute token swaps.trade quote
Get a swap quote without executing a transaction.trade swap
Get a quote, then sign and send the swap transaction.trade quote, plus:
launch
Token launch flows.launch create
Create and launch a new token. Handles metadata upload, fee share configuration, lookup table creation, Jito bundles, and the launch transaction automatically.
Fee claimers JSON format:
Fee claimers can reference social usernames or direct wallet addresses:
