@bankr/cli
v0.3.1
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
A Bankr Club subscription or LLM credits (Max Mode) is required to use the agent. There is no free tier.
# Authenticate with your API key
bankr login
# Send a prompt
bankr agent "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 agent "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 agent --continue "and what about SOL?"
bankr agent -c "compare them"
# Continue a specific thread
bankr agent --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 agent status job_ABC123DEF456
# Cancel a running job
bankr agent cancel job_ABC123DEF456LLM Gateway
Launch Claude Code / OpenCode routed through the Bankr gateway:
# Claude Code (auto-translates dotted model IDs to the Anthropic wire format)
bankr llm claude --model claude-opus-4-7
# Or use dotted form — bankr llm claude rewrites it to claude-opus-4-7
bankr llm claude --model claude-opus-4.7
# OpenCode (use the bankr/ prefix with the gateway-canonical dotted form)
bankr llm opencode -m bankr/claude-opus-4.7Claude Code model format: Claude Code's --model flag expects
Anthropic-style dashed IDs (claude-opus-4-7, claude-sonnet-4-6,
claude-haiku-4-5). If you pass the gateway-canonical dotted form
(claude-opus-4.7), Claude Code silently falls back to its default —
the flag appears honored but the real request is a different model.
bankr llm claude translates dotted → dashed for you. If you use older
versions of the CLI (or invoke claude directly via ANTHROPIC_BASE_URL),
pass the dashed form explicitly.
Configuration
# 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
