# Baseten — Deploy private Hugging Face models without sharing your access token

- Company: Baseten (baseten.co)
- Announced: 2026-11-24T19:27:51+00:00
- Category: capability-change
- Coverage: not counted
- Announcement: no
- Group: routine
- Source: https://www.baseten.co/blog/deploy-private-hugging-face-models-without-sharing-your-access-token
- Record: https://forck.live/items/40793-deploy-private-hugging-face-models-without-sharing-your-access-token
- Subject: Baseten

Baseten says it is the first inference provider to support read-only Hugging Face Trusted Publishers, letting teams deploy private model weights without handing over a long-lived access token. Trusted Publishers previously issued tokens that could both read from and write to a private repository, so anyone holding one could modify the repo even when they only needed to download weights. With read-only access, Hugging Face issues a token at deploy time that can only read the repo and expires within an hour. The flow uses OpenID Connect: Baseten creates a signed identity token naming the organization, team and workload type, and Hugging Face checks the signature against the Trusted Publisher settings before issuing the token. Baseten says it worked with the Hugging Face team to add read-only access, and that the change removes a long-lived token that could leak or need rotation. Setup requires the Baseten organization and team IDs from the CLI, adding Baseten as a read-only Trusted Publisher in the Hugging Face repo settings, and pointing the Truss config at the repo with the HF_OIDC auth method.

## Evidence

Verbatim from https://www.baseten.co/blog/deploy-private-hugging-face-models-without-sharing-your-access-token:

> Many teams store fine-tuned and proprietary model weights in private Hugging Face repos. Hugging Face Trusted Publishers lets an external platform download those weights for deployment, fine-tuning, or evaluation using a short-lived token instead of a long-lived one.
> 
> Until now, the token could also write to the repo. Today, Trusted Publishers supports read-only access. To safely deploy private models, inference providers can use short-lived, read-only tokens to pull your model weights. Because these tokens don't have write access, they can't modify your repo.
> 
> We're proud to be the first inference provider to support read-only Trusted Publishers for syncing model weights at deploy time, joining our existing OIDC support for pulling weights from S3 and GCS. We worked with the Hugging Face team to add read-only access to Trusted Publishers, and we'll keep working with partners across the industry to make workload identity and scoped access controls the default for AI infrastructure, replacing long-lived API keys.
> 
> The problem with long-lived Hugging Face tokens

---

Record: https://forck.live/items/40793-deploy-private-hugging-face-models-without-sharing-your-access-token
Catalogue: https://forck.live/llms.txt
Current issue: https://forck.live/feed.md
