Claude Code API configuration guide
Claude Code integrations are easiest to maintain when the API base URL, authentication token, model availability, and failure behavior are documented in one place.
Configure the endpoint locally
Use environment variables for the base URL and authentication token. Do not paste a production token into shell history, screenshots, public repositories, or shared configuration files.
Verify the route
Start with a small request and confirm that the selected model, streaming mode, and tool behavior match your expected Claude Code workflow.
Plan for route changes
Model IDs and upstream availability can change. Keep the model name configurable and check the live model catalog before upgrading a production configuration.
Use supportable diagnostics
When a request fails, capture the time, model, HTTP status, and request ID. Avoid sending secrets or full private prompts in a support ticket.