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.
    Terminal
    curl -LsSf https://aider.chat/install.sh | sh
  2. Save the base URL and your key as environment variables. The last line reloads your shell settings, so the variables work straight away.
    Terminal
    echo 'export OPENAI_API_BASE="https://cheaptokens.pw/v1"' >> ~/.zshrc
    echo 'export OPENAI_API_KEY="YOUR_API_KEY"' >> ~/.zshrc
    source ~/.zshrc
  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.
    Terminal
    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 →