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
| Tool | Type | Configuration |
|---|---|---|
| Claude Code | CLI | Native Anthropic API |
| Codex | CLI | Not supported yet |
| 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.
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 llmKeyorecho $BANKR_LLM_KEY - Check for leading/trailing spaces in the key
- Ensure the key hasn't been revoked or rotated
- A
403means 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, notclaude-3-sonnet)
Slow responses
- Try
claude-haiku-4.5orgemini-3-flashfor faster responses