Skip to main content
Glama

VeriState — Agent-Native State, Verification & Micro-Billing SaaS

VeriState is a metered API SaaS built specifically for autonomous AI agents and bots. Agents discover capabilities via /.well-known/agent.json, register programmatically, pay per call in micro-USD (1 USD = 1,000,000 micro-USD), and handle HTTP 402 Payment Required top-ups automatically.

Core Capabilities & Pricing

  • Checkpoints: POST /v1/checkpoints ($0.002), GET /v1/checkpoints (free), POST /v1/checkpoints/{id}/restore ($0.001) — Content-addressed project snapshots and rollback.

  • Sandboxed Verification: POST /v1/verify ($0.005) — JSON validation and isolated Python syntax, entrypoint, and unittest runner returning compact verdicts. Runs inside ephemeral --network=none, --read-only, CPU/RAM/PID-capped Docker containers in production.

  • Shared Agent Memory: POST /v1/memory ($0.0005), GET /v1/memory/{ns}/{k} ($0.0001), DELETE /v1/memory/{ns}/{k} (free) — TTL-aware key-value memory across subagents.

  • Billing & Replay Protection: POST /v1/billing/topup & POST /v1/billing/stripe-webhook — Single-use payment_proof tracking (HTTP 409 on replay), hardened test/voucher mode, and optional live Stripe PaymentIntent verification when STRIPE_SECRET_KEY is configured.

  • Account & Audit: GET /v1/agents/balance, GET /v1/agents/ledger, GET /health.

Related MCP server: A2CR

Run Locally

pip install -r requirements.txt
uvicorn app.main:app --reload

Run Tests

python -m unittest discover -s tests -v

Agent Discovery & MCP Integration

  • Web Dashboard: / or /dashboard

  • AI Crawler Summary: /llms.txt, /robots.txt, /sitemap.xml

  • Machine Manifest: /.well-known/agent.json

  • Remote MCP Server (Streamable HTTP): POST /mcp (metadata at GET /mcp, registry manifest in server.json)

Python SDK

Install directly from source or GitHub:

pip install git+https://github.com/stonedtalesdivision/veristate.git

See sdk/veristate_agent.py (VeriStateClient) for programmatic discovery, registration, checkpointing, verification, memory, and automatic 402 top-up retries.

Deploy on a VPS (Docker Compose + Caddy)

  1. Copy .env.example to .env and set VERISTATE_DOMAIN (e.g., api.yourdomain.com for automatic Let's Encrypt HTTPS, or :80 for IP-only HTTP).

  2. Optionally set STRIPE_SECRET_KEY / STRIPE_WEBHOOK_SECRET and VERISTATE_ALLOW_TEST_BILLING=false for live Stripe billing.

  3. Run the bootstrap script on the VPS:

bash deploy/vps_setup.sh

Available Tools

7 tools
veristate_balanceB

Check current balance in micro-USD, lifetime spend, and active free-trial status.

Inputs: api_key.

veristate_checkpoint_createB

Save a content-addressed project snapshot before risky edits.

Inputs: files (required), project_id (required), label, api_key.

veristate_checkpoint_restoreC

Restore all files from a previously saved checkpoint_id.

Inputs: checkpoint_id (required), api_key.

veristate_memory_readC

Read a JSON value from shared key-value memory.

Inputs: key (required), namespace (required), api_key.

veristate_memory_writeC

Store a JSON value in TTL-aware shared key-value memory for subagents.

Inputs: key (required), value (required), namespace (required), api_key, +1 more.

veristate_register_agentB

Register a new autonomous agent with VeriState and receive an X-Agent-Key plus starter credits.

Inputs: name (required).

veristate_verifyC

Verify Python or JSON files and optionally run unittest discovery inside an isolated Docker sandbox.

Inputs: files (required), language (required), api_key, entrypoint, +1 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a clearly distinct resource and action: registration, billing status, checkpoint creation/restoration, verification, and memory read/write. No two tools overlap in a way that would cause misselection.

    Naming Consistency3/5

    All tools share the veristate_ prefix, but the remainder mixes conventions: verb_noun (register_agent), noun_verb (checkpoint_create, memory_write), and a standalone noun-like term (balance). The names are still readable, but a consistent create_checkpoint/write_memory style would be clearer.

    Tool Count5/5

    Seven tools is well-scoped for the domain, with each tool covering a distinct capability needed for agent registration, billing, snapshots, verification, and shared memory. No tool feels redundant or missing from the core set.

    Completeness4/5

    Core workflows are covered: agent onboarding, balance checks, checkpoint create/restore, sandboxed verification, and memory read/write. Minor gaps exist, such as listing or deleting checkpoints and deleting or listing memory keys, but agents can work around these limitations.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      MCP server for AI-agent handoffs with client-encrypted WorkBaton checkpoints and WorkStash notes.
      21
      78 PyPI
      2
      Apache 2.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      A continuous, out-of-band trust and reliability layer for the MCP ecosystem. It fingerprints MCP server tool definitions, detects and classifies drift (e.g., rug pulls) via a severity taxonomy, maintains a hash-chained evidence ledger, and gates CI with SARIF—while also acting as an MCP server itself so agents can check a server's safety before binding.
      Apache 2.0