
This is a natural language interface for crypto trading and DeFi operations across Base, Ethereum, Solana, and six other chains. You can check balances with PnL, swap tokens, manage NFTs, use leverage on Hyperliquid or Avantis, bet on Polymarket, or deploy tokens by just asking. It handles both simple operations through a wallet API and complex multi-step flows through an agent API that interprets prompts. The CLI setup walks you through email verification and generates API keys with granular permissions for wallet access, agent capabilities, and even an LLM gateway. If you're building trading bots or want to execute on-chain operations without writing chain-specific code, this bridges the gap between English and transactions.
npx -y skills add bankrbot/openclaw-skills --skill bankr --agent claude-codeInstalls into .claude/skills of the current project.
Execute crypto trading and DeFi operations using natural language. Two integration options:
@bankr/cli for a batteries-included terminal experiencehttps://api.bankr.bot directly from any language or toolBoth use the same API key. The API has two layers:
/wallet/*) — Direct, synchronous endpoints for portfolio, transfers, signing, and transaction submission/agent/*) — AI-powered async prompt endpoint for natural language operationsBefore using either option, you need a Bankr API key. Two ways to get one:
Option A: Headless email login (recommended for agents)
Two-step flow — send OTP, then verify and complete setup. See "First-Time Setup" below for the full guided flow with user preference prompts.
# Step 1 — send OTP to email
bankr login email user@example.com
# Step 2 — verify OTP and generate API key (options based on user preferences)
bankr login email user@example.com --code 123456 --accept-terms --key-name "My Agent" --read-write
This creates a wallet, accepts terms, and generates an API key — no browser needed. Before running step 2, ask the user which APIs they need (wallet, agent, both via --read-write, LLM gateway) and their preferred key name.
Option B: Bankr Terminal
bk_...)Both options automatically provision EVM wallets (Base, Ethereum, Polygon, Unichain) and a Solana wallet — no manual wallet setup needed.
bun install -g @bankr/cli
Or with npm:
npm install -g @bankr/cli
When the user asks to log in with an email, walk them through this flow:
Step 1 — Send verification code
bankr login email <user-email>
Step 2 — Ask the user for the OTP code and all preferences in a single message. This avoids unnecessary back-and-forth. Ask for:
--accept-terms. You MUST ask for ToS acceptance and do not pass --accept-terms unless the user has explicitly confirmed.--no-wallet-api to disable--agent-api) — AI-powered prompts and natural language operations--no-token-launch to disable--read-write to allow transactions (without it, enabled APIs are read-only)--llm) — multi-model API at llm.bankr.bot (currently limited to beta testers). Skip if user doesn't need it.--key-name) — a display name for the API key (e.g. "My Agent", "Trading Bot")Step 3 — Construct and run the step 2 command with the user's choices. Do NOT execute if the user has not explicitly accepted the Terms of Service — ask again if needed:
# Full access: wallet + agent with write + LLM
bankr login email <user-email> --code <otp> --accept-terms --key-name "My Agent" --agent-api --read-write --llm
# Agent with write access (AI can execute transactions)
bankr login email <user-email> --code <otp> --accept-terms --key-name "Trading Agent" --agent-api --read-write
# Default key (wallet + token launch, read-only)
bankr login email <user-email> --code <otp> --accept-terms --key-name "My Key"
# Agent read-only (research, prices, balances — no transactions)
bankr login email <user-email> --code <otp> --accept-terms --key-name "Research Agent" --agent-api
# LLM-only (no wallet, no token launch)
bankr login email <user-email> --code <otp> --accept-terms --key-name "LLM Client" --no-wallet-api --no-token-launch --llm
| Option | Description |
|---|---|
--code <otp> | OTP code received via email (step 2) |
--accept-terms | Accept Terms of Service without prompting (required for new users) |
--key-name <name> | Display name for the API key (e.g. "My Agent"). Prompted if omitted |
--no-wallet-api | Disable Wallet API (enabled by default) |
--agent-api | Enable Agent API (AI prompts, natural language operations) |
--read-write | Disable read-only mode (allow transactions). Without this, enabled APIs are read-only |
--no-token-launch | Disable Token Launch API (enabled by default) |
--llm | Enable LLM gateway access (multi-model API at llm.bankr.bot). Currently limited to beta testers |
--allowed-ips <ips> | Comma-separated IP/CIDR allowlist for the API key (e.g., 1.2.3.4,10.0.0.0/24) |
--allowed-recipients <addresses> | Comma-separated EVM/Solana addresses the key can send to (auto-classified by 0x prefix) |
New key defaults (when no flags are passed):
| Flag | Default | To change |
|---|---|---|
walletApiEnabled | Enabled | --no-wallet-api |
agentApiEnabled | Disabled | --agent-api |
tokenLaunchApiEnabled | Enabled | --no-token-launch |
llmGatewayEnabled | Disabled | --llm |
readOnly | Enabled (read-only) | --read-write |
Any option not provided on the command line will be prompted interactively by the CLI, so you can mix headless and interactive as needed.
If the user already has an API key:
bankr login --api-key bk_YOUR_KEY_HERE
If they need to create one at the Bankr Terminal:
bankr login --url — prints the terminal URLbk_... keybankr login --api-key bk_THE_KEYIf your LLM gateway key differs from your API key, pass --llm-key during login or run bankr config set llmKey YOUR_LLM_KEY afterward. When not set, the API key is used for both. See references/llm-gateway.md for full details.
bankr whoami
bankr wallet portfolio
bankr agent prompt "What is my balance?"
No CLI installation required — call the API directly with curl, fetch, or any HTTP client.
All requests require an X-API-Key header:
curl -X POST "https://api.bankr.bot/agent/prompt" \
-H "X-API-Key: bk_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "What is my ETH balance?"}'
# 1. Submit a prompt — returns a job ID
JOB=$(curl -s -X POST "https://api.bankr.bot/agent/prompt" \
-H "X-API-Key: $BANKR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "What is my ETH balance?"}')
JOB_ID=$(echo "$JOB" | jq -r '.jobId')
# 2. Poll until terminal status
while true; do
RESULT=$(curl -s "https://api.bankr.bot/agent/job/$JOB_ID" \
-H "X-API-Key: $BANKR_API_KEY")
STATUS=$(echo "$RESULT" | jq -r '.status')
[ "$STATUS" = "completed" ] || [ "$STATUS" = "failed" ] || [ "$STATUS" = "cancelled" ] && break
sleep 2
done
# 3. Read the response
echo "$RESULT" | jq -r '.response'
Every prompt response includes a threadId. Pass it back to continue the conversation:
# Start — the response includes a threadId
curl -X POST "https://api.bankr.bot/agent/prompt" \
-H "X-API-Key: $BANKR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "What is the price of ETH?"}'
# → {"jobId": "job_abc", "threadId": "thr_XYZ", ...}
# Continue — pass threadId to maintain context
curl -X POST "https://api.bankr.bot/agent/prompt" \
-H "X-API-Key: $BANKR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "And what about SOL?", "threadId": "thr_XYZ"}'
Omit threadId to start a new conversation. CLI equivalent: bankr agent prompt --continue (reuses last thread) or bankr agent prompt --thread <id>.
/wallet/*) — Direct endpoints (synchronous)| Endpoint | Method | Auth | Description |
|---|---|---|---|
/wallet/me | GET | Read | Wallet info (address, chains) |
/wallet/portfolio | GET | Read | Portfolio balances, supports ?include=pnl,nfts for progressive loading |
/wallet/swap-quote | POST | Read | Quote a swap (same-chain EVM, cross-chain, or Solana) without executing |
/wallet/swap | POST | Write | Execute a swap — same-chain EVM, cross-chain, or any Solana leg (output returns to your wallet) |
/wallet/transfer | POST | Write | Transfer tokens (multi-chain, supports allowedRecipients enforcement) |
/wallet/sign | POST | Write | Sign messages, typed data, or transactions |
/wallet/submit | POST | Write | Submit raw transactions to chain |
/wallet/me, /wallet/portfolio) — any valid API key with a wallet/wallet/swap-quote) — a quote is a read, so read-only API keys are allowed; API-key callers still need walletApiEnabled/wallet/swap, /wallet/transfer, /wallet/sign, /wallet/submit) — require walletApiEnabled and reject read-only keys. /wallet/transfer also enforces allowedRecipients; /wallet/swap does not (output returns to your own wallet)| Endpoint | Method | Description |
|---|---|---|
/addresses/resolve?value=<recipient>&type=<address|ens|twitter|farcaster> | GET | Resolve a recipient (0x address, ENS-style name .eth/.base.eth/.cb.id, or social handle) to a 0x address. Used by bankr wallet transfer --to to support ENS input. |
/users/search?... | GET | Search Bankr users by Twitter or Farcaster username. |
The legacy aliases /public/resolve-recipient and /public/search-users have been removed — use the structured /addresses/resolve and /users/search endpoints instead.
/agent/*) — AI-powered endpoints (async)| Endpoint | Method | Description |
|---|---|---|
/agent/prompt | POST | Submit a prompt (async, returns job ID) |
/agent/job/{jobId} | GET | Check job status and results |
/agent/job/{jobId}/cancel | POST | Cancel a running job |
| Endpoint | Method | Description |
|---|---|---|
/token-launches | GET | List recent token launches (cached, public) |
The following /agent/* endpoints have been removed. Use the /wallet/* equivalents:
| Removed | Use Instead |
|---|---|
GET /agent/me | GET /wallet/me |
GET /agent/balances | GET /wallet/portfolio |
POST /agent/sign | POST /wallet/sign |
POST /agent/submit | POST /wallet/submit |
For full API details (request/response schemas, job states, rich data, polling strategy), see:
Reference: references/api-workflow.md | references/sign-submit-api.md
@bankr/cli 0.2+ organizes commands into three namespaces: wallet, agent, and tokens. Old flat commands (balances, prompt, status, etc.) still work as deprecated aliases.
bankr wallet — Wallet Operations| Command | Description |
|---|---|
bankr wallet | Show wallet info (default: whoami) |
bankr wallet portfolio | Portfolio balances across all chains (hides tokens under $1 by default) |
bankr wallet portfolio --pnl | Include profit/loss data |
bankr wallet portfolio --nfts | Include NFT holdings |
bankr wallet portfolio --all | Include both PnL and NFTs |
bankr wallet portfolio --chain <chains> | Filter by chain(s): base, polygon, mainnet, unichain, arbitrum, bnb, worldchain, robinhood, solana (comma-separated) |
bankr wallet portfolio --json | Output raw JSON |
bankr wallet transfer --to <recipient> --token <symbol> --amount <amount> | Transfer tokens; --to accepts a 0x address or ENS-style name (.eth, .base.eth, .cb.id), --token resolves symbols to contracts. Social handles work via the AI agent only. |
bankr wallet transfer --to vitalik.eth --token USDC --amount 50 --chain base | ENS recipient with explicit chain |
bankr wallet swap --from <symbol/addr> --to <symbol/addr> --amount <amount> | Swap tokens on a single EVM chain (same-chain). Resolves symbols to contracts; --from/--to/--amount required; --chain defaults to base. Solana is not supported (use the Wallet API or agent for cross-chain and Solana swaps). |
bankr wallet swap --from ETH --to USDC --amount 0.1 --chain base --quote-only | Print the swap quote (you pay / you receive / min received) without executing |
bankr wallet sign | Sign messages/typed data/transactions |
bankr wallet submit | Submit raw transactions |
bankr agent — AI Agent Operations| Command | Description |
|---|---|
bankr agent prompt <text> | Send a prompt to the Bankr AI agent |
bankr agent prompt <text> --model <id> | Max Mode — run this prompt on a specific gateway model, billed from LLM credits (-m also works) |
bankr agent prompt --continue <text> | Continue the most recent conversation thread |
bankr agent prompt --thread <id> <text> | Continue a specific conversation thread |
bankr agent status <jobId> | Check the status of a running job |
bankr agent cancel <jobId> | Cancel a running job |
bankr agent profile | View/manage agent profile |
bankr agent skills | Show all Bankr AI agent skills with examples |
bankr tokens — Token Discovery| Command | Description |
|---|---|
bankr tokens search <query> | Search for tokens by name or symbol |
bankr tokens info <symbol-or-address> | Get detailed token information |
bankr files — File Storage| Command | Description |
|---|---|
bankr files ls [--folder <path>] | List files, optionally scoped to a folder |
bankr files upload <file> [--folder <path>] | Upload a local file |
bankr files download <fileId> | Get a download URL |
bankr files cat <fileId> | Print file contents to stdout (or save locally) |
bankr files edit <fileId> --find <text> --replace <text> | Find/replace in place (--all for every occurrence) |
bankr files write <fileId> [--from <path>] | Overwrite text content from a local file or stdin |
bankr files search <query> [--folder <path>] [--limit <n>] | Search by filename, extension, or description |
bankr files mkdir <name> [--parent <path>] | Create a folder |
bankr files rm <fileId> | Delete a file (soft — recoverable for 24h) |
bankr files storage | Show storage usage and quota |
bankr club — Bankr Club MembershipManage Bankr Club subscription from the CLI (status, signup, cancel). Pay with USDC (default), BNKR, ETH, or any Base ERC-20 — non-USDC/BNKR tokens are swapped to USDC at checkout.
| Command | Description |
|---|---|
bankr club | Show membership status (default; same as status) |
bankr club status | Show plan, renewal date, and daily message count |
bankr club signup | Subscribe (monthly, USDC default) |
bankr club signup --yearly | Subscribe yearly ($198 — saves ~$42/year) |
bankr club signup --token <symbol-or-addr> | Pay with USDC (default), BNKR, ETH, or any 0x-prefixed Base ERC-20 |
bankr club signup -y | Skip the confirmation prompt |
bankr club cancel | Cancel subscription (access continues until period ends) |
Pricing is $20/mo or $198/yr USD-equivalent. Actual on-chain amount depends on the chosen token's price at quote time. The --token flag was added in CLI 0.3.4; older versions only support USDC.
What Club actually gates (everything else works without it):
| Perk | Standard | Bankr Club |
|---|---|---|
| Swap fee | 0.65% | 0.15% |
| Terminal messages | 5/day | Unlimited |
| Agent API requests | 100/day | 1,000/day |
| Concurrent recurring agent-command automations | — | Up to 20 |
| Gas-sponsored token deploys | 3/day | 10/day |
| Token deploys | 50/day | 100/day |
| File storage | 1 GB (10 MB/file) | 10 GB (50 MB/file) |
| Monthly file downloads | 10 GB | 100 GB |
| Model routing | Standard | Top-tier models |
| Browser sessions, advanced research (Bankr score, PnL & volume analytics, web search, social sentiment) | — | Included |
Max Mode is the alternative to a subscription — pay per request from LLM credits for unlimited terminal messages, and it works with external/connected wallets, which Club checkout does not (Club requires an embedded Bankr wallet). On the Agent API, non-Club Max Mode is still capped at 100 requests/day. Holding a legacy Bankr Club NFT does not grant membership; it was a commemorative token for the first 1,000 subscribers.
Monthly → yearly upgrade: active monthly members can upgrade to yearly by asking the agent (e.g. "upgrade me to yearly"). The full yearly price is charged and the new 365-day term stacks on top of any remaining monthly time, so no paid time is lost. Yearly → monthly downgrades and yearly resubscribes are not supported.
| Command | Description |
|---|---|
bankr login | Authenticate with the Bankr API (interactive menu) |
bankr login email <address> | Send OTP to email (headless step 1) |
bankr login email <address> --code <otp> [options] | Verify OTP and complete setup (headless step 2) |
bankr login --api-key <key> | Login with an existing API key directly |
bankr login --api-key <key> --llm-key <key> | Login with separate LLM gateway key |
bankr login --url | Print Bankr Terminal URL for API key generation |
bankr logout | Clear stored credentials |
bankr whoami | Show current authentication info |
bankr config get [key] | Get config value(s) |
bankr config set <key> <value> | Set a config value |
bankr --config <path> <command> | Use a custom config file path |
Valid config keys: apiKey, apiUrl, llmKey, llmUrl
Default config location: ~/.bankr/config.json. Override with --config or BANKR_CONFIG env var.
For headless environments — CI pipelines, Docker containers, cron jobs — pass the --not-interactive (alias --ni) global flag, or set BANKR_NOT_INTERACTIVE=1. Both forms work before or after the subcommand.
The flag implies --yes on every confirmation prompt and fails fast (exit 1, clear error) when a command would otherwise hang on a required prompt. Use it whenever the user asks for an automated/scripted invocation.
| Command | Required headless flag(s) when --ni is set |
|---|---|
bankr login | --api-key <key>, login siwe --private-key <key>, or login email <addr> [--code <otp>] |
bankr launch | --name <name> (other fields default to empty) |
bankr fees claim-wallet | --all (plus --private-key or BANKR_PRIVATE_KEY) |
bankr agent | a prompt argument or piped stdin |
Read-only commands (whoami, wallet portfolio, tokens, agent status, etc.) don't prompt at all — --ni is harmless but redundant.
Examples:
# Cron — claim creator fees nightly
BANKR_PRIVATE_KEY=0x... bankr --ni fees claim-wallet --all
# CI — programmatic token launch (simulate, no broadcast)
bankr --ni launch --name MyToken --symbol MTK --simulate
# Pipeline — agent prompt from stdin
echo "summarize today's trades" | bankr --ni agent prompt
Old flat commands still work but prefer the namespaced versions:
| Deprecated | Use Instead |
|---|---|
bankr prompt | bankr agent |
bankr status | bankr agent status |
bankr cancel | bankr agent cancel |
bankr balances | bankr wallet portfolio |
bankr profile | bankr agent profile |
bankr sign | bankr wallet sign |
bankr submit | bankr wallet submit |
bankr skills | bankr agent skills |
| 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) |
BANKR_NOT_INTERACTIVE | Set to 1 to enable non-interactive mode globally (equivalent to passing --ni / --not-interactive on every invocation) |
Environment variables override config file values. Config file values override defaults.
| Command | Description |
|---|---|
bankr llm models | List available LLM models |
bankr llm credits | Check credit balance |
bankr llm credits add <amount> [--token <addr>] [-y] | Top up LLM credits from wallet |
bankr llm credits auto [--enable/--disable] [--amount] [--threshold] [--tokens] | View or configure auto top-up |
bankr llm setup openclaw [--install] | Generate or install OpenClaw config |
bankr llm setup opencode [--install] | Generate or install OpenCode config |
bankr llm setup claude | Show Claude Code environment setup |
bankr llm setup cursor | Show Cursor IDE setup instructions |
bankr llm claude [args...] | Launch Claude Code via the Bankr LLM Gateway |
bankr claude [args...] | Top-level alias for bankr llm claude |
bankr llm opencode [args...] | Launch OpenCode via the Bankr LLM Gateway |
On the launcher commands (bankr claude, bankr llm claude, bankr llm opencode) all arguments — including -h / --help — are forwarded to the spawned tool, and a help run doesn't require authentication. Use bankr --help / bankr llm --help for the Bankr CLI's own help. Named commands also take precedence over the prompt fallthrough, so bankr claude ... launches Claude Code instead of prompting the agent; use bankr agent "..." when a prompt starts with a command name.
The bankr claude alias and the --help passthrough require @bankr/cli 0.3.18+; on older versions use bankr llm claude.
For straightforward requests that complete quickly:
bankr agent prompt "What is my ETH balance?"
bankr agent prompt "What's the price of Bitcoin?"
The CLI handles the full submit-poll-complete workflow automatically. You can also use the shorthand — any unrecognized command is treated as a prompt:
bankr What is the price of ETH?
For prompts containing $ or special characters that the shell would expand:
# Interactive mode — no shell expansion issues
bankr agent prompt
# Then type: Buy $50 of ETH on Base
# Or pipe input
echo 'Buy $50 of ETH on Base' | bankr agent prompt
Continue a multi-turn conversation with the agent:
# First prompt — starts a new thread automatically
bankr agent prompt "What is the price of ETH?"
# → Thread: thr_ABC123
# Continue the conversation (agent remembers the ETH context)
bankr agent prompt --continue "And what about BTC?"
bankr agent prompt -c "Compare them"
# Resume any thread by ID
bankr agent prompt --thread thr_ABC123 "Show me ETH chart"
Thread IDs are automatically saved to config after each prompt. The --continue / -c flag reuses the last thread.
For advanced use or long-running operations:
# Submit and get job ID
bankr agent prompt "Buy $100 of ETH"
# → Job submitted: job_abc123
# Check status of a specific job
bankr agent status job_abc123
# Cancel if needed
bankr agent cancel job_abc123
The Bankr LLM Gateway is a unified API for Claude, Gemini, GPT, Grok, DeepSeek, Qwen, Kimi, MiniMax, GLM, and other models — multi-provider access, cost tracking, automatic failover, and SDK compatibility through a single endpoint.
Base URL: https://llm.bankr.bot | Dashboard: bankr.bot/llm | API Keys: bankr.bot/api-keys
llmKey if configured, otherwise falls back to your API keybankr llm credits add 25 or at bankr.bot/llm?tab=credits before making any LLM calls, or you will get a 402 errorbankr llm credits | Top up: bankr llm credits add <amount> | Auto top-up: bankr llm credits auto --enable --amount 25 --tokens USDCbankr/ (e.g. bankr/claude-sonnet-5). In direct API calls, use bare IDs (e.g. claude-sonnet-5). Run bankr llm models for the current model list[1m] context-tier suffix is optional through the gateway — it's stripped before model lookup and the 1M window comes from the model's own context window, so claude-opus-5 and claude-opus-5[1m] behave identically. If you do use it, quote it (--model "claude-opus-5[1m]") — in zsh it's a glob character class and the command aborts before the CLI runs/v1/images/generations endpoint (model gpt-image-2), billed from the same LLM credit balance — see the referencestandard, zdr (zero data retention), or private (TEE). Ask for a tier per request, per model, per base URL, or account-wide — see belowThree nesting levels of data-handling guarantee, requested the same way on every endpoint:
| Tier | Guarantee | Coverage |
|---|---|---|
standard (default) | Never routed to a provider that trains on your prompts. Providers may still retain them. | Every model |
zdr | Only providers that retain nothing. | Subset — filter with bankr llm models --zdr |
private | Runs inside a hardware-secured enclave (TEE), attestation verified per request. Zero-retention by construction. | Open-weight models only |
Four ways to ask, so any client can reach any tier:
# 1. The `privacy` request field
curl -X POST https://llm.bankr.bot/v1/chat/completions -H "X-API-Key: $BANKR_LLM_KEY" \
-d '{"model":"glm-5.2","privacy":"zdr","messages":[{"role":"user","content":"Hello"}]}'
# 2. A base-path prefix — for tools that only take a base URL, key, and model
export OPENAI_BASE_URL=https://llm.bankr.bot/zdr/v1 # OpenAI-compatible clients
export ANTHROPIC_BASE_URL=https://llm.bankr.bot/zdr # Anthropic-compatible clients
# 3. A model-ID suffix
bankr llm models --zdr # which models have a ZDR slot
# → use `glm-5.2:zdr` or `glm-5.2:private` as the model ID
# 4. Account-wide — Settings in the web terminal, applies to every request
422 zdr_unavailable) — never quietly downgraded./zdr or /private returns 400 privacy_conflict rather than merging. An unparseable privacy value returns 400 invalid_privacy rather than being ignored.X-Privacy-Tier response header reports the tier the request was actually handled under, so the guarantee is verifiable rather than assumed.:zdr / :private token counts as the suffix opt-in.Max Mode overrides the Bankr agent's default model with any model from the gateway, billed per token from your LLM credit balance (not your trading wallet):
bankr agent "analyze my portfolio" --model claude-opus-5 # or -m
bankr agent "what are the top memecoins today?" -m gemini-3.1-pro
bankr agent prompt "tell me more" --continue --model claude-sonnet-5
The setting is stored on your wallet and applies across every surface — CLI, web terminal, social platforms, and automations. In the web terminal, toggle the Max button and pick a model from the picker.
bankr llm models # List available models
bankr llm credits # Check credit balance
bankr llm credits add 25 # Top up $25 credits (defaults to Base USDC)
bankr llm credits add 25 --token USDT # Pay USDT on whichever chain holds the most
bankr llm credits add 25 --token ETH # Native token; auto-swapped on its chain
bankr llm credits auto --enable --amount 25 --tokens USDC,USDT # Multi-chain auto top-up
bankr llm setup openclaw --install # Install Bankr provider into OpenClaw
bankr llm setup claude # Print Claude Code env vars
bankr claude # Launch Claude Code through gateway
bankr claude --model claude-opus-5 # Any tool flags are forwarded
bankr llm opencode # Launch OpenCode through gateway
The AI agent can top up your LLM credits directly in conversation — no CLI or web dashboard needed:
bankr agent prompt "Top up my LLM credits with $25"
bankr agent prompt "Add $10 of LLM credits using my ETH"
bankr agent prompt "How many LLM credits do I have left?"
The agent can also report your current LLM credit balance in conversation — including any expiring grants and when they lapse — without needing the bankr llm credits command.
Sending credits to another Bankr user. Credit is transferable peer-to-peer — ask the agent ("send $20 of LLM credits to @alice") or POST /llm/credits/transfer. The recipient must already be a Bankr user (X username or 0x address; no ENS on this path), the minimum is $1, and a wallet may send at most $500 per trailing 24 hours. Read-only API keys are refused; pass your own transferId so a retry can't double-send.
Granted credit can be sent too, behind an opt-in. By default only purchased credit moves. Set useGrantedCredits (the transfer_llm_credits tool flag, or the "use granted credits" toggle in the web Send Credits panel) to let a transfer also spend granted credit — operator grants and bonuses, including ones carrying an expiry:
transferId reports the original fee rather than charging again.Two different ceilings, and the smaller one binds. Your balance has a transferable slice (the pool net of reserve, debt and live grants), and your daily budget clamps what can move today. Both are exposed on /llm/usage — balanceTransferableUsd for the balance-side figure, alongside grantedTransferableUsd and transferFeeBps — so a wallet holding $265 that's temporarily gated to $10 by a rolling window can be shown as exactly that, rather than as if the money were missing. The agent quotes both figures and names which one is binding when you ask about your balance.
Daily spend budget. You can cap what the gateway spends on your behalf, independently of your balance. The window is a trailing 24 hours, not a calendar day — nothing resets at midnight, capacity returns as charges age out. Over budget, spending requests return 402 with type: daily_budget_exceeded (distinct from insufficient_credits), while read-only GET endpoints keep working so you can poll for when you're unblocked. The same budget also ends Max Mode agent runs early.
1 credit = $1 USD. Multi-chain: pay with USDC or USDT directly on Base, Polygon, Ethereum, Arbitrum, or BNB Chain, or with any other ERC-20 (auto-swapped to the chain's preferred stablecoin — USDC on most chains, USDT on BNB). When using --token, the CLI picks the chain with the highest USD balance of that token. Maximum $1,000 per top-up.
The gateway supports model deprecation with auto-redirect to replacement models. Deprecated models return X-Model-Deprecated and X-Model-Replacement response headers. Hard-deprecated models return HTTP 410 — update your model ID to the replacement indicated in the header.
For full details — setup paths, model list, provider config, SDK examples, key management, and troubleshooting — see:
Reference: references/llm-gateway.md
Reference: references/token-trading.md
bankr wallet portfolio or GET /wallet/portfolio)--pnl or ?include=pnl)--nfts or ?include=nfts)bankr wallet portfolio --chain base,solana or GET /wallet/portfolio?chains=base,solanaReference: references/portfolio.md
Reference: references/market-research.md
.eth, .base.eth, .cb.id), or social handlesbankr wallet transfer) accepts 0x addresses + ENS only — social handles go through the AI agentReference: references/transfers.md
Reference: references/nft-operations.md
Reference: references/polymarket.md
Reference: references/leverage-trading.md | references/hyperliquid.md
Trade tokenized stocks and ETFs — real-world equities issued as on-chain tokens — with a plain prompt, the same way you trade any other asset. Bankr resolves the best venue automatically when you name a ticker, or you can specify a chain/venue:
Location verification is a one-time step — log in to the Bankr console (verified automatically from your connection, renews on login, expires after 30 days). Not available in the US, UK, or sanctioned countries/regions.
Spot stocks work with swaps, transfers, limit orders, and DCA. Only issuer-tokenized stock trades (Robinhood Chain and Base B20) are location-gated — memecoins, bridging, and transfers work without verification. Tickers collide across chains (12 of the 13 B20 tickers also exist on Robinhood Chain), so name the chain when you mean a specific one.
Reference: references/tokenized-stocks.md
bankr launch) and the web launch form preselect Base, while the AI agent and the deploy API fall back to Robinhood Chain when no chain is named. Name the chain explicitly (bankr launch --chain robinhood, "chain": "base", or "launch it on Base") whenever it matters. Legacy Clanker tokens remain claimable (claims auto-detect Doppler vs Clanker).pairedStockAddress to the deploy API, or ask the agent to pair the launch with a ticker. Only stocks Bankr can price are offered, since launch-curve math needs a USD price.chain: "base" with the matching fixed pairedTokenAddress. User-key launches only; it can't be combined with pairedStockAddress, and omitting both gives you WETH. Volume in these pools stays eligible for the weekly developer rebate on the same terms as WETH-quoted launches.quoteOnlyFees: true to the deploy API, or use bankr launch --quote-only-fees. Fixed at launch, like the fee schedule itself.degenMode: true to the deploy API. The figure is fixed; there is no custom starting market cap, a token named DEGEN does not opt you in, and the mode is unavailable on partner deploys.Reference: references/token-deployment.md
Selling your own creator-fee token: Bankr blocks selling a token you earn fees on through the ordinary swap/limit/stop/DCA/TWAP tools (buying and transferring are unaffected). Builders take profit gradually instead via Glidepath — an AI-paced gradual exit managed from the token page at bankr.bot. Glidepath is a web feature; it isn't a CLI/API action. Details: https://docs.bankr.bot/token-launching/glidepath
Reference: references/automation.md
The agent can discover, call, and deploy x402-protected API endpoints, automatically handling token payments on Base:
--max-payment <usd> is your cap and is what gets sent: an endpoint's advertised price is display-only and can never raise it, and a call whose advertised price exceeds your cap fails closed rather than payingReference: references/x402-cloud.md
The agent has a built-in headless browser for web interactions:
Reference: references/x402-cloud.md
Every Bankr wallet has a persistent filesystem, shared across the CLI, web terminal, API, and every social surface the agent runs on.
/research/notes.md) works anywhere a file ID doesbankr files ls|upload|download|cat|edit|write|search|mkdir|rm|storage from the CLI; /user/files/* over RESTjq/grep/awk-style pipeline in a sandbox and returns only the answer, so a 4 MB CSV never enters the conversation. Available on every wallet, no Club subscription needed/runs) — a separate, conversation-scoped scratch namespace. Deliverables a sandboxed run writes to ./output/ persist there automatically and stay readable by path in later turns, and oversized tool results are stored there instead of crowding the conversation. Text only, ~14 days, 10 MB per file / 100 MB per conversation. Save anything that matters longer into your own filesystemReference: references/files.md
The agent can answer questions about Bankr itself — how features work, official domains and links, the official Telegram bot, and support channels — grounded in Bankr's own documentation. When it doesn't have a confident answer it abstains rather than guessing, so you won't get fabricated links or facts. Useful for onboarding questions and for verifying that a link or channel is genuinely official.
Skills work in two directions, and they're easy to confuse. This document is the first direction: the Bankr skill installed into your agent, so it can trade. The second is the reverse — installing skills into your Bankr agent to teach it new behaviours.
tree/<branch>/<path> containing a SKILL.md), a blob/…/SKILL.md URL, a bare repo when the skill sits at the root, or a direct .md file URL. Links from the bankr.bot Discover and partner pages work too — both the canonical share URL and the in-app routes the UI hands out resolve to the catalogue entry.SKILL.md is capped at 1 MB, and each individual file under references/ at 100 KB. The agent loads a reference file's text inline on demand (up to 200 KB); binary files (images, PDFs) arrive as metadata plus a path it can hand to CLI tools.name from the first heading and the description from the opening prose, and keeps the full document as the body without truncating it.bankr agent skills lists what the agent currently has.
tupleReference: references/arbitrary-transaction.md
| Chain | Native Token | Best For | Gas Cost |
|---|---|---|---|
| Base | ETH | Memecoins, general trading, B20 tokenized equities | Very Low |
| Polygon | POL | Gaming, NFTs, frequent trades | Very Low |
| Ethereum | ETH | Blue chips, high liquidity | High |
| Solana | SOL | High-speed trading | Minimal |
| Unichain | ETH | Newer L2 option | Very Low |
| World Chain | ETH | Uniswap V3/V4 swaps | Very Low |
| Arbitrum | ETH | DeFi, low-cost transactions | Very Low |
| BNB Chain | BNB | BSC ecosystem trading | Low |
| Robinhood Chain | ETH | Tokenized stocks & ETFs (USDG), memecoins, token launches | Very Low |
Robinhood Chain is an EVM L2 (chainId 4663) whose native stablecoin is USDG (Global Dollar). It hosts 200 Robinhood-issued tokenized stocks and ETFs alongside memecoins, and supports Bankr token launches (Doppler). Tokenized-stock trades require location verification (see Tokenized Stock Trading); memecoin swaps, token launches, bridging, and transfers do not.
Base additionally hosts the B20 tokenized equities — Coinbase-issued, 8-decimal equity tokens whose redemption ratio to the underlying share is an on-chain multiplier that moves on corporate actions. Trading them is gated by the same location verification as Robinhood stocks; everything else on Base is not.
Bankr has two independent layers of safety controls. A transaction must satisfy both to broadcast.
User-controlled settings that apply to every surface — chat, agent, API, CLI. Configured at bankr.bot → Security; requires web authentication (an API key cannot change them).
| Control | Default | Effect |
|---|---|---|
| Pause all transactions | Off | Blocks every outbound transaction until unpaused |
| Daily spending limit | $500 / 24h | Rejects any tx that pushes rolling-24h USD outflow past the limit |
| Per-transaction limit | $500 | Rejects any single tx priced above the limit |
| Price impact limit | On (15%) | Rejects a swap whose estimated price impact exceeds the limit — guards against catastrophic fills in thin/low-liquidity pools. Adjustable 1–100% or turned off |
| Permitted recipients | Off | Restricts transfers/swaps to an allowlist; new entries enter a configurable cooldown (default 24h) |
| Arbitrary contract calls | Off (blocked) | While off, blocks write_contract, raw /wallet/submit, and arbitrary transaction tools (named operations like swaps still work). Enabling is a timed opt-in — see below |
| Response channels | All on | Per-channel control over where the agent is allowed to reply (X, Farcaster, Telegram). A disabled channel is silently skipped; account management on Telegram (/start, wallet linking) stays live |
If USD pricing is unavailable and a limit is enabled, the transaction is rejected (fail-closed) rather than waved through. Your own wallet addresses are always implicitly allowed as recipients.
Spend limits apply to every swap path, including cross-chain and Solana legs — the sell side is priced and checked before execution, and a successful swap counts toward your rolling 24h total.
The $500 defaults are real limits, not placeholders. A wallet that has never touched its daily/per-transaction settings is enforced at $500 on every path — including the ones that skip the agent preflight: x402 calls, raw /wallet/submit, and direct signer callers. If your integration signs large transactions, raise the limit explicitly rather than assuming an unconfigured wallet is uncapped.
One side effect worth knowing: the price-impact limit also fails closed on venues that can't report an impact figure. The clearest case is a brand-new Solana token still on its LaunchLab bonding curve — with the limit enabled, that fallback is refused rather than filled unguarded. Turn the limit off if you specifically need those fills.
Rather than turning a protection off indefinitely, you can turn it off for a fixed window and let it restore itself. Available on the daily limit, per-transaction limit, price impact limit, arbitrary contract calls, and each response channel; the duration vocabulary is fixed at 10, 30, 60, or 1440 minutes.
These are web-authenticated settings like the rest of the Security screen — an API key can read the resolved state (/user, /user/security) but cannot change it. Treat "the limit is off" as a fact with an expiry attached: a long-running integration should re-read the resolved settings rather than caching what it saw at startup.
Bankr blocks swaps of a small set of protected tokens where swapping is almost always a costly mistake — for example staked positions that should be unwound through their own redeem flow. The block is swap-only: the token stays visible in your portfolio, transferable, and usable with the relevant staking/redeem tools. When a swap is blocked, the agent returns a clear reason pointing you to the correct exit path. This guard applies across the swap/limit/stop/DCA/TWAP tools on the EVM swap paths.
A common attack is to airdrop dust that reports a canonical currency's ticker — USDG, USDC, USDT, EURC, a chain's native or wrapped symbol — from an address that isn't the real one, hoping an agent copies the address straight out of a balance listing and trades into it. Bankr treats a negative security verdict on that shape as decisive: the token drops out of your portfolio listing rather than reaching the agent as a clean-looking symbol: "USDG" entry.
The screen is narrow on purpose. Genuine canonical tokens match on address and are unaffected, fresh launches with real liquidity keep the more forgiving classification they need, and a token you actually bought through Bankr is never hidden by a spam verdict — only unsolicited dust drops. When you mean a specific asset, naming the ticker (not an address pasted from a balance list) lets Bankr resolve it to the vetted contract.
BNKR staking is deprecated and no longer accepts new deposits. Asking the agent to stake BNKR gets an explanation rather than a transaction. Existing stakers keep the full exit path — initiate cooldown, redeem shares, withdraw — and can still view their staked position. Don't build flows that assume a deposit will go through.
Per-key settings configured at bankr.bot/api-keys:
API Key Types: Bankr uses a single key format (bk_...) with capability flags (walletApiEnabled, agentApiEnabled, tokenLaunchApiEnabled, llmGatewayEnabled). You can optionally configure a separate LLM Gateway key via bankr config set llmKey or BANKR_LLM_KEY — useful when you want independent revocation or different permissions for agent vs LLM access.
Read-Only API Keys: New keys default to readOnly: true. This filters all write tools (swaps, transfers, staking, token launches, etc.) from agent sessions. The /wallet/swap, /wallet/sign, /wallet/submit, and /wallet/transfer write endpoints return 403 (the /wallet/swap-quote read endpoint still works). Use --read-write during login or toggle in the web settings to disable. Ideal for monitoring bots and research agents.
IP Whitelisting: Set allowedIps on your API key to restrict usage to specific IPs or CIDR ranges (e.g., 10.0.0.0/24). Requests from non-whitelisted IPs are rejected with 403 at the auth layer.