Field noteNov 25, 20262 min read1 source

Deploy private Hugging Face models without sharing your access token

In one minute

Deploying from a private model repository has meant handing an inference provider a credential that can outlive the deployment need. On November 24, 2026, Baseten announced a partnership with Hugging Face to support read-only Trusted Publishers, which Baseten calls a first for inference providers. (baseten.co)

What changed: Baseten and Hugging Face introduced read-only Trusted Publisher access with short-lived tokens for deploying private models.

What happened

Previously, providers typically used a long-lived Hugging Face token that remained valid until deleted; a classic read token can reach every private repository its owner can access, including organization repositories. The earlier Trusted Publisher token could read and write to the private repository. The new read-only token is limited to a single repository, cannot modify it, and expires within an hour of issuance at deployment time.

The exchange uses OpenID Connect: Baseten creates a signed identity token naming the deployment's organization, team and workload type; Hugging Face verifies it against the repository's Trusted Publisher settings before issuing the scoped token. To configure it, find the Baseten organization and team IDs with the CLI, add Baseten as a Trusted Publisher in the Hugging Face repository settings with those scopes, and select Read-only. In Truss, point to the repository and set auth_method to HF_OIDC and hf_oidc_resource to the repository identifier. Baseten says its guide also covers gated models and volume sync.

Why it matters

For a team lead, the operational change is avoiding a stored credential shared across systems: Baseten says the deployment flow needs no long-lived token that could leak or require rotation. The old rotation process meant creating a replacement in Hugging Face, updating it in Baseten, then deleting the old token.

Limits and uncertainty

The “first inference provider” characterization is Baseten's claim.

Reader takeaway

The new flow narrows both token lifetime and permissions: Hugging Face issues a read-only token for one repository at deployment time, and it expires within an hour. Teams still need to configure Baseten as a Trusted Publisher and set the matching Truss authentication fields, but avoid storing and rotating a long-lived Hugging Face token in Baseten.

Evidence / sources

  1. 1baseten.co/blog/deploy-private-hugging-face-models-without-sharing-your-access-token
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicModelsExplore the models topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract