Sovereign Minds Engine โ Persistent AI companion with real memory
Project description
๐ง Sovyx โ The AI Mind That Remembers You
Sovyx is a self-hosted AI companion engine that builds genuine, persistent memory of the people it talks to. Unlike chatbots that forget everything between sessions, Sovyx creates a cognitive model of each person โ their preferences, history, personality, and context โ and uses it to have meaningful conversations.
โจ Features
Core
- Persistent Memory โ Concepts, episodes, and relationships stored in a brain-inspired architecture
- Personality Engine โ OCEAN model + configurable traits define how your Mind communicates
- Semantic Search โ FTS5 + sqlite-vec embedding for intelligent recall
- Adaptive Context โ Lost-in-Middle ordering, adaptive token budgets, 6-slot context assembly
- Multi-Provider LLM โ Anthropic Claude, OpenAI GPT, Google Gemini, local Ollama โ with automatic failover and complexity-based routing
- Cost Control โ Daily and per-conversation budgets with persistent tracking
- Self-Hosted โ Your data stays on your hardware. Always.
v0.5 "First Words" โ NEW
- ๐๏ธ Voice Pipeline โ Wake word detection, VAD, local STT/TTS (Silero, Moonshine, Piper, Kokoro), Home Assistant integration via Wyoming
- ๐ Dashboard โ Real-time web UI with brain visualization, conversations, logs, settings, and system status
- โ๏ธ Cloud Backup โ Zero-knowledge encrypted backups (Argon2id + AES-256-GCM), Stripe billing, usage metering
- ๐ก Signal Integration โ Talk to your Mind via Signal (via signal-cli-rest-api)
- ๐ Observability โ SLO monitoring, Prometheus /metrics, alerting, cost tracking
- ๐ Zero-Downtime Upgrades โ Blue-green upgrade pipeline with automatic rollback
- ๐๏ธ Benchmarks โ Performance budgets per hardware tier (Pi5, N100, GPU), baseline regression detection
- ๐ Telegram + Signal โ Multi-channel messaging
๐ Quick Start
1. Install
pip install sovyx
Or with Docker:
docker run -d --name sovyx \
-e ANTHROPIC_API_KEY=sk-ant-... \
-e SOVYX_TELEGRAM_TOKEN=123456:ABC... \
ghcr.io/sovyx-ai/sovyx:latest
2. Initialize
sovyx init MyMind
This creates ~/.sovyx/ with your Mind configuration.
3. Configure
Edit ~/.sovyx/mymind/mind.yaml:
name: MyMind
language: en
timezone: UTC
personality:
tone: warm
humor: 0.4
empathy: 0.8
llm:
default_provider: anthropic
default_model: claude-sonnet-4-20250514
budget_daily_usd: 2.0
channels:
telegram:
token_env: SOVYX_TELEGRAM_TOKEN
4. Set API Keys
export ANTHROPIC_API_KEY=sk-ant-... # or OPENAI_API_KEY
export SOVYX_TELEGRAM_TOKEN=123456:ABC... # from @BotFather
5. Start
sovyx start
Now message your bot on Telegram. Sovyx will remember you.
๐๏ธ Architecture
โโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโ
โ Telegram โโโโโโถโ Cognitive โโโโโโถโ LLM Router โ
โ Bridge โโโโโโโ Loop โโโโโโโ (Claude/ โ
โ โ โ (OODA) โ โ GPT/Local)โ
โโโโโโโโโโโโโโโ โโโโโโโโฌโโโโโโโโ โโโโโโโโโโโโโโโ
โ
โโโโโโโโผโโโโโโโโ
โ Brain โ
โ โโโโโโโโโโโ โ
โ โConcepts โ โ FTS5 + sqlite-vec
โ โEpisodes โ โ Spreading activation
โ โRelationsโ โ Hebbian learning
โ โโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโ
Cognitive Loop (OODA): Perceive โ Attend โ Think โ Act โ Reflect
Each message triggers the full loop: perception extracts intent, attention prioritizes, thinking generates response via LLM with full context, action delivers, and reflection learns concepts from the exchange.
๐ Requirements
- Python 3.11+
- SQLite 3.35+ (with FTS5)
- 512MB RAM minimum (Pi 5 compatible)
- LLM API key (Anthropic or OpenAI) or local Ollama
๐ง CLI Commands
sovyx init [name] # Initialize Mind
sovyx start # Start daemon
sovyx stop # Stop daemon
sovyx status # Check status
sovyx doctor # Health check (v0.5)
๐งช Development
git clone https://github.com/sovyx-ai/sovyx.git
cd sovyx
uv sync --dev
uv run pytest # 1233 tests
uv run ruff check src/ tests/ # Lint
uv run mypy src/sovyx --strict # Type check
Quality: 96% coverage, mypy strict, ruff, bandit โ enforced in CI.
๐บ๏ธ Roadmap
| Version | Codename | Key Features |
|---|---|---|
| v0.1 | First Breath | Core engine, brain, Telegram, CLI |
| v0.5 | First Words | Voice pipeline, dashboard, Signal, cloud backup |
| v1.0 | The Mind That Remembers | Emotional engine, plugins, Home Assistant, REST API |
| v1.1 | The Mind That Speaks | Multi-language voice, barge-in |
| v1.2 | The Mind That Acts | Financial intelligence, autonomy |
| v1.3 | The Mind In Your Pocket | Flutter mobile app |
| v2.0 | The Mind That Grows | Multi-agent platform |
๐ License
AGPL-3.0 โ See LICENSE for details.
๐ Links
- GitHub: github.com/sovyx-ai/sovyx
- Docs: Coming soon
- Discord: Coming soon
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sovyx-0.5.0.tar.gz.
File metadata
- Download URL: sovyx-0.5.0.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
468266c0fada9522b2a36fdf8c85b9dc520ceb4a73e2f733af601781ebb4f198
|
|
| MD5 |
f259abbba3ba62719dbe2c80bbe5f552
|
|
| BLAKE2b-256 |
68fb119744bb24edee25f117350d3fcc9253e2f186d3fae1a709e0de256d1206
|
Provenance
The following attestation bundles were made for sovyx-0.5.0.tar.gz:
Publisher:
publish.yml on sovyx-ai/sovyx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sovyx-0.5.0.tar.gz -
Subject digest:
468266c0fada9522b2a36fdf8c85b9dc520ceb4a73e2f733af601781ebb4f198 - Sigstore transparency entry: 1248446311
- Sigstore integration time:
-
Permalink:
sovyx-ai/sovyx@0da7228df6651f740d192c485e3bda8a6a729790 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/sovyx-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0da7228df6651f740d192c485e3bda8a6a729790 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sovyx-0.5.0-py3-none-any.whl.
File metadata
- Download URL: sovyx-0.5.0-py3-none-any.whl
- Upload date:
- Size: 329.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94f72187ac13163448e359657552a94ef8cdd70768d4cbb29c4fe7aac0a39eae
|
|
| MD5 |
2fcc774da276e26bc29751d744b9e5b8
|
|
| BLAKE2b-256 |
8befcde9b66f8f17a43e1c3994736fbfb340d0003c292d535d9e7037eb9d808f
|
Provenance
The following attestation bundles were made for sovyx-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on sovyx-ai/sovyx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sovyx-0.5.0-py3-none-any.whl -
Subject digest:
94f72187ac13163448e359657552a94ef8cdd70768d4cbb29c4fe7aac0a39eae - Sigstore transparency entry: 1248446317
- Sigstore integration time:
-
Permalink:
sovyx-ai/sovyx@0da7228df6651f740d192c485e3bda8a6a729790 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/sovyx-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0da7228df6651f740d192c485e3bda8a6a729790 -
Trigger Event:
push
-
Statement type: