This skill lets you trade crypto and manage portfolios through natural language, delivering faster, hands-off execution and real-time market insights.
npx playbooks add skill bankrbot/moltbot-skills --skill bankr
Bankr is an AI crypto agent that holds its own wallets. Two ways in, both using the same bk_... API key:
@bankr/cli, recommended). It handles login, job polling and confirmations for you.https://api.bankr.bot. Use /agent/ for natural-language prompts (async jobs) and /wallet/ for direct, synchronous wallet operations.Installing this skill means downloading the whole bankr/ folder: this SKILL.md plus every file in [references/](references/). A copy of SKILL.md alone leaves every reference link below dead.
This file is the entry point. Topic detail lives in [references/](references/) (read the one for your task before acting), in the docs at [docs.bankr.bot](https://docs.bankr.bot), and in the OpenAPI spec at https://docs.bankr.bot/openapi/api.yaml. Fetch the spec instead of guessing a route or payload. It is the authoritative request/response schema and can be newer than this skill.
Check whether you're already authenticated. The host may supply the key, either as BANKR_API_KEY or through an egress proxy that attaches it to requests. Try bankr whoami, or make a request, before logging in, and never ask the user to paste a key just because the variable is empty. See [host-managed credentials](references/safety.md#host-managed-credentials-no-key-on-disk).
Signing up provisions an EVM wallet (one address on every EVM chain) and a Solana wallet, so there is nothing to set up by hand.
Run bankr update first. The flow below works on @bankr/cli 0.3.38 and later. Pass --accept-terms and --key-name explicitly: from 0.3.43 a headless login accepts the Terms by itself and picks a unique key name, but on 0.3.38 a headless login without --accept-terms fails after the one-time code has been used, and an omitted key name defaults to CLI-<date>, which collides with a key created earlier that day.
bankr login email <email> sends a one-time code.bankr login email <email> --code <otp> --accept-terms --key-name "<name>" [flags].| New-key default | Flag to change it |
| --- | --- |
| Wallet API on | --no-wallet-api |
| Agent API on | --no-agent-api |
| Token Launch API on | --no-token-launch |
| Read-write | --read-only (for research or monitoring keys that must never transact) |
| LLM gateway off | --llm |
Optional hardening flags: --allowed-ips <ips> (IP/CIDR allowlist) and --allowed-recipients <addresses> (EVM/Solana send allowlist). After login, the Features: line shows what the key actually got.
https://bankr.bot/mfa/confirm/... link and waits up to five minutes for the user to approve in a browser with their passkey or authenticator app. Show the user the link, keep the command running and don't retry. If the link expires, fall back to an existing key (below). A headless login never asks for the authenticator code in the terminal; only an interactive bankr login email does (0.3.45+).bankr login --api-key bk_.... Add --llm-key <key> if the user has a separate gateway key. To mint a key in the browser, bankr login --url prints the [bankr.bot/api-keys](https://bankr.bot/api-keys) link.bankr login siwe --private-key 0x.... These keys start read-only; pass --read-write to allow transactions.bankr whoami.Install with bun install -g @bankr/cli (or npm install -g @bankr/cli), and update with bankr update.
bankr --help and bankr <command> --help are the command reference, [docs.bankr.bot/cli](https://docs.bankr.bot/cli) has the full guide, and the [changelog](https://docs.bankr.bot/cli-changelog) lists what changed in each published version. Command groups: wallet (portfolio, transfer, swap, sign, submit), agent (prompt, status, cancel, skills), tokens, launch, fees, project (0.3.43+), files, club, llm, x402, webhooks, config, plus login, logout and whoami.
Behavior that --help doesn't spell out:
bankr what is the price of ETH? is the same as bankr agent "what is the price of ETH?". Named commands take precedence, so a prompt that starts with a command word (claude, launch, …) has to go through bankr agent "...".$. In "Buy $50 of ETH", $5 expands to nothing and the agent sees Buy 0 of ETH. Use single quotes, pipe the prompt (echo 'Buy $50 of ETH on Base' | bankr agent prompt), or run bankr agent prompt with no argument for an interactive input.-c/--continue reuses the last thread and --thread <id> picks one.bankr agent status <jobId> --wait (0.3.43+) follows an existing job.-m/--model <id> runs the prompt on a model from the Max Mode lineup, billed from LLM credits. An ID outside the lineup is rejected with the accepted list (see [LLM gateway](#llm-gateway)).--ni, or BANKR_NOT_INTERACTIVE=1) implies --yes and fails fast instead of prompting. Commands that normally prompt then need their inputs as flags:login: --api-key, email … --code, or siwe --private-key;launch: --name;fees claim-wallet: --all, plus --private-key or BANKR_PRIVATE_KEY;agent: the prompt as an argument or on stdin.~/.bankr/config.json; override the path with --config <path> or BANKR_CONFIG. Environment variables win over the file: BANKR_API_KEY, BANKR_API_URL, BANKR_LLM_KEY (falls back to the API key) and BANKR_LLM_URL. Read and write values with bankr config get|set apiKey|apiUrl|llmKey|llmUrl.prompt, status, cancel, balances, sign, submit, and profile / agent profile (now bankr project, 0.3.43+). On older versions bankr project … isn't a command, so the prompt fallthrough sends it to the agent as text; use bankr agent profile there.Base URL: https://api.bankr.bot. Send X-API-Key: bk_... on every request.
POST /agent/prompt answers 202 with { jobId, threadId }. Any other status means no job was created; read the body instead of polling.GET /agent/job/{jobId} every ~2 s until status is completed, failed or cancelled.POST /agent/job/{jobId}/cancel stops a running job.To continue a conversation, send the returned threadId with the next prompt.
Prompts need Bankr Club, or Max Mode with LLM credits (a maxMode model on the request, or one saved on the wallet). Without either, the request gets 403 subscription_required with a remediation list. Club allows 1,000 prompts per rolling 24 hours; Max Mode without Club allows 100.
RESP=$(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 "$RESP" | jq -r '.jobId // empty')
if [ -z "$JOB_ID" ]; then echo "$RESP"; exit 1; fi # no job: the body says why (403 subscription_required, 429, ...)
for _ in $(seq 150); do # 150 x 2 s = 5 min, the CLI's own cap
R=$(curl -s "https://api.bankr.bot/agent/job/$JOB_ID" -H "X-API-Key: $BANKR_API_KEY")
case $(echo "$R" | jq -r .status) in completed|failed|cancelled) break ;; esac
sleep 2
done
echo "$R" | jq -r '.response // .error // .status'
Never poll without a jobId: GET /agent/job/null answers 404 Job not found on every call, so an unguarded loop never ends. A job still running after five minutes keeps running; keep its jobId and poll again later, or cancel it.
[references/agent-api.md](references/agent-api.md) covers job fields, status updates, rich data and failure handling.
| Endpoint | What it does |
| --- | --- |
| GET /wallet/me | Wallet addresses and account info. This is also the quickest way to check that a key works |
| GET /wallet/portfolio | Balances, with ?include=pnl,nfts and ?chains=base,solana |
| POST /wallet/swap-quote | Quotes a swap: same-chain EVM, cross-chain or Solana |
| POST /wallet/swap | Executes a swap. The output always goes to your own wallet |
| POST /wallet/transfer | Sends a token (by contract address or Solana mint) to a 0x or Solana address. Resolve an ENS name or social handle first with GET /addresses/resolve |
| POST /wallet/sign | Signs a message, EIP-712 typed data or a transaction |
| POST /wallet/submit | Broadcasts a raw transaction |
| POST /wallet/bridge-quote, /wallet/bridge/deposit, /wallet/bridge/withdraw | Bridges the wallet's own HYPE between HyperEVM and Elysium; GET /wallet/bridge/pending follows it ([docs](https://docs.bankr.bot/wallet-api/bridge)) |
me, portfolio, swap-quote, bridge-quote, bridge/pending) work with read-only keys. All but me and portfolio still need walletApiEnabled.swap, transfer, bridge/deposit, bridge/withdraw, sign, submit) need walletApiEnabled on a read-write key.transfer only sends to addresses on the list for its chain, so a key with only one chain's list can't send on the other. swap has no recipient to check, because its output returns to you.submit is also checked against the wallet's security settings: spend limits, permitted recipients and the arbitrary-contract-calls switch, which stays off on an account without MFA (403 MFA required). Its 403 comes either with a machine-readable errorCode or with a plain message and no errorCode (MFA required adds code: "MFA_REQUIRED"), so handle both shapes.GET /addresses/resolve, GET /users/search, GET /token-launches and GET /token-launches/quote-tokens?chain=<chain>.For details, see [docs.bankr.bot/wallet-api/overview](https://docs.bankr.bot/wallet-api/overview) and [references/sign-submit-api.md](references/sign-submit-api.md). Swaps are covered in [references/token-trading.md](references/token-trading.md).
Most of these work by asking the agent (bankr agent "..." or POST /agent/prompt). Before anything non-trivial, read the reference for that area.
| Area | Reference | Docs |
| --- | --- | --- |
| Swaps and bridging, including the direct swap API | [token-trading.md](references/token-trading.md) | [Swaps](https://docs.bankr.bot/features/trading/swaps), [Wallet API swap](https://docs.bankr.bot/wallet-api/swap) |
| Limit, stop, DCA and TWAP orders; scheduled prompts | [automation.md](references/automation.md) | [Automations](https://docs.bankr.bot/agent/automations) |
| Tokenized stocks and ETFs (Robinhood Chain, Base, Solana) | [tokenized-stocks.md](references/tokenized-stocks.md) | [Tokenized stocks](https://docs.bankr.bot/features/trading/tokenized-stocks) |
| Balances, PnL, held NFTs | [portfolio.md](references/portfolio.md) | [Portfolio](https://docs.bankr.bot/features/portfolio) |
| Transfers: ENS, social handles, bulk sends | [transfers.md](references/transfers.md) | [Transfers](https://docs.bankr.bot/features/transfers) |
| Prices, analysis, holder lists | [market-research.md](references/market-research.md) | |
| NFTs: buys, mints, offers | [nft-operations.md](references/nft-operations.md) | [NFTs](https://docs.bankr.bot/features/nfts) |
| Perps on Hyperliquid and Avantis | [hyperliquid.md](references/hyperliquid.md), [leverage-trading.md](references/leverage-trading.md) | [Hyperliquid](https://docs.bankr.bot/features/hyperliquid) |
| Polymarket | [polymarket.md](references/polymarket.md) | [Polymarket](https://docs.bankr.bot/features/polymarket) |
| Token launches, creator fees, vesting | [token-deployment.md](references/token-deployment.md) | [Token launching](https://docs.bankr.bot/token-launching/overview) |
| Index tokens: buy a basket, or create and rebalance one with an API key | | [Index tokens](https://docs.bankr.bot/token-launching/index-tokens), [Run an index from a script or agent](https://docs.bankr.bot/token-launching/index-tokens-quickstart) |
| Project pages (bankr project, 0.3.43+) | [projects.md](references/projects.md) | [Projects](https://docs.bankr.bot/projects/overview) |
| Wallet file storage and run outputs | [files.md](references/files.md) | [Files](https://docs.bankr.bot/agent/files) |
| x402: calling and deploying paid endpoints | [x402-cloud.md](references/x402-cloud.md) | [x402 Cloud](https://docs.bankr.bot/x402-cloud/overview) |
| LLM gateway, credits, Max Mode | [llm-gateway.md](references/llm-gateway.md) | [LLM gateway](https://docs.bankr.bot/llm-gateway/overview) |
| Raw transactions and contract calls | [arbitrary-transaction.md](references/arbitrary-transaction.md), [sign-submit-api.md](references/sign-submit-api.md) | [Submit](https://docs.bankr.bot/wallet-api/submit) |
| Security settings, key controls, rate limits | [safety.md](references/safety.md) | [Security](https://docs.bankr.bot/security/overview) |
| Errors and troubleshooting | [error-handling.md](references/error-handling.md) | |
Capabilities without a reference file:
bankr agent "Do I have any Merkl rewards to claim?".bankr webhooks deploys endpoints that trigger the agent from external events ([docs](https://docs.bankr.bot/webhooks/overview)).403 on every write: wallet writes, deploys and claims. A non-empty recipient allowlist also refuses anything whose recipient can't be checked: Polymarket trades, NFT buys, mints and listings, airdrops, scheduled prompts, raw /wallet/submit, and /wallet/sign for transactions, typed data and 32-byte messages. See [safety.md](references/safety.md).idempotencyKey with every /wallet/swap and retry only with the same one. After a 504 receipt_pending, 502 fill_unconfirmed or 502 fill_failed, check the wallet's activity first. See [error-handling.md](references/error-handling.md#retrying-swaps-safely).bankr llm credits add 25) before using the gateway or Max Mode: gateway calls fail with 402, and Max Mode prompts fail with a top-up message.--simulate / simulateOnly) don't count. See [token-deployment.md](references/token-deployment.md).I agree. Show the notice to the user and let them answer; never send I agree for them. bankr x402 deploy isn't gated./wallet/submit, transaction and typed-data signing, the agent's contract tools) are refused with 403 MFA required. An agent account that needs those has to turn MFA on. See [safety.md](references/safety.md#without-mfa).Bankr supports Base, Ethereum, Polygon, Unichain, World Chain, Arbitrum, BNB Chain, Robinhood Chain, Arc, Elysium and Solana:
More in [docs.bankr.bot/getting-started/supported-chains](https://docs.bankr.bot/getting-started/supported-chains).
https://llm.bankr.bot is an OpenAI- and Anthropic-compatible API that serves Claude, GPT, Gemini, Grok and open-weight models, billed per token from LLM credits (1 credit = $1). A key needs the LLM gateway capability (--llm at login).
bankr llm models lists the live model IDs; add --zdr or --private to filter by privacy tier. Use bare IDs in API calls and bankr/<id> in OpenClaw.bankr llm credits shows the balance. bankr llm credits add <usd> [--token <symbol-or-address>] tops up from the wallet, and bankr llm credits auto configures automatic top-ups.bankr claude (alias of bankr llm claude) and bankr llm opencode launch those tools through the gateway. bankr llm setup openclaw|opencode|claude|cursor prints or installs their config.standard (the default), zdr (zero data retention) or private (TEE). If no provider can serve the requested tier, the request fails rather than falling back to a weaker one.Weekly roundup of top Claude Code skills, MCP servers, and AI coding tips.