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 documentIdentity— 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
Metadata
Release files for sovereignbox 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sovereignbox-0.1.0.tar.gz | 11.8 kB | Without provenance | Details for sovereignbox-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sovereignbox-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sovereignbox-0.1.0-py3-none-any.whl |
Total release size: 23.6 kB
Release files / sovereignbox-0.1.0.tar.gz
| Download URL | sovereignbox-0.1.0.tar.gz |
|---|---|
| Size | 11.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbc42516400ba3f534244e95115cf05640105f9ebbd7b4e95c91531848cf814c
|
|
BLAKE2b-256 checksum How to use checksums |
16202c91fd476eb8a5fc67a82e93f8bc61a54b459c3148b72a18682cd424b784
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Release files / sovereignbox-0.1.0-py3-none-any.whl
| Download URL | sovereignbox-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
abc52d951e07c3cfd027284ef9ba682da77c668699f46445abc06b15269a559a
|
|
BLAKE2b-256 checksum How to use checksums |
818e4b72c4e5ebe46fd81d2fdf88d7db027088b84ec36fe893dc057355b11031
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|
Security for sovereignbox 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.