Skip to content
Hugging BayGet the app

Local API for developers

Advanced settings exposes a local API for tools on the same computer. It binds to 127.0.0.1 only and is off by default.

  1. Open the app menu, Advanced settings, Local server.
  2. Turn Local API on. Wait until the base URL and token appear.
  3. Choose Copy URL and token. Send Authorization: Bearer with the token on each request.
  4. Supported routes include GET /v1/models and POST /v1/chat/completions with JSON or SSE. Unknown paths return 404 with code unknown_route.
  5. Turn Local API off when finished.
Local API screen showing 127.0.0.1 and copy token.
Placeholder: local API with URL and token.

Back to help