[[Aider]] uses [[LiteLLM]] under the hood.
[From LiteLLM docs](https://docs.litellm.ai/docs/providers/github):
> [!TIP] LiteLLM
> We support ALL Github models, just set `model=github/<any-model-on-github>` as a prefix when sending litellm requests
[Models · GitHub Marketplace](https://github.com/marketplace/models).
## Aider commands
Works:
```
export GITHUB_API_KEY=$(gh auth token)
aider --model github/gpt-4o
```
Doesn't work:
```
export GITHUB_API_KEY=$(gh auth token)
aider --model github/o1
```
## See also
- [Video: Using Aider and Cline with GitHub Models](https://www.youtube.com/watch?v=Y4UuCmZFJZo)
- [IndyDevDan](https://www.youtube.com/@indydevdan)
- [AICodeKing](https://www.youtube.com/@AICodeKing)