Serve KAOS over HTTP (with auth)
For network serving (rather than a stdio subprocess), kaos-mcp and the package *-serve
commands offer streamable HTTP. It is auth-required by default — KAOS refuses to
expose tools over an open network endpoint.
Run it
Section titled “Run it”# An explicit token is required — the server won't start without acknowledging itexport KAOS_MCP_HTTP_TOKEN="$(openssl rand -hex 32)"kaos-agents-serve --http --port 8000Clients then connect with the token as a bearer credential.
- The required token is an operator acknowledgement, not a substitute for real authentication. In production, put the server behind a reverse proxy that does proper auth/TLS — the token guards against accidentally exposing tools, not against a determined attacker. See session enforcement.
- Identity on each request scopes session memory and the VFS, so multiple callers stay isolated.
- For desktop AI clients, prefer stdio (connect an AI tool) — it’s simpler and needs no network exposure.