Skip to main content

Local-first, encrypted AI memory and identity standard

Project description

SovereignBox

Local-first, encrypted AI memory and identity standard.

SovereignBox lets you own your AI conversation context — stored locally in an encrypted vault, portable across AI systems, and fully under your control.

Features

  • 🔐 Encrypted vault — Scrypt KDF + Fernet (AES-128-CBC + HMAC-SHA256)
  • 📋 Typed schema — Pydantic v2 models for Identity, Preferences, and History
  • 🔄 Portable — JSON export/import across any AI system
  • 💻 CLI — Full command-line interface
  • 🐍 Python API — Embeddable in any Python application

Installation

pip install sovereignbox

Quick Start

export SOVEREIGNBOX_PASSPHRASE=mysecretpassphrase

sovereignbox init
sovereignbox set-name "Alice"
sovereignbox set-style --verbosity detailed --tone professional
sovereignbox history add --system openai --summary "Discussed Python async patterns"
sovereignbox history list
sovereignbox info
sovereignbox export ./backup.json

Python API

from sovereignbox import PassportStore, Vault
from sovereignbox.schema.history import Session

vault = Vault("~/.sovereignbox/vault.db", passphrase="secret")
store = PassportStore(vault)

passport = store.load_or_create()
passport.identity.personal_info.display_name = "Alice"
session = Session(system_id="openai", summary="Chat about Python")
passport.history.add_session(session)
store.save(passport)

Schema

  • DataPassport — root document
    • Identity — who you are (name, email, AI personas, trust levels)
    • Preferences — how you like AI to respond (verbosity, tone, topics)
    • InteractionHistory — sessions and messages across AI systems

Environment Variables

Variable Default Notes
SOVEREIGNBOX_VAULT ~/.sovereignbox/vault.db Override vault path
SOVEREIGNBOX_PASSPHRASE (interactive prompt) Set in scripts/CI

License

Apache 2.0

Project details


Download files

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

Source Distribution

sovereignbox-0.1.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

sovereignbox-0.1.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sovereignbox-0.1.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for sovereignbox-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bbc42516400ba3f534244e95115cf05640105f9ebbd7b4e95c91531848cf814c
MD5 f84577ae354279546da2d58af1e7cebd
BLAKE2b-256 16202c91fd476eb8a5fc67a82e93f8bc61a54b459c3148b72a18682cd424b784

See more details on using hashes here.

File details

Details for the file sovereignbox-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sovereignbox-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for sovereignbox-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abc52d951e07c3cfd027284ef9ba682da77c668699f46445abc06b15269a559a
MD5 fa7e2284dc18d56781920e0309f75824
BLAKE2b-256 818e4b72c4e5ebe46fd81d2fdf88d7db027088b84ec36fe893dc057355b11031

See more details on using hashes here.

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