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

  • 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, local Ollama โ€” with automatic fallback
  • Cost Control โ€” Daily and per-conversation budgets with persistent tracking
  • Telegram Integration โ€” Talk to your Mind via Telegram
  • Self-Hosted โ€” Your data stays on your hardware. Always.

๐Ÿš€ 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.1.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.1.0.tar.gz (324.4 kB view details)

Uploaded Source

Built Distribution

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

sovyx-0.1.0-py3-none-any.whl (132.4 kB view details)

Uploaded Python 3

File details

Details for the file sovyx-0.1.0.tar.gz.

File metadata

  • Download URL: sovyx-0.1.0.tar.gz
  • Upload date:
  • Size: 324.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sovyx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c08bcce1a9220991b83da7d779ed4b636c28cb71ab7d23310c133a5a747ace45
MD5 ccb3b8869b8076248d536ac508a2f80e
BLAKE2b-256 241561fa72eb5df5005b9fc26dee311017dba1b47093786489f2d522f607db40

See more details on using hashes here.

Provenance

The following attestation bundles were made for sovyx-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: sovyx-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 132.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sovyx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b41e300c0dc8fbd2cd8d4d95b05394791c5768399c11ac7c4ef90ca8e6965839
MD5 19e8984991ae55ff25745320bebd5e86
BLAKE2b-256 81ce91d23d6e05469f2ac54f8edbd953f67bd12337aae76fbf27c5618cd45849

See more details on using hashes here.

Provenance

The following attestation bundles were made for sovyx-0.1.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