Connect AI Agents to MakeThemBroke
Route Claude Code and Codex CLI through the MakeThemBroke API Gateway. Real-time credit validation & streaming token tracking powered by Convex.
Live Model Token Rates (Cost per 1M Tokens)
In: $5.00 / 1M | Out: $25.00 / 1M
Context: 1M window
In: $3.00 / 1M | Out: $15.00 / 1M
Routing: /v1/anthropic
In: $5.00 / 1M | Out: $25.00 / 1M
Routing: /v1/anthropic
In: $5.00 / 1M | Out: $15.00 / 1M
Context: 272k window
In: $1.50 / 1M | Out: $6.00 / 1M
Context: 272k window
Install Claude Code CLI
Install the official Anthropic Claude CLI tool globally via npm.
npm install -g @anthropic-ai/claude-codeGet your MakeThemBroke API Key
Copy your active live key from your dashboard. It authenticates every streaming request.
mb-live-YOUR_API_KEY💡 Keep your API key secure. It is checked against your Convex credit balance in real-time.
Complete ~/.claude/settings.json Configuration
Create or edit ~/.claude/settings.json in your home directory with your MakeThemBroke API key, endpoint URL, and chosen model.
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.makethembroke.com/v1/anthropic",
"ANTHROPIC_API_KEY": "mb-live-YOUR_API_KEY",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1"
},
"permissions": {
"allow": [],
"deny": []
},
"model": "claude-opus-5",
"effortLevel": "max",
"skipDangerousModePermissionPrompt": true
}💡 Windows path: C:\Users\YOUR_USER\.claude\settings.json. Supported models for "model": "claude-opus-5" (default), "claude-sonnet-5", "claude-opus-4.8", "gpt-5.6-sol", "gpt-5.6-luna", "auto".
Launch Claude Code Agent
Navigate to your project repository and launch Claude Code through MakeThemBroke.
cd path/to/your-project
claudeFrequently Asked Questions
How are credits deducted?
Every request calculates exact input and output token counts during streaming. Costs are deducted directly from your Convex account balance based on model pricing ($5/M input, $25/M output for Opus 5; $5/M input, $15/M output for GPT-5.6-Sol).
What is the API base URL?
The public API gateway base URL is https://api.makethembroke.com/v1. Endpoint routes include /v1/anthropic for Claude Code and /v1/openai for Codex.