Setup wizard

Connect your AI tool.

Pick a tool, your operating system and a model. The steps and snippets below update to match.

1Tool
2Operating system
3Instructions

Connect Aider

Aider reads the base URL and key from two environment variables. Prefix the model ID with openai/.

  1. Install aider, then open a new terminal window.
    PowerShell
    powershell -ExecutionPolicy ByPass -c "irm https://aider.chat/install.ps1 | iex"
  2. Save the base URL and your key as environment variables. Close PowerShell and open it again so the new variables load.
    PowerShell
    setx OPENAI_API_BASE "https://cheaptokens.pw/v1"
    setx OPENAI_API_KEY "YOUR_API_KEY"
  3. Go to your project folder and start aider. Keep the openai/ prefix in front of the model ID: it tells aider to use the OpenAI format.
    PowerShell
    aider --model openai/claude-sonnet-5-5 --weak-model openai/claude-sonnet-5-5 --no-show-model-warnings
  4. To avoid typing the options each time, save them in a file named .aider.conf.yml in your home folder or project:
    .aider.conf.yml
    model: openai/claude-sonnet-5-5
    weak-model: openai/claude-sonnet-5-5
    openai-api-base: https://cheaptokens.pw/v1
    openai-api-key: YOUR_API_KEY
    show-model-warnings: false
    edit-format: diff
  • --weak-model sets the model aider uses for commit messages. Without it, aider may pick a model that CheapTokens doesn't have.
  • Aider doesn't know the size or price of custom models, so it shows a warning. --no-show-model-warnings hides it. Billing is unaffected.
  • edit-format: diff makes edits faster and cheaper on large files. Remove it if a model struggles to produce diffs.
  • You can also install aider with Python: python -m pip install aider-install, then aider-install.

Open the full Aider guide →