Working with Coding Agents
Coding agents and IDE plugins usually speak one of two API shapes. Point them at the matching gateway base URL and your Board API key.
Choose a lane
| Lane | Base URL | Examples |
|---|---|---|
| OpenAI-compatible | https://api.benpay.ai/openai/v1 | Codex CLI, Trae, CodeBuddy, WorkBuddy, ComfyUI |
| Anthropic-compatible | https://api.benpay.ai/anthropic/v1 | Claude Code, Claude Desktop |
Before you connect
- Board account and API key
- Correct base URL for the client type
- Model name from Models in the dashboard
Guides
Verify with curl
OpenAI-compatible:
curl "https://api.benpay.ai/openai/v1/chat/completions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"YOUR_MODEL","messages":[{"role":"user","content":"Hello"}]}'
Anthropic-compatible:
curl "https://api.benpay.ai/anthropic/v1/messages" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "anthropic-version: 2023-06-01" \
-d '{"model":"YOUR_MODEL","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'
Replace YOUR_MODEL with a name from the Models page.