Skip to main content Switch to mobile version kollabor-engine 0.26.3 Kollab AI engine - HTTP/SSE server wrapping kollabor-ai and kollabor-agent
pip install kollabor-engine==0.26.3 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.
Headless HTTP API for creating chat sessions and sending turns.
SSE streaming for model tokens, thinking content, tool events, permission prompts, and turn completion metadata.
Local profile management over the existing Kollabor profile store.
Session-owned permission manager and MCP integration.
Hub mesh read/control endpoints for active local agents.
Web UI backend for kollabor-webui.
The engine is a thin service layer over other workspace packages:
Main engine modules:
To run this alongside kollabor-webui in one step, use kollab --web-ui from the repo root instead (see packages/kollabor-webui/README.md).
Start the local service on its own:
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.
Web UI Agent Persistence
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-
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.
Health and metadata endpoints:
| POST | /handover | flush current WebUI-owned session metadata before a controlled restart; never stops a daemon |
Session and message endpoints:
Profiles, MCP, and hub routes:
These are current implementation gaps to address before treating the engine as a reliable service boundary:
Session workspace is stored but not yet enforced for terminal and file tools.
Provider instances are singleton per provider type, which can leak model, base URL, headers, or credentials across sessions.
The session MCP connect endpoint currently reports connecting but does not start a connection.
Anthropic profile testing imports a missing legacy APIService.
Provider-registry and background watcher lifecycle still need a first-class lifespan model. WebUI-owned daemons now detach and reattach across engine shutdown; ordinary CLI sessions are still stopped by the engine.
Phase 1: Make the local daemon trustworthy
Enforce session workspace for shell, file, and MCP tool execution.
Replace provider-type singletons with config-scoped or session-scoped provider instances.
Implement real session MCP connect behavior and add tests that prove tools are registered after connection.
Fix /profiles/{name}/test to use current provider APIs.
Add targeted tests for the findings above.
Phase 2: Harden service lifecycle
Replace deprecated FastAPI on_event startup/shutdown hooks with lifespan management.
Move the module-level session registry behind an explicit service object.
Add provider-registry shutdown and WebSocket watcher cleanup to app shutdown.
Add concurrency guards around session mutation, message turns, permission resolution, and history/system-prompt changes.
Normalize error payloads and request/response schemas.
Phase 3: Clarify service boundaries
Decide whether engine owns tool execution directly or wraps the existing CLI runtime as a client-facing API.
Add a project/session namespace model so multiple workspaces can run without cwd or hub-presence ambiguity.
Define which endpoints are local-only, trusted-client-only, or safe for broader exposure.
Document compatibility expectations for kollabor-webui and external clients.
Phase 4: Productize the web/hub path
Finish live hub event streaming beyond snapshot polling.
Add richer permission scopes and UI feedback over SSE.
Persist recoverable session metadata where useful.
Add smoke tests that start engine + web UI against a temporary config home.
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.
uvicorn[standard] >= 0.32
sse-starlette >= 2.1
Released: Dec 5, 2026
Apache-2.0 View SPDX License List
Release files for kollabor-engine 0.26.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 860.5 kB
Release files / kollabor_engine-0.26.3.tar.gz
Release files / kollabor_engine-0.26.3-py3-none-any.whl
Security for kollabor-engine 0.26.3
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.
A note on package security
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.
Release history Release notifications | RSS feed
May 5, 2026 2 release files No provenance
Yanked reason: Accidental release; use the 0.5.x series until the 1.0 release is ready
Dec 5, 2026 2 release files No provenance
Dec 4, 2026 2 release files No provenance
Dec 3, 2026 2 release files No provenance
Dec 2, 2026 2 release files No provenance
Nov 27, 2026 2 release files No provenance
Nov 21, 2026 2 release files No provenance
Nov 16, 2026 2 release files No provenance
Nov 14, 2026 2 release files No provenance
Nov 9, 2026 2 release files No provenance
Nov 8, 2026 2 release files No provenance
Nov 4, 2026 2 release files No provenance
Nov 3, 2026 2 release files No provenance
Oct 26, 2026 2 release files No provenance
Oct 19, 2026 2 release files No provenance
Oct 18, 2026 2 release files No provenance
Oct 17, 2026 2 release files No provenance
Oct 16, 2026 2 release files No provenance
Oct 15, 2026 2 release files No provenance
Oct 14, 2026 2 release files No provenance
Oct 13, 2026 2 release files No provenance
Oct 12, 2026 2 release files No provenance
Oct 11, 2026 2 release files No provenance
Oct 10, 2026 2 release files No provenance
Oct 9, 2026 2 release files No provenance
Oct 8, 2026 2 release files No provenance
Oct 7, 2026 2 release files No provenance
Oct 6, 2026 2 release files No provenance
Oct 4, 2026 2 release files No provenance
Oct 2, 2026 2 release files No provenance
Oct 1, 2026 2 release files No provenance
Sep 28, 2026 2 release files No provenance
Sep 27, 2026 2 release files No provenance
Sep 19, 2026 2 release files No provenance
Sep 18, 2026 2 release files No provenance
Aug 28, 2026 2 release files No provenance
Aug 22, 2026 2 release files No provenance
Aug 3, 2026 2 release files No provenance
Aug 1, 2026 2 release files No provenance
Jul 29, 2026 2 release files No provenance
Jul 28, 2026 2 release files No provenance
Jul 21, 2026 2 release files No provenance
Jul 3, 2026 2 release files No provenance
Jun 26, 2026 2 release files No provenance
Jun 22, 2026 2 release files No provenance
Jun 21, 2026 2 release files No provenance
May 28, 2026 2 release files No provenance
May 26, 2026 2 release files No provenance
May 22, 2026 2 release files No provenance
May 6, 2026 2 release files No provenance
Apr 24, 2026 2 release files No provenance
Apr 16, 2026 2 release files No provenance
Feb 23, 2026 2 release files No provenance
Feb 20, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 4d99e05











