Scope reads the following environment variables at startup. Set them in your shell, .env file, or cloud provider’s configuration panel. The HF_TOKEN can also be set directly in the Scope UI via Settings > API Keys - see HuggingFace Auth for details.
HuggingFace access token for downloading gated models and obtaining Cloudflare TURN credentials for WebRTC. Can also be set via Settings > API Keys in the Scope UI. See HuggingFace Auth for setup instructions.
Scope uses TURN servers for WebRTC connections behind firewalls. By default, it obtains credentials from Cloudflare using your HF_TOKEN. You can override this with direct Cloudflare or Twilio credentials.
Variable
Default
Description
CLOUDFLARE_TURN_KEY_ID
-
Cloudflare TURN key ID for direct TURN configuration (alternative to HF_TOKEN)
CLOUDFLARE_TURN_KEY_API_TOKEN
-
Cloudflare TURN key API token for direct TURN configuration (alternative to HF_TOKEN)