# Hugging Face now routes open models through OpenRouter

> Since 2026-11-16, Hugging Face routes language-model calls through OpenRouter: one HF token, retries on another provider, and your own provider key no longer works for those models.

- Published: 2026-11-17
- Publisher: Rig Labs (https://riglabs.ai/)
- Canonical: https://riglabs.ai/blog/hugging-face-openrouter/
- Answers: Hugging Face OpenRouter
- Agent file (a short card for your agent): https://riglabs.ai/blog/hugging-face-openrouter/AGENT.md

---

Hugging Face switched its Inference Providers service to OpenRouter's router on November 16, 2026, per [the Hugging Face blog](https://huggingface.co/blog/openrouter). Every open-weight model on the Hub that a provider serves can now be called with your Hugging Face token, and OpenRouter picks the provider for each request.

What you can now do: point Claude Code, Codex or another coding agent at an open model, such as GLM-5.3 (the post's own example), with one Hugging Face token, and get an automatic retry on another provider when one fails.

## What changed in Hugging Face Inference Providers?

Hugging Face Inference Providers used to pick one provider per request and return its error if it failed, per the blog. Requests to language models now go through OpenRouter, which chooses on live price, speed and reliability and retries on the next provider inside the same call. Your code stays the same. OpenRouter reports that its new routing cut capacity errors by 46% compared with its previous routing, which looked only at the lowest list price. Anyone calling open language models through Hugging Face now gets that routing.

You can still steer the choice with a suffix on the model id:

```text
zai-org/GLM-5.3            best mix of price, speed and reliability
zai-org/GLM-5.3:fastest    highest throughput
zai-org/GLM-5.3:cheapest   lowest price
zai-org/GLM-5.3:novita     only Novita
```

## Which tools can use it?

The Hugging Face router speaks OpenAI's Chat Completions and Responses APIs and Anthropic's Messages API for every chat model, per the blog. The post links setup guides for Claude Code, Codex, OpenCode, Pi and Hermes Agent, and each can be copied as a prompt for your agent.

## What does it cost?

Hugging Face says prices do not change: you pay the provider's price on your Hugging Face bill, with no markup. PRO users get $2 of credits a month, and Team and Enterprise organizations get $2 per seat. For comparison, the post gives an average of $0.28 per million input tokens for open-weight models, against $1.27 for closed models.

## Who has to change something?

Anyone who used their own API key for a provider through Hugging Face has to change something, per the blog's "Breaking change" section. Language-model calls are now billed to your Hugging Face account or organization, so your own provider key no longer works for those models. You can still choose a provider with the model-id suffix, or turn providers off in your settings. Custom keys for image and video providers keep working, and image, video and audio generation do not go through OpenRouter.

## What to do today

If you call language models through Hugging Face with your own provider key, open your Hugging Face settings, check which providers your requests may go to, and turn off any you do not want. Then pin your current provider with its suffix (for example `:novita`) until you have compared prices on the model page's new Providers tab.

Last checked 2026-11-17.

Sources:
- [Hugging Face blog: Hugging Face and OpenRouter join forces, 2026-11-16](https://huggingface.co/blog/openrouter)
- [@huggingface on X, 2026-11-16](https://x.com/huggingface/status/2122393775314264519)
