Skip to main content
Aider can work with derestricted-llm through the Chat Completions API.

Before you start

Install Aider and create a key in the console. New verified accounts receive $5 in starting credit.

Configure the connection

Set these variables in the terminal where you will run Aider:
Aider uses OPENAI_API_BASE for a compatible service. Its model argument requires an openai/ prefix to select the protocol; the model sent to derestricted.ai is derestricted-llm. See Aider’s compatible API guide.

Start Aider

From your project directory:
Add a small file to the conversation and ask for a focused change. Review the resulting diff as part of your normal development workflow.

If something fails

  • Unknown model warning: Aider may not have built-in context or pricing metadata for this model. That warning alone does not indicate an authentication failure. See Aider’s model warnings.
  • Authentication or connection error: launch Aider from the terminal containing the exports above; check that the base URL includes /v1.
  • Large request: include fewer files or start a shorter conversation. Local token estimates do not override the gateway’s request limits.
  • Credits or rate limits: check the console and the error guide.