@bankr/cli
v0.1.3
Published
Official CLI for the Bankr AI agent platform
Maintainers
Readme
@bankr/cli
Official CLI for the Bankr AI agent platform. Interact with the Bankr AI agent directly from your terminal.
Installation
npm install -g @bankr/cliQuick Start
# Authenticate with your API key
bankr login
# Send a prompt
bankr prompt "what's trending on base?"
# Or use the shorthand (no subcommand)
bankr "what is the price of ETH?"Commands
Authentication
# Log in (interactive menu)
bankr login
# Log in with email (interactive — prompts for OTP and key options)
bankr login email
# Log in with email (headless two-step, for scripts and agents):
bankr login email [email protected] # Step 1: send OTP
bankr login email [email protected] --code 123456 \ # Step 2: verify + complete
--accept-terms --key-name "My Key" --read-write --llm
# Log in directly with an API key (non-interactive)
bankr login --api-key bk_YOUR_KEY
# Log in with a separate LLM gateway key
bankr login --api-key bk_YOUR_KEY --llm-key YOUR_LLM_KEY
# Print the dashboard URL without opening a browser (non-interactive)
bankr login --url
# Log in with a custom API URL
bankr login --api-url https://api-staging.bankr.bot
# Show current auth info and validate connection
bankr whoami
# Clear stored credentials
bankr logoutPrompts
# Send a prompt and wait for the response
bankr prompt "swap 10 USDC to ETH on base"
# Shorthand — just pass the prompt directly
bankr "what are the top holders of VIRTUAL?"
# Continue the most recent conversation
bankr prompt --continue "and what about SOL?"
bankr prompt -c "compare them"
# Continue a specific thread
bankr prompt --thread thr_ABC123 "tell me more"Token Launch
# Interactive wizard — guides you through name, image, tweet, and fee recipient
bankr launch
# Non-interactive with all options
bankr launch --name "TESTCOIN" --image "https://example.com/img.png" \
--tweet "https://x.com/user/status/123" --fee "@vitalik" --fee-type x -y
# Quick launch (name only, skip confirmation)
bankr launch --name "TESTCOIN" -y
# Fee recipient types: x, farcaster, ens, wallet
bankr launch --name "TESTCOIN" --fee "vitalik.eth" --fee-type ens -y
bankr launch --name "TESTCOIN" --fee "0x1234..." --fee-type wallet -yJob Management
# Check the status of a job
bankr status job_ABC123DEF456
# Cancel a running job
bankr cancel job_ABC123DEF456Configuration
# View all config
bankr config get
# Get a specific value
bankr config get apiUrl
# Set a value
bankr config set apiUrl https://api-staging.bankr.bot
# Set a separate LLM gateway key
bankr config set llmKey YOUR_LLM_KEYConfiguration
Credentials are stored in ~/.bankr/config.json.
Environment variables override stored values:
| Variable | Description |
|----------|-------------|
| BANKR_API_KEY | API key (overrides stored key) |
| BANKR_API_URL | API URL (default: https://api.bankr.bot) |
| BANKR_LLM_KEY | LLM gateway key (falls back to BANKR_API_KEY if not set) |
| BANKR_LLM_URL | LLM gateway URL (default: https://llm.bankr.bot) |
API Key
Generate an API key at bankr.bot/api. Keys start with bk_ and require Agent API access to be enabled.
License
MIT
