@bankr/cli

中文文档
0.3.49发布于 2026/10/29MITTypeScriptES Module近 30 天下载 2252

Official CLI for the Bankr AI agent platform

原始使用文档
文档目录6 节
  1. Installation
  2. Log in
  3. Prompt the agent
  4. Commands
  5. Configuration
  6. License

@bankr/cli

Official CLI for the Bankr AI agent platform. Prompt the Bankr agent, manage your wallet, launch tokens and claim their fees, and use the Bankr LLM gateway from your terminal.

The full command reference is at docs.bankr.bot/cli, what changed in each version is at docs.bankr.bot/cli-changelog, and every command takes --help.

Installation

npm install -g @bankr/cli    # or: bun install -g @bankr/cli

# Later: update with whichever package manager installed it
bankr update

Log in

# Interactive: sign in with email, open bankr.bot to create a key, or paste one
bankr login

# Headless email login, for scripts and agents
bankr login email [email protected]                  # step 1: send a one-time code
bankr login email [email protected] --code 123456    # step 2: verify and create an API key (new accounts get a wallet)

# An existing bk_... key from bankr.bot/api-keys (checked against the API before it's saved)
bankr login --api-key bk_YOUR_KEY

# Sign-In with Ethereum, for headless agents
bankr login siwe --private-key 0xYOUR_PRIVATE_KEY

# Show the key in use, check the connection, and list your account details
bankr whoami
  • Completing a headless email login (--code or --ni) or a SIWE login accepts the Terms of Service.
  • Email-login keys get Wallet, Agent and Token Launch API access and can transact. Opt out with --no-wallet-api, --no-agent-api, --no-token-launch or --read-only, and add LLM gateway access with --llm. SIWE keys are read-only unless you pass --read-write.
  • On an account with MFA, email login prints a bankr.bot approval link (valid for five minutes) and continues once you approve it with your passkey or authenticator app. With an authenticator app, an interactive login also takes the 6-digit code right in the terminal.

Prompt the agent

Prompting the agent from the CLI needs a Bankr Club membership or LLM credits for Max Mode — see Access.

bankr "what is the price of ETH?"                          # shorthand for bankr agent
bankr agent "swap 10 USDC to ETH on base"
bankr agent --continue "and what about SOL?"               # continue the last thread (-c)
bankr agent --thread thr_ABC123 "tell me more"
bankr agent --model claude-opus-5 "audit this contract"    # Max Mode, billed to LLM credits
echo 'buy $50 of ETH on base' | bankr agent prompt         # piped prompt; single quotes keep $50 intact
bankr agent status job_ABC123DEF456 --wait                 # follow a job until it finishes
bankr agent cancel job_ABC123DEF456

The agent's progress lines print on stderr while it works, so they stay out of piped output.

Commands

CommandWhat it does
bankr walletPortfolio, transfer, swap, sign and submit, without the agent
bankr tokensToken search and info
bankr launchLaunch a token on Base, Robinhood Chain or Arbitrum; bankr launch quotes lists the tokens a launch can pair with
bankr feesCreator-fee dashboard and claims, including fees claim-wallet with your own private key
bankr llm, bankr claude (bankr cc)LLM gateway: models, usage, credits and auto top-up, coding-tool config, and Claude Code or OpenCode via the gateway.
bankr projectYour project page
bankr clubBankr Club status, sign-up and cancellation
bankr filesYour wallet's file storage
bankr x402, bankr webhooksDeploy and manage paid x402 endpoints and webhooks that trigger the agent
bankr config, bankr sounds, bankr update, bankr logoutSettings and maintenance

Add --ni (or set BANKR_NOT_INTERACTIVE=1) to any command to skip confirmations and fail fast instead of prompting.

The package also exports its API client (submitPrompt, pollJob, getUserInfo, getBalances and more) for Node.js — see Programmatic usage.

Configuration

Credentials are stored in ~/.bankr/config.json; use --config <path> or BANKR_CONFIG for another file. Environment variables override stored values:

VariableDescription
BANKR_API_KEYAPI key
BANKR_LLM_KEYLLM gateway key (falls back to the API key if not set)
BANKR_API_URLAPI URL (default: https://api.bankr.bot)
BANKR_LLM_URLLLM gateway URL (default: https://llm.bankr.bot)

Read and set stored values with bankr config get|set apiKey|apiUrl|llmKey|llmUrl.

License

MIT

版本与发布记录

@bankr/cli 共发布 43 个版本,首次发布于 2026/02/09;过去 12 个月发布了 43 个版本。

版本发布日期距今
0.3.49latest2026/10/2910 天前
0.3.482026/10/1623 天前
0.3.452026/10/031 个月前
0.3.432026/10/011 个月前
0.3.382026/09/181 个月前
0.3.372026/09/181 个月前

其他发布通道:beta → 0.1.0-beta.19。

关于 @bankr/cli 的常见问题

@bankr/cli 是什么?

Official CLI for the Bankr AI agent platform

如何安装 @bankr/cli?

在项目目录运行 npm install @bankr/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 bankr,可以用 npx bankr 直接运行。

@bankr/cli 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@bankr/cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@bankr/cli 可以商用吗?

@bankr/cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@bankr/cli 的下载量有多少?

根据 npm 官方下载统计,@bankr/cli 在 2026/10/08 – 2026/11/06 这 30 天内被下载 2,252 次,日均约 75 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bankr/cli 还在维护吗?

最新版本 0.3.49 发布于 2026/10/29(10 天前);至今共发布 43 个版本,其中过去 12 个月发布了 43 个;首次发布于 2026/02/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。