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
| Tool | Type | Configuration |
|---|---|---|
| Claude Code | CLI | Native Anthropic API |
| Codex | CLI | OpenAI-compatible |
| Cursor | IDE | OpenAI-compatible |
| OpenCode | CLI | OpenAI-compatible |
Quick Reference
| Setting | Value |
|---|---|
| Base URL | https://llm.bankr.bot |
| API Key | Your Bankr API key (bk_...) |
| Model | Any supported model ID |
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
| Model | Best For |
|---|---|
claude-opus-4.6 | Most capable, advanced reasoning |
claude-opus-4.5 | Complex reasoning, architecture |
claude-sonnet-4.5 | Balanced speed and quality |
claude-haiku-4.5 | Fast completions, simple tasks |
gemini-3-pro | Advanced reasoning (2M context) |
gemini-3-flash | High throughput |
gemini-2.5-pro | Long context, multimodal |
gemini-2.5-flash | Speed, high throughput |
gpt-5.2 | Advanced reasoning |
gpt-5.2-codex | Code generation |
gpt-5-mini | Fast, economical |
gpt-5-nano | Ultra-fast, lowest cost |
kimi-k2.5 | Long-context reasoning |
qwen3-coder | Code 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 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 llmKeyorecho $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, notclaude-3-sonnet)
Slow responses
- Try
claude-haiku-4.5orgemini-3-flashfor faster responses