Kollab AI engine - HTTP/SSE server wrapping kollabor-ai and kollabor-agent
pip install kollabor-engine==0.18.4 Copy PIP instructions
kollabor-engine is the local HTTP/SSE runtime for Kollabor.
It wraps the same core AI, tool, permission, profile, MCP, and hub pieces used by the terminal app, but exposes them through a FastAPI service. The intended use is a local companion daemon for kollabor-webui, browser-based control surfaces, and other trusted local clients.
This package is not yet a production multi-user service. It currently relies on in-memory sessions and process-global runtime state, so treat it as a per-user local service bound to 127.0.0.1.
The engine is a thin service layer over other workspace packages:
To run this alongside kollabor-webui in one step, use kollab --web-ui from the repo root instead (see packages/kollabor-webui/README.md).
python -m kollabor_engine serve --host 127.0.0.1 --port 7433 On startup, the service writes a bearer token to:
~/.kollab/engine.token Use that token for protected endpoints:
TOKEN="$(cat ~/.kollab/engine.token)" curl -H "Authorization: Bearer $TOKEN" \ http://127.0.0.1:7433/sessions Programmatic app creation (pass the listening port to enable Web UI persistence):
from kollabor_engine import create_app app = create_app(port=7433) Calling create_app() without a port preserves the non-persistent lifecycle used by embedded/test integrations.
The kollab --web-ui launcher starts the engine with its selected port. Only sessions created by that Web UI are marked persistent: the engine records a per-port manifest at ~/.kollab/engine/webui- .json with the daemon PID, process start time, identity, workspace, socket, and conversation identifier. The manifest is atomically updated with restrictive file permissions (user-only on POSIX) and excludes credentials and conversation contents. A new engine adopts only a matching live PID/socket/identity after the prior owner has shut down or exited, then restores the session and history in the Web UI. POST /handover flushes that metadata before an orderly launcher restart; crash recovery does not rely on it.
Closing or restarting the Web UI/engine detaches the engine connection without stopping a persistent daemon. Web UI Delete and agent /quit remain explicit stop actions. Agents launched by the terminal/CLI are not marked persistent and keep their existing stop-on-engine-shutdown behavior.
| POST | /handover | flush current WebUI-owned session metadata before a controlled restart; never stops a daemon |
These are current implementation gaps to address before treating the engine as a reliable service boundary:
Run package tests against the local source tree:
PYTHONPATH=packages/kollabor-engine/src:packages/kollabor-ai/src:packages/kollabor-agent/src:packages/kollabor-events/src:packages/kollabor-config/src:packages/kollabor-rpc/src:packages/kollabor-tui/src:packages/kollabor-plugins/src \ python -m pytest packages/kollabor-engine/tests -q Without the PYTHONPATH override, this checkout may import an installed kollabor_engine from site-packages instead of the local package.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Yanked reason: Accidental release; use the 0.5.x series until the 1.0 release is ready




