Skip to main content

Substr8 Platform CLI - Verifiable AI Infrastructure

Project description

Substr8 CLI

PyPI version License: MIT

Verifiable AI Infrastructure — The governance plane for AI agents.

Substr8 provides provable, auditable, and deterministic infrastructure for AI agents. Any framework that can call tools can plug into Substr8.

What Substr8 Does

Problem Substr8 Solution
What version of the agent ran? FDAA — File-Driven Agent Architecture
Was it allowed to do that? ACC — Agent Capability Control
What did it actually do? DCT — Tamper-evident audit ledger
What did it remember? GAM — Git-Native Agent Memory
Was the conversation valid? CIA — Conversation Integrity Assurance
How do I deploy it? Gateway — Docker Swarm orchestration

Installation

pip install substr8

Quick Start

For Developers (Any Framework)

Connect your LangGraph, AutoGen, PydanticAI, or custom agent to Substr8:

# Start the MCP governance server
substr8 mcp start --local

# In another terminal, run your agent
python my_agent.py  # calls Substr8 MCP tools

Your agent calls MCP tools like substr8.run.start, substr8.policy.check, substr8.memory.write. Every action is policy-checked and logged.

For Operators (Infrastructure)

Deploy the full Substr8 stack:

# Start the gateway (OpenClaw runtime + governance services)
substr8 gateway start

# Check status
substr8 gateway status

Command Groups

substr8 mcp — MCP Governance Server

The MCP server exposes Substr8 governance as tools any framework can call.

substr8 mcp start [--local] [--require-auth] [--port 3456]
substr8 mcp stop
substr8 mcp status
substr8 mcp tools           # List available MCP tools

12 MCP Tools:

Category Tools
RIL (Runtime) run.start, run.end, tool.invoke
ACC (Policy) policy.check
DCT (Audit) audit.timeline, verify.run
GAM (Memory) memory.write, memory.search
CIA (Integrity) cia.status, cia.report, cia.repairs, cia.receipts

With Auth + Rate Limiting:

# Require API keys
substr8 mcp start --local --require-auth

# Call with key
curl -H "X-Substr8-Key: sk-substr8-xxx" http://localhost:3456/tools/run/start

Rate limits: Free (100/min), Pro (1000/min), Enterprise (10000/min)


substr8 gateway — Infrastructure Orchestration

Manages Docker Swarm stacks for the Substr8 runtime.

substr8 gateway start       # Deploy OpenClaw + FDAA proxy + services
substr8 gateway stop        # Tear down stacks
substr8 gateway status      # Health check all services
substr8 gateway logs        # View service logs

What it deploys:

  • OpenClaw runtime (compiles markdown agents → system prompts)
  • FDAA proxy (CIA middleware for LLM calls)
  • GAM service (memory with provenance)
  • Postgres/pgvector (embeddings)

When to use: You're running your own Substr8 infrastructure (self-hosted).


substr8 dev — Developer Scaffolding

Creates starter projects and demos.

substr8 dev init            # Scaffold example agents in current directory
substr8 dev demo            # Run a complete demo (start → agent → audit)

What dev init creates:

my-project/
├── examples/
│   ├── langgraph/agent.py
│   ├── pydantic-ai/agent.py
│   └── autogen/agent.py
├── .env.example
└── README.md

When to use: You're starting a new project that uses Substr8.


substr8 gam — Git-Native Agent Memory

Manage agent memory with cryptographic provenance.

substr8 gam init                    # Initialize repository
substr8 gam remember "text" --tag x # Store a memory
substr8 gam recall "query"          # Search memories
substr8 gam verify <id>             # Verify provenance
substr8 gam status                  # Show status

substr8 fdaa — Agent Identity & Registry

Package, version, and register agents.

substr8 fdaa hash <path>            # Hash an agent bundle
substr8 fdaa register <path>        # Register with FDAA registry
substr8 fdaa verify <hash>          # Verify agent integrity

substr8 acc — Capability Control

Manage agent policies.

substr8 acc policy list             # List policies
substr8 acc policy check <action>   # Check if action is allowed

substr8 dct — Audit Ledger

Query tamper-evident logs.

substr8 dct timeline <run_id>       # Get audit trail
substr8 dct verify <run_id>         # Verify chain integrity

How the Commands Work Together

# 1. OPERATORS: Deploy infrastructure
substr8 gateway start

# 2. DEVELOPERS: Start governance server
substr8 mcp start --local

# 3. DEVELOPERS: Scaffold a new project
mkdir my-agent && cd my-agent
substr8 dev init

# 4. DEVELOPERS: Run your agent
python examples/langgraph/agent.py

# 5. ANYONE: View audit trail
substr8 dct timeline run-abc123

Architecture

┌─────────────────────────────────────────────────────────┐
│                    Your Agent Framework                 │
│              (LangGraph, AutoGen, PydanticAI)           │
└─────────────────────────┬───────────────────────────────┘
                          │ HTTP tool calls
                          ▼
┌─────────────────────────────────────────────────────────┐
│                   Substr8 MCP Server                    │
│                   (substr8 mcp start)                   │
├─────────────────────────────────────────────────────────┤
│  RIL  │  ACC  │  DCT  │  GAM  │  CIA                    │
└───────┴───────┴───────┴───────┴─────────────────────────┘
                          │
                          ▼
┌─────────────────────────────────────────────────────────┐
│                   Substr8 Gateway                       │
│              (substr8 gateway start)                    │
├─────────────────────────────────────────────────────────┤
│  OpenClaw  │  FDAA Proxy  │  Postgres  │  GAM Service   │
└────────────┴──────────────┴────────────┴────────────────┘

Hosted Endpoints

Endpoint Purpose
mcp.substr8labs.com Hosted MCP server (coming soon)
fdaa.substr8labs.com Agent registry + identity

Research

Paper DOI
FDAA: File-Driven Agent Architecture 10.5281/zenodo.18675147
ACC: Agent Capability Control 10.5281/zenodo.18704577
GAM: Git-Native Agent Memory 10.5281/zenodo.18704573

Links


License

MIT — Substr8 Labs

Frameworks run agents. Substr8 proves what they did.

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

substr8-1.8.0.tar.gz (229.1 kB view details)

Uploaded Source

Built Distribution

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

substr8-1.8.0-py3-none-any.whl (261.1 kB view details)

Uploaded Python 3

File details

Details for the file substr8-1.8.0.tar.gz.

File metadata

  • Download URL: substr8-1.8.0.tar.gz
  • Upload date:
  • Size: 229.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for substr8-1.8.0.tar.gz
Algorithm Hash digest
SHA256 0bcc2b4d1625715ea6a400c33abaa01847f194d8cc3b56282ff5b7fdcfe9ca84
MD5 49db136505b79168a8767902fb894735
BLAKE2b-256 d374027f7ae5827475f4e6d55ee0691cefaa25757f96ee80ff18a97ef5505ae7

See more details on using hashes here.

File details

Details for the file substr8-1.8.0-py3-none-any.whl.

File metadata

  • Download URL: substr8-1.8.0-py3-none-any.whl
  • Upload date:
  • Size: 261.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for substr8-1.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eae9d5b352d4cfb8d99a999a12a6bde50e2b421f7a8517ebe307ab2a2a9a3e7f
MD5 dd7bfeb5a2a37a65eedb3f33e3fe98a9
BLAKE2b-256 f742f326bc531291a7d11c659849ca91ededf93b5ba07ebe6ac4904a424b001f

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