Bankr

From BankrBot/skills · View interactive version

Bankr is an AI agent skill from the GitHub repository BankrBot/skills. Bankr is an AI crypto agent with its own wallets, a direct Wallet API and a pay-as-you-go LLM gateway, driven by the `bankr` CLI or the REST API. Use it when the user wants to trade or swap crypto or tokenized stocks, check balances or PnL, send tokens, trade perps (Hyperliquid, Avantis) or predicti

How to use this skill

Skill file

Bankr

Bankr is an AI crypto agent that holds its own wallets. Two ways in, both using the same bk_... API key:

Installing this skill means downloading the whole bankr/ folder: this SKILL.md plus every file in references/. A copy of SKILL.md alone leaves every reference link below dead.

This file is the entry point. Topic detail lives in references/ (read the one for your task before acting), in the docs at 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.

Get an API key

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.

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.

Headless email login (recommended for agents)

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.

  1. bankr login email <email> sends a one-time code.
  2. Ask the user for everything in one message:
  1. Run 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.

Other ways in

Bankr CLI

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 has the full guide, and the 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:

REST API

Base URL: https://api.bankr.bot. Send X-API-Key: bk_... on every request.

Agent API: prompts (async)

  1. POST /agent/prompt answers 202 with { jobId, threadId }. Any other status means no job was created; read the body instead of polling.
  2. Poll GET /agent/job/{jobId} every ~2 s until status is completed, failed or cancelled.
  3. 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 covers job fields, status updates, rich data and failure handling.

Wallet API: direct, synchronous

| 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) |

For details, see docs.bankr.bot/wallet-api/overview and references/sign-submit-api.md. Swaps are covered in references/token-trading.md.

Capabilities: where to look

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 | Swaps, Wallet API swap |

| Limit, stop, DCA and TWAP orders; scheduled prompts | automation.md | Automations |

| Tokenized stocks and ETFs (Robinhood Chain, Base, Solana) | tokenized-stocks.md | Tokenized stocks |

| Balances, PnL, held NFTs | portfolio.md | Portfolio |

| Transfers: ENS, social handles, bulk sends | transfers.md | Transfers |

| Prices, analysis, holder lists | market-research.md | |

| NFTs: buys, mints, offers | nft-operations.md | NFTs |

| Perps on Hyperliquid and Avantis | hyperliquid.md, leverage-trading.md | Hyperliquid |

| Polymarket | polymarket.md | Polymarket |

| Token launches, creator fees, vesting | token-deployment.md | Token launching |

| Index tokens: buy a basket, or create and rebalance one with an API key | | Index tokens, Run an index from a script or agent |

| Project pages (bankr project, 0.3.43+) | projects.md | Projects |

| Wallet file storage and run outputs | files.md | Files |

| x402: calling and deploying paid endpoints | x402-cloud.md | x402 Cloud |

| LLM gateway, credits, Max Mode | llm-gateway.md | LLM gateway |

| Raw transactions and contract calls | arbitrary-transaction.md, sign-submit-api.md | Submit |

| Security settings, key controls, rate limits | safety.md | Security |

| Errors and troubleshooting | error-handling.md | |

Capabilities without a reference file:

Rules that are easy to get wrong

Chains

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.

LLM gateway

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).

Setup paths, SDK examples, credit transfers, spend budgets and deprecations are in references/llm-gateway.md.

Bankr Club

Commands: bankr club (status), bankr club signup [--yearly] [--token <USDC|BNKR|ETH|Base ERC-20>] and bankr club cancel. It costs $20 a month or $198 a year, paid as the USD equivalent in the chosen token.

Club needs an embedded Bankr wallet. Max Mode, paid per request from LLM credits, is the alternative for external wallets. Full perks: docs.bankr.bot/faq/bankr-club.

Skills inside Bankr

This skill teaches your agent to use Bankr. It also works the other way: users can install skills into their Bankr agent by pasting a GitHub link to a SKILL.md, or a bankr.bot Discover or partner link. Reinstalling from the same source updates the skill. See docs.bankr.bot/skills/overview.

Branding

Before generating anything with Bankr branding (graphics, slides, web pages, social posts, UI), follow the official brand guidelines at bankr-brand.vercel.app for the logo, colors, typography and style rather than guessing.

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.