Prerequisites
Docker
Required to run HugBucket from the pre-built image. Install Docker Desktop or Docker Engine before continuing.
Hugging Face token
A Hugging Face access token (
HF_TOKEN). Generate one from your HF account settings with read/write access to your buckets.Run HugBucket
- S3 mode
- FTP mode
1
Start the container
Pull and run the HugBucket image with S3 mode enabled. Replace
hf_xxxxx with your real Hugging Face token.AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are the credentials your S3 client will use to authenticate with HugBucket — they are not your AWS credentials. Set them to any value you choose and use the same values in your S3 client configuration.2
Verify with AWS CLI
Once the container is up, point the AWS CLI at the local endpoint to list your Hugging Face buckets and upload a file.
Environment variables
Development mode
To run HugBucket from source, install uv and use the commands below.1
Install dependencies
2
Start the gateway
Use the unified entrypoint with
MODE, or call a protocol-specific entrypoint directly.The protocol-specific entrypoints (
hugbucket-s3, hugbucket-ftp) still require the MODE environment variable to match the protocol. Using hugbucket-s3 without MODE=s3 will exit with an error.