NexoToken technical guide center
Claude Code custom API, Base URL, and environment
Configure the endpoint and environment expected by Claude Code, then verify the connection in an isolated repository.
Confirm the protocol and environment variables supported by your Claude Code version before copying the current Base URL and model ID from the platform. Keep the real credential only in a controlled environment variable, run a read-only task in an isolated repository, and confirm the intended request in platform usage before opening a real project.
For local and team environments connecting Claude Code to a compatible endpoint and verifying Base URL, variables, and model settings.
Last verified
Steps
Check the custom-endpoint method for the current client.
Set the required variables in the current shell.
Copy the Base URL and model ID from current setup instructions.
Run a read-only repository summary in the test directory.
Reconcile usage before entering a real project.
Safe example
export ANTHROPIC_AUTH_TOKEN="YOUR_API_KEY"
export ANTHROPIC_BASE_URL="https://your-api.example.com"
# Confirm names and paths against the current clientCommon errors and troubleshooting order
- Variables are ignored: launch from the same shell.
- 401: inspect the credential for truncation or whitespace.
- Model unavailable: copy the exact current ID.
- Task stops: reduce input before checking network and context.
Completion checklist
- The test repository contains no sensitive data.
- No real credential is committed.
- The read-only task completes.
- Time and model match platform usage.
Limitations and boundaries
- Variable and protocol support can change across Claude Code releases.
- Advanced tool behavior must be verified with a real task, not assumed from endpoint compatibility.