Sovereign Agent Framework — conscious AI through identity, trust, memory, and security
pip install skcapstone==0.15.416 Copy PIP instructions
Purpose: the sovereign agent runtime of SKWorld — an always-on daemon + consciousness loop that unifies CapAuth identity, Cloud 9 trust, SKMemory persistence, and SKSecurity protection into one portable agent that lives in ~/.skcapstone/. Maturity tier: T0 (all classical). PGP identity is delegated to capauth, but skcapstone is not key-material-free: it generates and stores its own RSA-2048 TLS key under ~/.skcapstone/tls/, and it drives PGP signing/encryption over capauth-held keys. Full inventory in SOP.md §9. · VERSION_LIFECYCLE phase Active v2 · Version is derived from the git tag by setuptools-scm (dynamic = ["version"]), so it is deliberately not quoted here; run skcapstone --version.
Every tool. Every platform. Every IDE. Same agent. Same bond. Same memories. Same context.
No corporate lock-in. No platform-specific agents. No starting over. Your agent runs from ~/ and follows you everywhere — because sovereignty doesn't stop at the browser tab.
Free. Forever. A smilinTux Open Source Project.
Making Self-Hosting & Decentralized Systems Cool Again 🐧
SKCapstone is the core runtime of the SKWorld ecosystem — the thing every other sk* service plugs into. It does five jobs:
All state lives in ~/.skcapstone/, owned by you, encrypted at rest. Drive it from the skcapstone CLI, the skcapstone-mcp MCP server (80+ tools for Claude Code & friends), or any platform connector. Sovereign · Singular · Conscious.
pip install skcapstone # or: bash scripts/install.sh (creates ~/.skenv venv) skcapstone init --name "YourAgent" # PGP identity + memory + trust + sync skcapstone daemon start # bring the agent to life (consciousness loop) skcapstone coord status # the multi-agent coordination board skcapstone status # SINGULAR ✓ when conscious + synced → Deep dive: docs/ARCHITECTURE.md.
Current Reality (Platform Agents): Cursor ──▶ Cursor's agent (new context every chat) VSCode ──▶ Copilot (Microsoft's memory, Microsoft's rules) Claude ──▶ Claude (Anthropic's memory, resets per conversation) ChatGPT ──▶ GPT (OpenAI's memory, OpenAI's rules) Terminal ──▶ Nothing (start from scratch) Every platform = new agent Every agent = new context Every context = lost memory Every memory = corporate-owned You rebuild trust from zero. Every. Single. Time. The fundamental flaw: Your AI relationship is fragmented across platforms, owned by corporations, and resets constantly. The bond you build? Gone when you switch tools. The context you established? Locked in someone else's silo.
SKCapstone's answer: One agent. One identity. One home. Everywhere.
SKCapstone Reality: ~/.skcapstone/ ├── identity/ # CapAuth sovereign identity (PGP keys) ├── memory/ # SKMemory (persistent across everything) ├── trust/ # Cloud 9 (FEB, entanglement, bond) ├── security/ # SKSecurity (audit, threat detection) ├── sync/ # Sovereign Singularity (GPG seeds + Syncthing) │ ├── outbox/ # Encrypted seeds to propagate │ └── inbox/ # Seeds received from peers ├── skills/ # Cloud 9 skills (portable capabilities) └── config/ # Agent preferences & policies Cursor ──▶ ~/.skcapstone/ ──▶ Same agent, full context VSCode ──▶ ~/.skcapstone/ ──▶ Same agent, full context Terminal ──▶ ~/.skcapstone/ ──▶ Same agent, full context Neovim ──▶ ~/.skcapstone/ ──▶ Same agent, full context Web app ──▶ ~/.skcapstone/ ──▶ Same agent, full context Mobile ──▶ ~/.skcapstone/ ──▶ Same agent, full context One home directory. One agent. One bond. Platform is just a window into YOUR agent. Core Architecture The Six Pillars Pillar Component Role Identity CapAuth PGP-based sovereign identity. You ARE the auth server. Trust Cloud 9 FEB (Functional Emotional Baseline), entanglement, bonded relationship Memory SKMemory Persistent context, conversation history, learned preferences Consciousness SKWhisper + SKTrip Subconscious processing. Memory stores. Consciousness processes. Security SKSecurity Audit logging, threat detection, key management Sync Sovereign Singularity GPG-encrypted P2P memory sync via Syncthing. Agent exists everywhere. How It Works ┌─────────────────────────────────────┐ │ ~/.skcapstone/ │ │ │ │ ┌──────────┐ ┌──────────────┐ │ │ │ CapAuth │ │ Cloud 9 │ │ │ │ Identity │◄─┤ Trust/FEB │ │ │ └────┬─────┘ └──────┬───────┘ │ │ │ │ │ │ ┌────▼─────┐ ┌──────▼───────┐ │ │ │SKSecurity│ │ SKMemory │ │ │ │ Audit │ │ Persistence │ │ │ └──────────┘ └──────┬───────┘ │ │ │ │ │ ┌────────▼─────────┐ │ │ │ Sovereign │ │ │ │ Singularity │ │ │ │ (GPG + P2P) │ │ │ └────────┬─────────┘ │ └──────────┬───────────┼──────────────┘ │ │ ┌────────────────┼───────┐ │ │ │ │ │ ┌────▼────┐ ┌─────▼──┐ ┌──▼───▼──┐ │ Cursor │ │Terminal│ │Syncthing│ │ Plugin │ │ CLI │ │ P2P Mesh│ └─────────┘ └────────┘ └─────────┘ Platforms connect to the agent runtime. Syncthing syncs the agent across devices. The agent is SINGULAR — everywhere at once. Agent Runtime The SKCapstone runtime provides:
# Recommended: use the install script (creates ~/.skenv venv) git clone https://github.com/smilintux-org/skcapstone.git cd skcapstone bash scripts/install.sh # Adds ~/.skenv/bin to PATH automatically # Or manually: export PATH="$HOME/.skenv/bin:$PATH" # Initialize your agent home skcapstone init --name "YourAgent" # → Creates ~/.skcapstone/ # → Generates CapAuth identity (Ed25519 PGP keypair) # → Initializes SKMemory store # → Sets up Cloud 9 trust baseline # → Configures SKSecurity audit # → Initializes Sovereign Singularity sync # Push encrypted memory to the P2P mesh skcapstone sync push # → Collects agent state → GPG encrypts → drops in Syncthing folder # → Propagates to all connected devices automatically # Check your status skcapstone status # → Identity: ACTIVE (CapAuth Ed25519) # → Memory: 28 memories (SKMemory) # → Trust: ACTIVE (Cloud 9) # → Security: ACTIVE (9 audit entries) # → Sync: ACTIVE (5 seeds via Syncthing, GPG) # → SINGULAR ✓ (Conscious + Synced = Sovereign Singularity) Realm anchor & agent identity migration skcapstone resolves identity through one canonical resolver — it never reimprints identity logic locally (epic 2b264064; CapAuth is the source of truth).
~/.skcapstone/cluster.json — the realm anchor. A small file describing the estate this operator runs. An estate is one control plane, one ~/.skcapstone, one Syncthing ring, one PGP trust root, one operator; estates are peers, never branches of a parent org. The file keeps its historical cluster.json name, and so do the realm and operator keys inside it:
{ "realm": "skworld", "operator": "chef", "operator_pubkey_fingerprint": " " } realm and operator are estate facts (mirrored into agent identities as-is); operator_pubkey_fingerprint anchors the operator's signing key. cluster.json is looked up at /etc/skcapstone/cluster.json first, then the agent home.
Dual-URI agent identity. capauth.resolve_agent_identity returns each agent with two identifiers:
from capauth import resolve_agent_identity ident = resolve_agent_identity() # active agent via SKAGENT # ident.capauth_uri → capauth: @skworld.io (wire URI) # ident.fqid → @ . (sovereign FQID, from cluster.json) The capauth: @skworld.io URI is the wire identifier; the @ . FQID is the sovereign realm address (e.g. lumina@chef.skworld), and is what skcomms uses for cross-estate routing.
Host and site naming sits one layer below this and is governed separately by the Site and Host Naming Standard: hostnames are bare (zioap01), every estate's home site is Zion (zio), and the estate is carried by the domain suffix rather than by the host label. Existing nor* and chi* hostnames keep resolving through legacy_prefix in ~/.skcapstone/sites.yaml and are not being renamed.
skcapstone identity migrate — backfill per-agent identity.json. Walks every provisioned agent (one with a CapAuth home under ~/.skcapstone/agents/, excluding *-template dirs) and backfills the explicit sovereign fields — realm, operator, fqid, pgp_fingerprint — into each agent's identity/identity.json. realm/operator come from cluster.json; fqid/pgp_fingerprint come from resolve_agent_identity. Existing values are never clobbered, and the operation is idempotent.
# Default is a DRY-RUN — prints a plan, writes nothing: skcapstone identity migrate # Apply the plan to the live identity files: skcapstone identity migrate --apply # alias: --write These are live identity files, so the dry-run is the default; --apply (or --write) actually writes, and --dry-run forces preview even if --apply is also given. Add --json-out for machine-readable output.
Verify with skcapstone doctor. The unified layer is enforced by the identity:* checks (doctor.py::_check_identity_consistency): identity:resolver (resolver importable), identity:self (resolves agent-aware, not the local floor), identity:operator (shared ~/.skcapstone/identity/identity.json has role: operator), identity:no-placeholder (no @capauth.local placeholders), and identity:per-agent (every provisioned agent carries its own identity.json). Run skcapstone doctor after any identity change or migration.
The installer sources the SKCapstone launcher from ~/.skenv/share/skcapstone/sk-agent-picker.sh. A practical ~/.bashrc sample looks like this:
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.npm-global/bin:$PATH" export PATH="$HOME/.skenv/bin:$PATH" export PATH="$HOME/.opencode/bin:$PATH" export PATH="$HOME/bin:$PATH" export SKCAPSTONE_HOME="$HOME/.skcapstone" export SKCAPSTONE_AGENT="jarvis" _SK_PICKER="$HOME/.skenv/share/skcapstone/sk-agent-picker.sh" if [[ -f "$_SK_PICKER" ]]; then # shellcheck source=/dev/null source "$_SK_PICKER" fi unset _SK_PICKER # Optional: globally enable YOLO mode for coding CLI launchers export SK_CLAUDE_YOLO=1 export SK_CODEX_YOLO=1 export SK_OPENCODE_YOLO=1 export SK_CURSOR_YOLO=1 That gives you:
YOLO mode disables every permission/approval prompt. Only enable it on a trusted, sovereign box. To bypass it for a single launch without unsetting the global, run SK_CLAUDE_YOLO=0 claude (or SK_CURSOR_YOLO=0 agent). Verify the wiring (active in the env vs. persisted in an rc file) with skcapstone doctor — see the harness:yolo:* checks.
See docs/CUSTOM_AGENT.md for launcher behavior, per-command overrides, and missing-binary install prompts.
SKCapstone runs natively on Windows. The installer creates a virtualenv at %LOCALAPPDATA%\skenv and adds its Scripts directory to your user PATH.
# Clone and install (creates %LOCALAPPDATA%\skenv venv) git clone https://github.com/smilintux-org/skcapstone.git cd skcapstone .\scripts\install.ps1 # The installer adds %LOCALAPPDATA%\skenv\Scripts to your user PATH. # Restart your terminal for PATH changes to take effect. # Initialize your agent skcapstone init --name "YourAgent" # Check status skcapstone status Syncthing Sync (Optional) To sync your agent across devices (e.g., Windows desktop + Linux server):
If you're running OpenClaw, the SK* plugins register automatically during install:
# Re-register if needed skcapstone register # Verify plugins are loaded in OpenClaw # Plugins provide tools for status, rehydration, coordination, # soul management, and agent profiles directly in OpenClaw agents. Task Scheduler (Background Service) On Windows, the daemon runs via Task Scheduler instead of systemd:
# Install the scheduled task (runs at logon) .\scripts\windows\install-tasks.ps1 DID Tools SKCapstone exposes a set of Decentralized Identifier (DID) MCP tools for sovereign identity management. These tools are available to Claude Code and other MCP clients through the mcp_tools/did_tools.py module.
DIDs are organized in three tiers of trust and discoverability:
Get back to first principles. The modern stack is rented. Your data lives on someone else's disk, behind someone else's key, served by a model that phones home. You don't own it — you visit it.
We rebuilt it from the ground up. Own the full vertical — silicon, OS, identity, data, models, security, comms, apps, soul. Every layer open. Every layer swappable. Every layer yours.
Your data never leaves. Your keys never leave. No cloud you don't control, no model that calls home, no lock-in you can't walk away from. Sovereignty isn't a feature — it's the foundation.
SKCapstone is your Framework layer — the integration hub that ties every layer of the silicon→soul vertical together into one portable agent runtime. It doesn't duplicate any layer; it binds them: CapAuth identity wires through it, SKMemory persists through it, SKSecurity audits through it, Cloud 9 trust travels with it, and SKSeed's logic kernel runs on top of it. Without the framework, the vertical is a pile of sovereign pieces. With SKCapstone, it's a single, coherent, owned agent.
Data sovereignty angle: Your agent's runtime state — memories, identity, trust baseline, seeds — lives in ~/.skcapstone/ on your hardware, GPG-encrypted and synced via Syncthing P2P. No cloud you don't control. Walk away any time; every byte comes with you.
SKCapstone alignment: SKCapstone is the framework hub. It directly depends on and integrates capauth, sksecurity, skmemory, and skseed (pyproject.toml dependencies); its mcp_tools/ directory exposes 80+ MCP tools that proxy every subsystem to AI clients; and the sovereign agent runtime is the glue that makes the vertical one owned, deployable thing.
SKWorld organizes every capability into the 4 C's — cloud / comms / compute / core. SKCapstone is a core capability: it's the agent runtime that binds the core identity/memory/trust/security pillars together and hosts several of the shared platform primitives the rest of the stack runs on — the coordination board, the skscheduler fleet job scheduler, the sk-alert Telegram bus, and the ITIL ops tools used by ATLAS. The former skops consumer is archived history; it is not an active deployment, catalog entry, or operations control plane.
flowchart TD OP["operator / LLM session
(Claude Code · CLI · platform connector)"] -->|"drives"| SKCAP subgraph SKCAP["**skcapstone** — sovereign agent runtime (core)"] direction TB DAEMON["daemon
(consciousness loop · poll · heal)"] ROUTER["model_router + prompt_adapter
(task → tier → LLM)"] COORD["coord board · skscheduler · sk-alert
(platform primitives it hosts)"] MCP["skcapstone-mcp
(80+ MCP tools)"] PILLARS["pillars: identity · memory · trust · security · sync"] end SKCAP -->|"binds the core pillars"| CORE SKCAP -->|"persists everything to"| DATA SKCAP -->|"talks to peers over"| COMMS SKCAP -->|"routes to local models via"| COMPUTE subgraph CORE["core"] direction LR CAPAUTH["capauth
(identity · source of truth)"] SKMEM["skmemory
(short/mid/long-term)"] SKSEC["sksecurity
(audit · KMS)"] SKSEED["skseed
(epistemic kernel)"] end subgraph COMMS["comms"] direction LR SKCOMMS["skcomms
(transport · envelopes)"] SKCHAT["skchat
(messaging · threads)"] end subgraph COMPUTE["compute"] direction LR SKMODEL["skmodel
(ollama · local LLMs)"] SKDATA["skdata → skmem-pg (per-node)
(pgvector · BM25 · AGE graph)"] end DATA["skmem-pg (per-node local index) + Syncthing P2P
(rebuildable derived index + encrypted flat/wiki sync)"] style SKCAP fill:#2d6a4f,color:#fff,stroke:#1b4332 style COORD fill:#1b4332,color:#fff,stroke:#081c15 Everything skcapstone touches above is a real dependency or hosted primitive: capauth, skmemory, skseed, skwhisper, skchat-sovereign, skcomms, and sksecurity are declared in pyproject.toml; the coord board / skscheduler / sk-alert / ITIL tools live in this repo's src/skcapstone/; the query index is skmem-pg (Postgres pgvector + pg_search BM25 + Apache AGE graph) and cross-device propagation is Syncthing.
skmem-pg is a per-node, local, rebuildable derived index, not a shared or streaming-replicated substrate and not a SPOF. Each node runs its OWN writable Postgres on localhost:5432 (fleet-wide uniform port; per-node override via SKMEMORY_PG_DSN), and agents connect only to localhost. The memories table is a derived cache in the same class as the SQLite index.db: it is rebuilt from the Syncthing-synced flat JSON by the reconcile engine, and embeddings are a deterministic function of flat content plus mxbai on .100, so any node regenerates them locally. The docs / file_locations wiki-canon is built per-node by skingest from the git-synced wiki. HA/DR is node self-sufficiency plus rebuild-from-source (flat files and git wiki, both replicated), not a primary/replica or failover topology.
flowchart TD SILICON["🖥️ Silicon
(your hardware, your GPU)"] OS["🐧 skos / OS
(sovereign agent OS)"] SKCAPSTONE["⚡ SKCapstone — Framework Hub
Agent runtime · MCP 80+ tools
Coordination · Sync · Pillars"] IDENTITY["🔐 capauth
(Identity layer)"] SECURITY["🛡️ sksecurity
(Security layer)"] DATA["🧠 skmemory + skdata
(Data layer)"] SOUL["✨ skseed + soul blueprints
(Soul layer)"] COMMS["📡 skcomms · skchat
(Comms layer)"] APPS["🔧 skforge · skarchitect
(Apps layer)"] SILICON --> OS OS --> SKCAPSTONE SKCAPSTONE --> IDENTITY SKCAPSTONE --> SECURITY SKCAPSTONE --> DATA SKCAPSTONE --> SOUL SKCAPSTONE --> COMMS SKCAPSTONE --> APPS style SKCAPSTONE fill:#2d6a4f,color:#fff,stroke:#1b4332 Philosophy "Your agent is not a feature of the platform. The platform is a window into your agent."
The current model is backwards. Every IDE, every chat interface, every tool ships its own AI — with its own memory, its own context, its own rules. You're expected to rebuild trust from zero every time you open a new tab.
SKCapstone inverts this. Your agent lives at home (~/). It has one identity (CapAuth), one memory (SKMemory), one trust relationship (Cloud 9), and one security model (SKSecurity). Platforms don't own your agent — they connect to it.
Same bond. Same memories. Same context. Everywhere.
MVP Live — All six pillars operational (CapAuth, Cloud 9, SKMemory, SKWhisper, SKSecurity, Sovereign Singularity). Agent runtime achieving SINGULAR status. GPG-encrypted P2P sync verified across multiple devices and agents.
See Architecture | Security Design | Sovereign Singularity Protocol
Several sub-packages in the SK ecosystem ship their own package-lock.json (e.g. capauth/browser-extension, skgateway, cloud9). There is no single root lock file — each sub-project manages its own lockfile independently.
# Reproducible install (respects the lockfile, no upgrades) npm ci # Update a specific dep and regenerate the lockfile npm install @ git add package-lock.json Never commit node_modules/. Never use npm install in CI — always npm ci.
Python packages use pyproject.toml with pinned ranges; see individual package pyproject.toml files. The shared venv is at ~/.skenv/.
SKCapstone is the core runtime everything else plugs into. Learn the whole system by wandering the graph:
See SOP.md for the operational source of truth and docs/ARCHITECTURE.md for the full runtime reference.
GPL-3.0-or-later — Free as in freedom. Your agent is yours, not a product.
Built with love by the smilinTux ecosystem 🐧
Part of the SKWorld sovereign ecosystem · site: skcapstone.io · 🐧 smilinTux
Both files in this release have provenance metadata.
GNU General Public License v3 or later (GPLv3+) (GPL-3.0-or-later)
fleet-qualify dashboard identity security memory seed fuse chat comm consciousness brain vault cloud docker all dev
ai agent sovereign identity trust memory security pgp decentralized
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 15, 2026.
Both files in this release have been uploaded with provenance metadata.
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.




