Operate Claude Code behind one governed boundary.
Use Claude Code's documented gateway base URL and token variables with a workload key on the Messages-compatible boundary.
Connect Claude Code without putting a provider secret on the machine.
Use the Messages-compatible boundary while AI Gateway HQ applies the selected route, budget, and policy before provider access.
- 1Create a distinct workload
Use one key for one environment or agent. Attach the hard dollar cap, rate boundary, approved route, and fallback before sending a request.
- 2Keep the key out of the configuration file
Put
AIGHQ_API_KEYin the local keychain, CI secret, or workload secret manager. The example contains no real credential. - 3Prove both the allow and stop paths
Run a small smoke test, inspect its metadata-only receipt, then exercise the zero-balance block and provider-health fallback.
This setup uses an AI Gateway HQ workload credential. Requests are charged to the approved BYOK provider account or prepaid managed Bedrock balance selected by the route—not to a personal ChatGPT or Claude subscription allowance.
export AIGHQ_API_KEY='paste-your-workload-key'
ANTHROPIC_BASE_URL=https://api.aigatewayhq.com \
ANTHROPIC_AUTH_TOKEN="$AIGHQ_API_KEY" \
claude --model company-approved-fastUse the exact production origin shown. Replace only the workload key and organization-approved alias supplied inside the customer console.
Client configuration was checked against the vendor's current published interface. Review the primary documentation before a broad rollout because client capabilities change independently of the gateway.
Status determines what can be configured.
Beta connections require customer validation against the exact model, payload, streaming mode, region, and provider account before production use.
AIGHQ_BASE_URL=https://api.aigatewayhq.com/v1
AIGHQ_API_KEY=from-your-workspace
AIGHQ_MODEL=company-approved-fastApplications keep a stable gateway URL and model alias while an administrator changes eligible provider accounts and models.
Only documented protocols become eligible.
Set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN for the intended shell or distribute them through approved settings and secrets tooling. A managed installer remains planned.
Compatibility is bounded to the provider's current published interface. Review the provider documentation before approving a production model.