---
type: "post"
id: "deploy-private-hugging-face-models-without-sharing-your-4b7f62"
slug: "deploy-private-hugging-face-models-without-sharing-your-4b7f62"
title: "Deploy private Hugging Face models without sharing your access token"
description: "Deploying from a private model repository has meant handing an inference provider a credential that can outlive the deployment need."
retrieval_nugget: "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)"
published_at: "2026-11-25"
updated_at: "2026-11-25"
record_date: "2026-11-25"
date_kind: "published_at"
topics: ["models"]
entities: ["Baseten","Hugging Face","Trusted Publishers","Truss"]
related_patterns: ["agent-security-moves-to-runtime-boundaries"]
novelty_label: "new_fact"
what_changed: "Baseten and Hugging Face introduced read-only Trusted Publisher access with short-lived tokens for deploying private models."
prior_refs: []
source_url: "https://www.baseten.co/blog/deploy-private-hugging-face-models-without-sharing-your-access-token"
source_urls: ["https://www.baseten.co/blog/deploy-private-hugging-face-models-without-sharing-your-access-token"]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:deploy-private-hugging-face-models-without-sharing-your-4b7f62"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/deploy-private-hugging-face-models-without-sharing-your-4b7f62/","markdown":"https://newruntime.com/posts/deploy-private-hugging-face-models-without-sharing-your-4b7f62.md","json":"https://newruntime.com/posts/deploy-private-hugging-face-models-without-sharing-your-4b7f62.json"}
markdown_url: "https://newruntime.com/posts/deploy-private-hugging-face-models-without-sharing-your-4b7f62.md"
---

# Deploy private Hugging Face models without sharing your access token

## Retrieval answer

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)

## Summary

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](https://www.baseten.co/blog/deploy-private-hugging-face-models-without-sharing-your-access-token))

## 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.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Models](https://newruntime.com/topics/models.md): Explore the models topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
