metadata
title: G4F Worker Proxy
sdk: docker
app_port: 7860
G4F Worker Proxy
Public Hugging Face Space wrapper. The real proxy code is loaded from the
APP_CODE_B64 Space Secret at runtime, so this repository can stay public while
the implementation stays out of the Space source tree.
Required Space Secret:
APP_CODE_B64: base64-encoded private proxy module.
Optional Space Secrets / Variables:
PROXY_KEY: require clients to sendAuthorization: Bearer <key>orX-Proxy-Key: <key>.G4F_WORKERS_REF: git ref to load fromgpt4free/g4f.dev, defaultmain.G4F_WORKERS: comma-separated worker files, defaultqwen-worker.js.WORKER_REFRESH_SECONDS: worker source cache TTL, default3600.UPSTREAM_TIMEOUT_MS: upstream request timeout, default60000.