Skip to content

sachnun/hugbucket

Repository files navigation

HugBucket

S3-compatible gateway for Hugging Face Storage Buckets.

Quick Start

You'll need Docker to get started.

docker run -d \
  -p 9000:9000 \
  -e HF_TOKEN=hf_xxxxx \
  -e AWS_ACCESS_KEY_ID=hugbucket \
  -e AWS_SECRET_ACCESS_KEY=hugbucket \
  ghcr.io/sachnun/hugbucket

Usage

aws --endpoint-url http://localhost:9000 s3 ls
aws --endpoint-url http://localhost:9000 s3 cp file.txt s3://my-bucket/file.txt

Environment Variables

Variable Description
HF_TOKEN* Hugging Face token
AWS_ACCESS_KEY_ID S3 access key
AWS_SECRET_ACCESS_KEY S3 secret key

Development

This project uses uv for dependency management.

uv sync

HF_TOKEN=hf_xxxxx uv run hugbucket

About

S3-compatible gateway for Hugging Face Storage Buckets.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors