Spark - Secure Personal AI Research Kit
Spark is a powerful, multi-provider LLM interface for conversational AI with integrated tool support. It supports AWS Bedrock, Anthropic Direct API, and Ollama local models through both CLI and Web interfaces.
Key Features
- Multi-Provider Support - AWS Bedrock, Anthropic Direct API, and Ollama local models
- Dual Interface - Rich CLI terminal UI and modern Web browser interface
- MCP Tool Integration - Connect external tools via Model Context Protocol
- Intelligent Context Management - Automatic conversation compaction with model-aware limits
- Security Features - Prompt inspection, tool permissions, and audit logging
- Multiple Database Backends - SQLite, MySQL, PostgreSQL, and Microsoft SQL Server
Quick Start
Installation
pip install dtSpark
First-Time Setup
Run the interactive setup wizard to configure Spark:
spark --setup
This guides you through:
- LLM provider selection and configuration
- Database setup
- Interface preferences
- Security settings
Running Spark
# Start with CLI interface
spark
# Or use the alternative command
dtSpark
Documentation
Comprehensive documentation is available in the docs folder:
- Installation Guide - Detailed installation instructions
- Configuration Reference - Complete config.yaml documentation
- Features Guide - Detailed feature documentation
- CLI Reference - Command-line options and chat commands
- Web Interface - Web UI guide
- MCP Integration - Tool integration documentation
- Security - Security features and best practices
Architecture Overview
graph LR
subgraph Interfaces
CLI[CLI]
WEB[Web]
end
subgraph Core
CM[Conversation<br/>Manager]
end
subgraph Providers
BEDROCK[AWS Bedrock]
ANTHROPIC[Anthropic]
OLLAMA[Ollama]
end
subgraph Tools
MCP[MCP Servers]
BUILTIN[Built-in Tools]
end
CLI --> CM
WEB --> CM
CM --> BEDROCK
CM --> ANTHROPIC
CM --> OLLAMA
CM --> MCP
CM --> BUILTIN
Requirements
- Python 3.10 or higher
- AWS credentials (for Bedrock)
- Anthropic API key (for direct API)
- Ollama server (for local models)
Licence
MIT Licence - see LICENSE for details.
Author
Matthew Westwood-Hill matthew@digital-thought.org
Support
- Documentation: docs/
- Issues: GitHub Issues
Release files for dtSpark 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dtspark-1.0.11.tar.gz | 315.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dtspark-1.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 646.5 kB
Release files / dtspark-1.0.11.tar.gz
| Download URL | dtspark-1.0.11.tar.gz |
|---|---|
| Size | 315.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f6ce8544cb4e9c6194411589e671a1d7b4e78ec930c406858f3a66e66c82cfc
|
|
BLAKE2b-256 checksum How to use checksums |
bb4d32791b2f01053d33a448e17eb17201a39b732472667ed44d1b2d59a0a21b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 27, 2026.
Transparency logRelease files / dtspark-1.0.11-py3-none-any.whl
| Download URL | dtspark-1.0.11-py3-none-any.whl |
|---|---|
| Size | 331.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75414471745e5a946b40b4cd0ea682a614c6805cc4f051c8586426863c127d6f
|
|
BLAKE2b-256 checksum How to use checksums |
8ed5fcc266a35feb522163104a0684b0b7adc204bf7e981da6b6830d16021c14
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
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 Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jan 27, 2026.
Transparency log