Skip to main content

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

Project details


Release history Release notifications | RSS feed

This version

0.5.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sovyx-0.5.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sovyx-0.5.0-py3-none-any.whl (329.8 kB view details)

Uploaded Python 3

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

Hashes for sovyx-0.5.0.tar.gz
Algorithm Hash digest
SHA256 468266c0fada9522b2a36fdf8c85b9dc520ceb4a73e2f733af601781ebb4f198
MD5 f259abbba3ba62719dbe2c80bbe5f552
BLAKE2b-256 68fb119744bb24edee25f117350d3fcc9253e2f186d3fae1a709e0de256d1206

See more details on using hashes here.

Provenance

The following attestation bundles were made for sovyx-0.5.0.tar.gz:

Publisher: publish.yml on sovyx-ai/sovyx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for sovyx-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 94f72187ac13163448e359657552a94ef8cdd70768d4cbb29c4fe7aac0a39eae
MD5 2fcc774da276e26bc29751d744b9e5b8
BLAKE2b-256 8befcde9b66f8f17a43e1c3994736fbfb340d0003c292d535d9e7037eb9d808f

See more details on using hashes here.

Provenance

The following attestation bundles were made for sovyx-0.5.0-py3-none-any.whl:

Publisher: publish.yml on sovyx-ai/sovyx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page