The full policy — including how to report vulnerabilities privately — is in
SECURITY.md at the
repo root. This page summarizes the operational essentials.
basert serve runs Superfluid. It
binds to loopback and asks for no credential unless told to. It speaks no
TLS, and the request log holds every prompt and completion in plain text. It
is intended for trusted environments. Before exposing it beyond localhost:
- Require auth. Always set
--api-key; clients must sendAuthorization: Bearer <key>orX-Api-Key: <key>. Every route exceptGET /healthneeds it, including/metricsand the Ollama routes. For per-key limits and admin rights, pass Superfluid's--key-policy <file.json>. - Bind deliberately.
--hostdefaults to127.0.0.1. A server bound elsewhere without a key warns at startup. Only bind a public interface behind a TLS-terminating reverse proxy / firewall you control. - Guard the admin routes.
POST /v1/models/loadloads any path the server's user can read. With a key set, it and the other load/unload routes need the global--api-keyor an admin key from--key-policy. - Rate-limit.
--rate-limit <N>caps requests per minute per client IP./healthand/metricsare exempt.X-Forwarded-Foris not read, so behind a reverse proxy every client shares the proxy's address: limit at the proxy or per key instead. - Bound generation.
--max-tokenscaps requests that name no limit;--idle-timeoutunloads idle models.--request-timeoutbounds fill-in-the-middle completions only. - File endpoints.
/v1/filesand/v1/batchesare always on and store uploads in the server's state directory; set--files-max-bytes/--files-expiry. - Protect the state directory. The request log and uploaded files are
kept under
$BASERT_STATE_DIR(by defaultserve/beside the model cache).
Requests from web pages are refused (403 origin_refused) unless their
Origin is on this machine, and the Host header is checked against DNS
rebinding. Clients that send no Origin (curl, the SDKs) are unaffected. The
x-superfluid-qos header is ignored under basert serve.
See Serving an API for all operational flags, and Superfluid's Security page for key policies, the request log and putting a server on a network.
basert servepulls a hub id that is not installed from Hugging Face before it starts, and the paired speculative drafter on first use.--offlinepulls nothing and serves what is installed.- When no Superfluid that can serve this engine is installed,
basert servedownloads one from Superfluid's GitHub releases and checks its SHA-256.BASERT_SUPERFLUID_AUTO_INSTALL=0forbids that download; install ahead of time withbasert superfluid install. - The server itself fetches nothing and runs no update check.
.base bundles can be signed with ed25519. Verify them in your deployment
pipeline with basert verify before loading — see
Signing & verification. An unsigned bundle is still
loadable (by design for development), and verify exits 0 for one, so a
production gate checks that the bundle is signed before verifying it.
Report vulnerabilities privately per
SECURITY.md. Please
don't open public issues for security reports. Issues in the server itself can
also go to Superfluid's
security policy.