derestricted-llm handling model requests.
Before you start
Install Claude Code, then create an API key in the console. New verified accounts receive free starting credit (see pricing).Configure the connection
In the terminal where you will run Claude Code, replace the placeholder with your key:/v1. Claude Code appends the Messages API path. ANTHROPIC_AUTH_TOKEN sends the key as a bearer token. See Claude Code’s gateway configuration.
To use the same model when Claude Code selects a model family for a helper task, also set:
Start a session
From your project directory:/status to check the base URL and credential source. Shell exports apply to programs launched from that terminal. For persistent settings, follow the user settings instructions; keep credentials out of shared project files.
If something fails
- Authentication: check
/statusfor an old key or conflicting credential setting. Use a key from the derestricted console. - Long sessions: run
/compactor start a smaller task after a413. Request limits depend on serialized content, not just the token count shown by Claude Code. - Unsupported features: this endpoint supports text and client-executed tools. Image input and Anthropic-specific thinking controls are not supported. See Anthropic compatibility.
- Credits or rate limits: check your console balance and the error guide.