modly
modly copied to clipboard
HF token reaches every extension's environment
The Hugging Face token is set in the FastAPI process env (HF_TOKEN / HUGGING_FACE_HUB_TOKEN), and ExtensionProcess._build_env() copies that whole env into every extension worker, so any third-party extension can read it.
Only pass it to the processes that need it (downloads), the same way remote extensions get only their own declared secrets.