mcpField
B
Bankr Agent - LLM Gateway

Bankr Agent - LLM Gateway

github.com/bankrbotAgent workflows88342 installsUpdated 31w ago
Repository

About Bankr Agent - LLM Gateway

Bankr Agent - LLM Gateway is a unified API and CLI workflow for accessing models from multiple providers. It is aimed at users of Claude Code, OpenClaw, OpenCode, Cursor, and standard SDKs, with shared access, credit tracking, and automatic failover.

Key features

  1. 01Multi-provider model access
  2. 02OpenAI and Anthropic API formats
  3. 03Credit balance and top-ups
  4. 04Automatic failover
  5. 05Setup commands for coding tools

Use cases

  1. 01Call supported models through one endpoint
  2. 02Connect Claude Code to gateway models
  3. 03Monitor or replenish LLM credits

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/bankrbot/claude-plugins --skill bankr-agent---llm-gateway

After installing, type/bankr-agent---llm-gatewayin Claude Code to confirm it loaded.

Details

From the project README

LLM Gateway

The Bankr LLM Gateway is a unified API for Claude, Gemini, GPT, and other models — multi-provider access, cost tracking, automatic failover, and SDK compatibility through a single endpoint.

Base URL: https://llm.bankr.bot

Authentication

Uses your LLM key. Resolution order:

  1. BANKR_LLM_KEY environment variable
  2. llmKey in ~/.bankr/config.json
  3. Falls back to BANKR_API_KEY

Most users only need one key for both agent API and LLM gateway.

Credits

New wallets start with $0 LLM credits. Top up before first use or all requests return HTTP 402.

LLM credits (USD) and trading wallet (crypto) are completely separate balances.

bankr llm credits                          # Check balance
bankr llm credits add 25                   # Top up $25 (USDC)
bankr llm credits add 50 --token 0x...     # Top up from specific token
bankr llm credits auto --enable --amount 25 --threshold 5 --tokens USDC  # Auto top-up
bankr llm credits auto --disable           # Disable auto top-up

Available Models

ModelProviderBest For
claude-opus-4.6AnthropicMost capable, advanced reasoning
claude-sonnet-4.6AnthropicBalanced speed and quality
claude-haiku-4.5AnthropicFast, cost-effective
gemini-3-proGoogleLong context (2M tokens)
gemini-3-flashGoogleHigh throughput
gpt-5.2OpenAIAdvanced reasoning
gpt-5-miniOpenAIFast, economical
kimi-k2.5Moonshot AILong-context reasoning
qwen3-coderAlibabaCode generation
bankr llm models   # Fetch live model list

Tool Integrations

Claude Code
# Launch directly (recommended)
bankr llm claude
bankr llm claude --model claude-sonnet-4.6

# Or set env vars
bankr llm setup claude
# Outputs: export ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN
OpenClaw
bankr llm setup openclaw --install   # Auto-install provider config

In OpenClaw, prefix model IDs with bankr/ (e.g. bankr/claude-sonnet-4.6).

OpenCode
bankr llm setup opencode --install   # Auto-install provider config
Cursor
bankr llm setup cursor   # Get step-by-step setup instructions

Direct SDK Usage

The gateway works with standard OpenAI and Anthropic SDKs — just override the base URL.

OpenAI format:

curl -X POST "https://llm.bankr.bot/v1/chat/completions" \
  -H "Authorization: Bearer $BANKR_LLM_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-sonnet-4.6", "messages": [{"role": "user", "content": "Hello"}]}'

Anthropic format:

curl -X POST "https://llm.bankr.bot/v1/messages" \
  -H "x-api-key: $BANKR_LLM_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "claude-sonnet-4.6", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'

Troubleshooting

ErrorSolution
401 UnauthorizedVerify key: bankr config get llmKey
402 Payment RequiredTop up credits: bankr llm credits add 25
Model not foundCheck exact ID: bankr llm models
Claude Code not foundInstall Claude Code separately

Comments

Markdown supported