Penv Cloud
Start free
Docs
Reference

Hugging Face Spaces

Push an environment into a Hugging Face Space's secrets.

Push an environment into a Hugging Face Space's secrets.

Connection

WhatThis provider
VendorHugging Face
Keyhuggingface-space-secret
Availabilityavailable. You can connect it today.
Credential we holdhuggingface-token
Values read backno
Activationrestart-on-write

Directions

DirectionWhat it does
exportWe write names and values from your environment into the store.

Hugging Face returns no value once it holds one, so we can write here and cannot read back.

Activation

restart-on-write. When we write a value, the workload restarts.

Conflict policies

DirectionPolicies you can pick
exportcreate_only, overwrite, overwrite_and_prune

How syncs work says what each one does.

Connect

Paste a credential from the vendor. We seal it and never show it again.

FieldLabelKindRequiredWhat it is
tokenAccess tokensecret; we mask it here and seal ityesA user access token with write access to this Space.

Mapping fields

You answer these once per environment you map.

FieldLabelKindRequiredAdvancedWhat it is
repoIdSpacetextyesnoOwner and Space name, as they appear in its URL.

Required permissions

We probe for these when we verify the connection.

PermissionDirectionsBlockingWithout it
spaces:readevery directionyesPreview cannot list the Space's secrets.
spaces:writeexportyesExport cannot write anything.