This release is a pre-release and may not be stable for production use.
Spark is a secure, multi-provider AI research kit with a modern web interface. It connects to AI models through conduit: Amazon Bedrock (including Claude through Bedrock's mantle endpoint), Anthropic, Claude in Microsoft Foundry, OpenAI, X.AI, Microsoft Foundry, Google Gemini and Ollama, with features like MCP tool integration, intelligent context management, persistent memory, and autonomous scheduled actions.
Spark is distributed through PyPI and runs on macOS, Windows and Linux with Python 3.12 or later.
Standalone builds (signed macOS DMGs and the Windows installer) are paused: releases since 0.2.0b14 are published to PyPI only. Install with pip or uv as below.
pip install cognisn-spark Run with uv uv can install and run Spark from PyPI:
uv tool install cognisn-spark # then run: spark uv tool install keeps Spark and its (large) dependencies installed between runs, which is what you want. For a throwaway run, uvx cognisn-spark works too but re-downloads everything each time.
Spark's embeddings run on the CPU. On Linux the default PyTorch from PyPI also brings about 2.4 GB of NVIDIA CUDA packages that Spark never uses; install the CPU-only build instead. macOS and Windows already get a CPU-only PyTorch and need nothing extra.
# uv uv tool install cognisn-spark --torch-backend cpu # pip: PyTorch from its CPU index first, then Spark pip install torch --index-url https://download.pytorch.org/whl/cpu pip install cognisn-spark With pip, a later pip install --upgrade torch without --index-url would bring the CUDA build back; upgrade Spark with pip install --upgrade cognisn-spark instead.
On a headless server, disable the browser auto-open and pin a port:
SPARK__INTERFACE__OPEN_BROWSER=false SPARK__INTERFACE__PORT=8765 spark Databases Personal mode (the default) keeps everything in a local SQLite database and needs nothing extra. Server mode uses PostgreSQL with pgvector 0.8 or later, through psycopg 3, which is included; see Server Mode. MySQL and SQL Server are no longer supported.
spark On first launch, Spark creates a configuration file, starts the web server on a random port, and opens your browser. Add a model connection in Settings > Connections and start chatting.
Every model is reached through a connection: one named service with its own settings, credentials, Region and residency policy (in-Region for Bedrock and Microsoft Foundry, global for the direct APIs, local for Ollama, by default). Add as many as you like, several of one service included; each lists conduit's catalogue models for its service and Region, marked reachable or not by a live discovery, and offers the ones you enable. A model is chosen as connection/model, and the model picker groups models by connection. On a server, administrators assign connections to roles and users, and can meter a connection in credits with a monthly allowance per assignment. See Connections and Metering. Upgrading from 0.2 converts config.yaml's providers into connections on the first start.
Spark stores its configuration in platform-standard locations:
API keys are stored in the OS keychain (macOS Keychain, Windows Credential Locker, Linux Secret Service) via the cognisn-konfig library.
Spark can also run as a multi-user server for a team: PostgreSQL with pgvector, the web interface (spark web, one or more replicas) and a background worker (spark worker) from one container image, with sign-in, two-step verification, single sign-on, roles and an audit trail through warden, and every secret in konfig's encrypted store or AWS Secrets Manager.
cp deploy/spark.env.example deploy/spark.env # then set real values docker compose -p spark -f deploy/compose.yaml up -d The stack runs spark migrate and spark bootstrap first, which invites the first administrator (named in spark.env) by mail; spark identity create-admin is only for recovery.
A server needs a TLS reverse proxy in front and server.public_base_url set to its address. The server deployment guide covers the Compose stack, secrets, the reverse proxy, identity and mail, database roles, backups, upgrades, and moving people over from personal mode with a user bundle.
graph TB subgraph UI ["Web Interface"] FE["FastAPI + SSE + Bootstrap 5 (Cognisn)"] Voice["Voice / Speech-to-Text"] Sidecar["Tool Activity Sidecar"] end subgraph Core ["Conversation Manager"] CM["Context Compaction / Memory / RAG / Tool Routing"] end subgraph Providers ["Model connections (conduit)"] Bedrock["Amazon Bedrock and mantle"] Anthropic["Anthropic and Claude in Foundry"] OpenAI["OpenAI, X.AI and Foundry"] Gemini["Google Gemini"] Ollama["Ollama"] end subgraph Tools ["Tools"] MCP["MCP Servers"] Builtin["Built-in Tools"] Memory["Memory"] WebSearch["Web Search"] EmailTool["Email (SMTP)"] DocCreate["Document Creation"] Agents["Sub-Agents"] SysCmd["System Commands"] end subgraph Foundation ["cognisn-konfig"] Settings["Settings"] Secrets["Secrets"] Logging["Logging"] end UI --> Core Core --> Providers Core --> Tools Core --> Foundation Keyboard Shortcuts Shortcut Action Ctrl/Cmd + K Go to Conversations Ctrl/Cmd + N New Conversation Ctrl/Cmd + , Open Settings Enter Send message Shift + Enter New line Development git clone https://github.com/Cognisn/spark.git cd spark python -m venv .venv source .venv/bin/activate pip install -e ".[dev]" pytest Changelog See CHANGELOG.md.
MIT License with Commons Clause -- free for personal and educational use. Commercial use requires a licence from the author. See LICENSE.
1 file in this release has provenance metadata.
Other/Proprietary License (MIT with Commons Clause)
ai anthropic aws bedrock chatbot claude llm mcp model-context-protocol ollama web
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
1 file in this release has been 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.
Nov 22, 2026 1 release file Full provenance
Nov 20, 2026 1 release file Full provenance
Nov 19, 2026 1 release file Full provenance
Oct 28, 2026 1 release file Full provenance
Jul 26, 2026 1 release file Full provenance
Jul 25, 2026 1 release file Full provenance
Jul 23, 2026 1 release file Full provenance
Jul 14, 2026 1 release file Full provenance
Jul 10, 2026 1 release file Full provenance
Jul 9, 2026 1 release file Full provenance
May 24, 2026 1 release file Full provenance
May 8, 2026 1 release file Full provenance
May 5, 2026 1 release file Full provenance
Apr 17, 2026 1 release file Full provenance
Apr 15, 2026 1 release file Full provenance
Apr 14, 2026 1 release file Full provenance
Apr 6, 2026 1 release file Full provenance
Apr 5, 2026 1 release file Full provenance
Apr 4, 2026 1 release file Full provenance
Apr 3, 2026 1 release file Full provenance
Apr 2, 2026 1 release file Full provenance
Apr 1, 2026 1 release file Full provenance
Mar 31, 2026 1 release file Full provenance




