uv/docs/concepts
Charlie Marsh a3ea1b69f2
Add support for HF_TOKEN (#14797)
## Summary

If `HF_TOKEN` is set, we'll automatically wire it up to authenticate
requests when hitting private `huggingface.co` URLs in `uv run`.

## Test Plan

An unauthenticated request:

```
> cargo run -- run https://huggingface.co/datasets/cmarsh/test/resolve/main/main.py

  File "/var/folders/nt/6gf2v7_s3k13zq_t3944rwz40000gn/T/mainYadr5M.py", line 1
    Invalid username or password.
            ^^^^^^^^
SyntaxError: invalid syntax
```

An authenticated request:

```
> HF_TOKEN=hf_... cargo run run https://huggingface.co/datasets/cmarsh/test/resolve/main/main.py

Hello from main.py!
```
2025-07-21 20:55:33 +00:00
..
projects Fix typo in concepts/projects/config.md (#14759) 2025-07-20 17:27:33 -04:00
authentication.md Add support for HF_TOKEN (#14797) 2025-07-21 20:55:33 +00:00
build-backend.md Add release notes and bump version for 0.8.0 (#14690) 2025-07-17 17:20:21 -05:00
cache.md Suggest uv cache clean prior to --reinstall (#14659) 2025-07-16 12:02:29 -04:00
configuration-files.md Remove the configuration section in favor of concepts / reference (#13842) 2025-06-05 17:09:49 +00:00
index.md Remove the configuration section in favor of concepts / reference (#13842) 2025-06-05 17:09:49 +00:00
indexes.md Allow users to override index cache-control headers (#14620) 2025-07-15 10:00:04 -04:00
python-versions.md Stabilize addition of Python executables to the bin (#14626) 2025-07-17 17:20:21 -05:00
resolution.md Move "Conflicting dependencies" to the "Resolution" page (#14633) 2025-07-15 16:47:43 -05:00
tools.md feature: shorthand for --with (-w) in uvx and uv tool run (#14530) 2025-07-10 13:50:50 -05:00