Hugging Face shows how to route Claude Code through open-model backends
_akhaliq · x · 2026-07-28
Hugging Face documents how to run Claude Code on open models
The HF docs explain that Claude Code can be configured to use Hugging Face Inference Providers as its backend by setting ANTHROPICBASEURL and providing an HF token with the right permissions.
The page describes:
- the Claude Code CLI prerequisites,
- the need for an HF account/token that can call Inference Providers,
- an hf-claude extension that launches Claude Code with the environment preconfigured,
- and the general idea that Claude Code can work with a wide range of open models through HF’s router.
This is a practical setup guide for developers who want an agentic coding tool backed by non-Anthropic models.
Related event: Kimi K3 can now run inside Claude Code through Hugging Face routing(2 posts)→
More from coding & agent
- Pricing pages now ship as Markdown so AI agents can parse them — stuffyokodraws · 2026-07-28
- Agent search engine claims 62ms P50, about 6× faster than Exa — Scobleizer · 2026-07-28
- Kimi K3 lands in Cursor with US inference and zero data retention — togethercompute · 2026-07-28
- Local LLM agent drives Perfect Dark on Mac with 50 ms combat control — moyoteg · 2026-07-28
- Prompt caching can cut agent token costs by 50% to 90% on repeated requests — blaizedsouza · 2026-07-28
- Five places agent memory can live as loops replace prompt engineering — blaizedsouza · 2026-07-28