CodePanel

Model proxy

A backend proxy that holds encrypted provider API keys, enforces spend caps, and authenticates local coding agent runs with short-lived run tokens.

Updated

A model proxy sits between a coding agent and AI model providers so provider API keys never reside on a developer's laptop or inside an agent's environment. The local runner authenticates with a short-lived run token; the proxy checks the account's plan and spend caps, attaches the encrypted provider key (or platform credits at provider list price), and forwards the request.

What a model proxy enforces

  • Zero local key exposure: External CLIs (Claude Code, Codex, Gemini CLI, OpenCode) and CodePanel's own loop call the proxy without ever seeing raw provider keys.
  • Hard budget ceilings: Per-task, per-ticket, per-rule, and account daily caps stop a runaway loop before the next model call is dispatched.
  • Instant kill switch: Pausing agents refuses proxy calls immediately across every running machine (Autopilot, Security).