Skip to main content

AI Coding Tools

Use the Bankr LLM Gateway with popular AI coding assistants.

Automated Setup with Bankr CLI

The Bankr CLI can configure most tools automatically:

bankr llm setup openclaw --install   # OpenClaw
bankr llm setup opencode --install # OpenCode
bankr llm setup claude # Claude Code (prints env vars)
bankr llm setup cursor # Cursor (guided instructions)

You can also launch Claude Code directly through the gateway:

bankr llm claude

Install the CLI:

bun install -g @bankr/cli
bankr login

Supported Tools

ToolTypeConfiguration
Claude CodeCLINative Anthropic API
CodexCLIOpenAI-compatible
CursorIDEOpenAI-compatible
OpenCodeCLIOpenAI-compatible

Quick Reference

SettingValue
Base URLhttps://llm.bankr.bot
API KeyYour Bankr API key (bk_...)
ModelAny supported model ID
Flexible URL Paths

The gateway accepts both https://llm.bankr.bot and https://llm.bankr.bot/v1 as the base URL. Both formats work with all SDKs — the server normalizes paths automatically.

Available Models

ModelBest For
claude-opus-4.6Most capable, advanced reasoning
claude-opus-4.5Complex reasoning, architecture
claude-sonnet-4.5Balanced speed and quality
claude-haiku-4.5Fast completions, simple tasks
gemini-3-proAdvanced reasoning (2M context)
gemini-3-flashHigh throughput
gemini-2.5-proLong context, multimodal
gemini-2.5-flashSpeed, high throughput
gpt-5.2Advanced reasoning
gpt-5.2-codexCode generation
gpt-5-miniFast, economical
gpt-5-nanoUltra-fast, lowest cost
kimi-k2.5Long-context reasoning
qwen3-coderCode generation, debugging

Environment Setup

Use environment variables or the Bankr CLI config to manage your keys:

# Add to ~/.bashrc, ~/.zshrc, or ~/.profile
export BANKR_API_KEY=bk_your_api_key_here

# Optional: use a separate key for LLM gateway (falls back to BANKR_API_KEY)
export BANKR_LLM_KEY=your_llm_key_here

Or configure via the CLI:

bankr login                            # set API key (interactive)
bankr config set llmKey YOUR_LLM_KEY # set separate LLM key

Bankr Skill for OpenClaw Agents

If you're using OpenClaw, install the Bankr skill to give your agent crypto trading and DeFi capabilities:

Install in OpenClaw

install the bankr skill from https://github.com/BankrBot/openclaw-skills

The Bankr skill can also help your agent configure the LLM gateway — it knows the available models and can guide setup. See Installing the Bankr Skill for details.

Common Troubleshooting

401 Unauthorized

  • Verify your key is set: bankr config get llmKey or echo $BANKR_LLM_KEY
  • Check for leading/trailing spaces in the key
  • Ensure the key hasn't expired

Model not found

  • Use exact model IDs (e.g., claude-opus-4.6, not claude-3-sonnet)

Slow responses

  • Try claude-haiku-4.5 or gemini-3-flash for faster responses