﻿---
title: "Hugging Face 模型供应商"
filename: "~/.codex/config.toml"
canonical: /templates/hf-inference-providers/
---

# Hugging Face 模型供应商

router.huggingface.co/v1，env_key = HF_TOKEN，wire_api = responses。再用 huggingface.config.toml 和 --profile huggingface。不是 Hub MCP。

```
[model_providers.huggingface]
name = "Hugging Face"
base_url = "https://router.huggingface.co/v1"
env_key = "HF_TOKEN"
wire_api = "responses"

```
