Skip to main content

Coding Agents

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 claude                         # shorthand for `bankr llm claude`

Install the CLI:

npm install -g @bankr/cli
bankr login

Supported Tools​

ToolTypeConfiguration
Claude CodeCLINative Anthropic API
CodexCLINot supported yet
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.

For model IDs, see Supported Models or run bankr llm models for the live list.

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 — tell your agent: "install the bankr skill from https://github.com/BankrBot/skills/tree/main/bankr".

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

Common Troubleshooting​

401 Unauthorized / 403 Forbidden​

  • 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 been revoked or rotated
  • A 403 means LLM Gateway isn't enabled on the key — turn it on at bankr.bot/api-keys

Model not found​

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

Slow responses​

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