Skip to content

Conversation

@davanstrien
Copy link

Adds documentation for using Hugging Face Inference Providers with Aider.

Key additions:

  • Setup instructions using OpenAI-compatible client
  • Model discovery guidance (Hub browsing, model cards, API docs)
  • Provider selection for users with existing credits/preferences
  • Links to Inference Providers documentation

Adds documentation for using Hugging Face Inference Providers with Aider.

Key additions:
- Setup instructions using OpenAI-compatible client
- Model discovery guidance (Hub browsing, model cards, API docs)
- Provider selection for users with existing credits/preferences
- Links to Inference Providers documentation

Benefits for Aider users:
- Access to multiple providers (Cerebras, Groq, Together, etc.) via one API
- Zero markup pricing
- Automatic routing with optional provider selection
- OpenAI-compatible integration
@CLAassistant
Copy link

CLAassistant commented Oct 29, 2025

CLA assistant check
All committers have signed the CLA.

Copy link

@hanouticelina hanouticelina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @davanstrien!

davanstrien and others added 2 commits November 4, 2025 20:18
Update documentation to use HUGGINGFACE_API_KEY and huggingface/ model
prefix instead of OPENAI_* equivalents for better clarity. OPENAI_API_BASE
is still required (litellm limitation) and is now explained in a note.

Also documents new :cheapest and :fastest provider selection suffixes.

Changes:
- Use HUGGINGFACE_API_KEY (or HF_TOKEN) for API authentication
- Change model prefix from openai/ to huggingface/ in all examples
- Add explanatory note about OPENAI_API_BASE requirement
- Document :cheapest and :fastest provider selection options

All changes tested and confirmed working.
@davanstrien
Copy link
Author

@paul-gauthier I believe this is ready now, but let me know if you need any changes 🤗

@znation
Copy link

znation commented Nov 18, 2025

Hi @paul-gauthier, it would be great to get this merged if it looks good. I ended up figuring it out myself by trial and error and telling my coworkers before discovering this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants