Gateway operational
Pay-as-you-goBALANCE $2.50
DOCUMENTATION & API REFERENCE

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)

claude-opus-5DEFAULT

In: $5.00 / 1M | Out: $25.00 / 1M
Context: 1M window

claude-sonnet-51M Context

In: $3.00 / 1M | Out: $15.00 / 1M
Routing: /v1/anthropic

claude-opus-4.81M Context

In: $5.00 / 1M | Out: $25.00 / 1M
Routing: /v1/anthropic

gpt-5.6-solReasoning

In: $5.00 / 1M | Out: $15.00 / 1M
Context: 272k window

gpt-5.6-lunaEconomical

In: $1.50 / 1M | Out: $6.00 / 1M
Context: 272k window

OS Platform:
01

Install Claude Code CLI

Install the official Anthropic Claude CLI tool globally via npm.

bash
npm install -g @anthropic-ai/claude-code
02

Get your MakeThemBroke API Key

Copy your active live key from your dashboard. It authenticates every streaming request.

bash
mb-live-YOUR_API_KEY

💡 Keep your API key secure. It is checked against your Convex credit balance in real-time.

03

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.

json
{
  "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".

04

Launch Claude Code Agent

Navigate to your project repository and launch Claude Code through MakeThemBroke.

bash
cd path/to/your-project
claude

Frequently 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.