Skip to main content
Use Claude Code from your terminal with 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:
Use the base URL exactly as shown, without /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:
These names select the derestricted model through Claude Code’s model configuration; they do not provide access to Anthropic’s Claude models.

Start a session

From your project directory:
For a single terminal request:
Run /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 /status for an old key or conflicting credential setting. Use a key from the derestricted console.
  • Long sessions: run /compact or start a smaller task after a 413. 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.