Skip to main content

Vexinter

Verification, memory, and secure communication infrastructure for AI agents.

Developer documentation: https://vexinter.com/docs

Vexinter sits between your AI agents and the real world, providing three fundamental layers that ensure every decision is verifiable, every memory is useful, and every message is private:

Layer Function Example
Operational Verification Declarative policies, per-action attestation, immutable log A refund agent can only execute if amount <= 500 and the customer is verified
Dynamic Memory Episodic/semantic/working memory, controlled retention, tenant isolation Historical context that evolves with the agent and complies with GDPR (right to erasure)
Secure Communication E2E channels between agents, verifiable identity, granular permissions Agent A sends an order to Agent B with non-repudiation and integrity checks

Features

  • Verifiable execution: tasks run under declarative conditions; every tool call is attested and appended to a hash-chained, append-only audit log.
  • Memory with governance: episodic/semantic/working memory tiers, retention policies, per-person GDPR erasure that preserves chain integrity.
  • Cryptographic identity: Ed25519 agent keys, rotation, nonces, signed envelopes; X25519 E2E encrypted messaging interoperable across SDKs.
  • FastAPI service: signed data plane + admin control plane, automatic PostgreSQL schema migration, rate limiting, circuit breaker, optional Redis.
  • Web console: React/Vite SPA served at /vexinter with HttpOnly-cookie auth, i18n and theme support.
  • Observability: Prometheus metrics (/metrics), OpenAPI spec (/openapi.json), health/readiness endpoints.
  • Multi-tenancy: tenant records with tiers, agent binding, suspension and per-tier execution quotas.
  • SDKs: Python (vexinter.sdk sync + vexinter.remote async) and TypeScript (@vexinter-ai/sdk on npm).

Quickstart

cp .env.example .env
# Edit .env: POSTGRES_PASSWORD and VEXINTER_ADMIN_TOKEN are required
docker compose up --build

Endpoints:

  • API / Console: http://localhost:8000/vexinter
  • Prometheus Metrics: http://localhost:8000/metrics
  • OpenAPI Spec: http://localhost:8000/openapi.json
  • Health: http://localhost:8000/health (also /ready, /live, /health/full)

The compose file fails fast if required secrets are missing, does not expose the PostgreSQL port, and runs the service as a non-root user with a HEALTHCHECK and CPU/memory limits (VEXINTER_CPUS / VEXINTER_MEMORY).

Production notes

  • TLS: the container does not terminate TLS, put a reverse proxy in front (Caddy/Nginx/Traefik). Session cookies default to Secure + SameSite=Strict; keep VEXINTER_COOKIE_SECURE=1 behind HTTPS.
  • Secrets: .env is fine for a single host; for orchestrated deploys prefer Docker secrets / your secret manager and drop env_file.
  • Scaling: multiple replicas are safe for the API (Postgres-backed sequence guard and rate limiting), but keep VEXINTER_SCHEDULER_INTERVAL_S enabled on one replica only, follow-up scheduling is not leader-elected.

Synchronous SDK

LocalRuntime requires VEXINTER_ADMIN_TOKEN to be set, or VEXINTER_DEV_MODE=1 for local development only:

export VEXINTER_DEV_MODE=1   # local development only
from vexinter.sdk import Task
from vexinter.core.runtime import LocalRuntime
from vexinter.demo import CrmAdapter, BillingAdapter

rt = LocalRuntime([CrmAdapter(), BillingAdapter()])

with Task(
    rt,
    agent="soporte_bot",
    objective="Customer signup and invoice",
    condition={"op": "all", "args": [
        {"op": "exists", "system": "crm",
         "query": {"type": "customer",
                   "where": {"email": {"$ref": "input.email"}}},
         "as": "customer"},
        {"op": "field_equals", "from": "customer", "path": "status",
         "equals": "active"}]},
    input={"email": "client@example.com"}
) as t:
    c = t.tools.crm.create_customer({"name": "John Doe", "email": "client@example.com"})
    t.tools.billing.create_invoice({"customer_id": c.id, "amount": 150})
    verdict = t.verify()
    print(f"Status: {verdict.status}")  # "met" | "not_met" | "inconclusive"

Async SDK

import asyncio
import os

from vexinter.identity import AgentKeyMaterial
from vexinter.remote import AsyncRemoteRuntime, AsyncRemoteTask

ADMIN_TOKEN = os.environ["VEXINTER_ADMIN_TOKEN"]


async def main() -> None:
    keys = AgentKeyMaterial()

    # One-time onboarding (admin token): enroll the agent, spawn an
    # instance and issue its credential. The service only stores the
    # public halves, the private keys stay here and sign each request.
    async with AsyncRemoteRuntime(
        "http://localhost:8000", admin_token=ADMIN_TOKEN
    ) as admin_rt:
        await admin_rt.enroll_agent("bot-async")
        inst = await admin_rt.spawn_instance("bot-async")
        creds = await admin_rt.issue_credential(inst["instance_id"], keys)

    async with AsyncRemoteRuntime(
        "http://localhost:8000", credentials=creds
    ) as rt:
        async with AsyncRemoteTask(
            rt,
            agent="bot-async",
            objective="Customer signup",
            condition={"op": "all", "args": [
                {"op": "exists", "system": "crm",
                 "query": {"type": "customer",
                           "where": {"email": {"$ref": "input.email"}}},
                 "as": "customer"},
                {"op": "field_equals", "from": "customer",
                 "path": "status", "equals": "active"}]},
            input={"email": "client@example.com"},
        ) as t:
            await t.tools.crm.create_customer(
                {"name": "Jane Doe", "email": "client@example.com"})
            print("Status:", (await t.verify()).status)


asyncio.run(main())

GDPR erasure

from vexinter.privacy import InMemoryKeyRing, PrivacyStore
from vexinter.store_pg import PostgresEventStore

inner = PostgresEventStore("postgresql://user:pass@localhost:5432/db")
store = PrivacyStore(inner, InMemoryKeyRing())

# Sensitive data is encrypted at rest and redacted in logs.
# Right to erasure (Art. 17 GDPR): destroys content, preserves integrity.
store.erase(execution_id="exec_12345", reason="data subject request")
assert store.verify_chain("task:exec_12345").ok

Erasure limitations (read before relying on this for compliance):

  • FileKeyRing.destroy() overwrites the key file and deletes it, but a journaled filesystem or SSD does not guarantee physical erasure, forensic recovery of the raw key bytes cannot be ruled out. For high-assurance deployments, keep the key directory on a separate volume excluded from backups, or front it with an HSM/KMS.
  • Erasure renders content unreadable (crypto-shredding); the ciphertext itself remains in the append-only log. Whether encrypted-but-intact records satisfy a given erasure request is a legal question that depends on jurisdiction and retention policy, have counsel validate the approach for your deployment.
  • Anti-replay sequence state for agent-to-agent envelopes is rebuilt from the persistent log on startup (restore_from_log), but it is per-process: multi-node deployments must route a given agent pair through a single node or add a shared sequence store.

Installation

Community (source)

git clone https://github.com/Vexinter-AI/vexinter.git
cd vexinter
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

Paid plans (signed wheels via the billing endpoint)

Subscribers receive a license token (secret) and customer id (lic_…) by email after purchase. Configure pip once via ~/.netrc (chmod 600):

machine billing.vexinter.com login lic_xxxxxxxxxxxxxxxx password <token>

then install the signed wheel. Your welcome email contains the exact pip install URL for the current version (the endpoint only serves wheels to active licenses):

pip install https://billing.vexinter.com/pro/vexinter_pro-<version>-py3-none-any.whl

Licensing and commercial model

Vexinter is source-available under the Community License: free for non-commercial use (personal projects, hobby, education, research, evaluation, and nonprofit/government entities).

Commercial use, including internal use inside for-profit organizations to automate business processes, requires a paid subscription (Professional / Business). See the Terms of Service and the license page.

Paid plans add: signed wheels and updates via the billing package endpoint, higher feature ceilings (agents, MCP connectors, persistent encrypted memory, GDPR erasure), priority/dedicated support, and cryptographically verified plan activation. Paid capabilities ship as a separately signed package whose license validation is pure local cryptography.

How plan verification works

Each customer gets an Ed25519-signed license document served by the vendor's billing endpoint (GET /license/{customer_id}.json). The instance fetches it at most once per day, verifies the signature against the vendor root key compiled into the Pro binaries, caches the last valid document for up to 7 days while the endpoint is unreachable, and applies the resulting plan. Signature validation is fully local. The vendor backend only issues documents, never sits in your request path, so network outages never degrade a paying deployment. When a subscription ends, the instance returns to Community limits within ~24h of the license document reflecting it, with in-flight work never interrupted and no client action required.

The vendor-side commercial backend (payment webhooks → package credentials → transactional emails → license issuing) is operated by Vexinter as a managed service; customers never need to run or configure it.


Architecture

┌────────────────────────────────────────────────────────────┐
│                      AGENT / CLIENT                        │
│  ┌──────────────────────────────────────────────────────┐  │
│  │ vexinter.sdk.Task    vexinter.remote.AsyncRemoteTask │  │
│  └──────────────────────────────────────────────────────┘  │
└──────────────────────────┬─────────────────────────────────┘
                           │ HTTPS + Ed25519 Signed Requests
                           ▼
┌────────────────────────────────────────────────────────────┐
│                    VEXINTER SERVICE (FastAPI)              │
│  ┌──────────────────┐  ┌────────────────────────────────┐  │
│  │ Data Plane       │  │ Control Plane (Admin)          │  │
│  │ /v1/tasks        │  │ /v1/identity/*                 │  │
│  │ /v1/messages     │  │ /v1/cases, /v1/followups       │  │
│  │ /v1/memory       │  │ /v1/metrics, /v1/checkpoints   │  │
│  └──────────────────┘  └────────────────────────────────┘  │
│                           │                                │
│              ┌────────────┴────────────┐                   │
│              ▼                         ▼                   │
│      ┌─────────────┐           ┌──────────────┐            │
│      │ PostgreSQL  │           │  Console     │            │
│      │ (Events +   │           │  React/Vite  │            │
│      │  Hashchain) │           │  (/vexinter) │            │
│      └─────────────┘           └──────────────┘            │
└────────────────────────────────────────────────────────────┘

Configuration

Variable Required Description
POSTGRES_PASSWORD Yes (compose) PostgreSQL password
VEXINTER_PG_DSN No* PostgreSQL DSN; defaults to InMemoryEventStore
VEXINTER_AUTO_MIGRATE No "1" (default) applies schema on startup
VEXINTER_ADMIN_TOKEN No** Control-plane token; without it the service runs in dev mode
VEXINTER_DEV_MODE No "1" disables auth, development only
VEXINTER_ADAPTERS No "module:Class,other:Factory" custom connectors
VEXINTER_OPERATOR_TOKENS No name:token[:role[:expires]] for decision attribution
VEXINTER_COOKIE_SECURE No "1" for Secure cookies behind HTTPS
VEXINTER_METRICS_TOKEN No Read-only token for /metrics (12+ chars)
VEXINTER_LOGIN_MAX_FAILS / VEXINTER_LOGIN_LOCK_S No Login lockout (default: 5 / 900s)
VEXINTER_REDIS_URL No Optional Redis for rate limit, circuit breaker, coordination
VEXINTER_GDPR_INDEX_PATH No Disk cache for the GDPR person index (event-sourced)
VEXINTER_GDPR_LOG_PATH No Optional JSONL mirror of completed GDPR erasures
VEXINTER_RATE_LIMIT_RPS / VEXINTER_RATE_LIMIT_BURST No Middleware rate limit
VEXINTER_KEYRING_DIR No File keyring dir for PrivacyStore
VEXINTER_KEYS_DB_PATH / VEXINTER_KEYS_PASSWORD / VEXINTER_KEYS_SALT No Encrypted agent-key persistence
VEXINTER_LICENSE_BASE_URL / VEXINTER_LICENSE_ID / VEXINTER_LICENSE_TOKEN No Signed license endpoint, customer id, secret token (root pubkey is embedded in vexinter-pro)
VEXINTER_LICENSE_CACHE No Cache file for the last valid license document
VEXINTER_LICENSE_MAX_STALE_S No Stale-cache cap in seconds (default 7 days; -1 = unlimited, for offline licenses)
VEXINTER_DEFAULT_PLAN No Plan when no license doc applies (default: community)
VEXINTER_MAX_STEPS / VEXINTER_TASK_DEADLINE_S No Per-execution caps: 100 tool calls / 1800s
VEXINTER_LOOP_THRESHOLD / VEXINTER_CYCLE_THRESHOLD No Loop guards: 3 identical calls / 3 cycle repeats
VEXINTER_NO_PROGRESS_WINDOW No Calls without a new outcome before a violation (8)
VEXINTER_MAX_SUBTASK_DEPTH / VEXINTER_MAX_SUBTASKS_PER_TASK No Delegation bounds: depth 3 / 32 subtasks per task
VEXINTER_DEFAULT_MAX_TOKENS / VEXINTER_COMMUNITY_MAX_TOKENS No Token caps: 100k default / 50k Community ceiling

With VEXINTER_PG_DSN set, the event log is PostgreSQL-backed and TierUsage quotas, TenantService membership/tier state, and the GDPR person index and erasure requests all survive restarts and work across multiple workers. With InMemoryEventStore they are per-process only.

See .env.example for the complete annotated list.

Authentication

  • SPA / console: POST /v1/auth/login exchanges the token for an HttpOnly session cookie (vex_spa, HMAC-signed, SameSite=Lax, optional Secure, 8h). The token is never stored in localStorage.
  • Non-browser clients (SDK, scripts, Prometheus): X-Vex-Admin header or Authorization: Bearer.

Multi-tenancy

Tenant records (name, tier, status, members with roles, per-tier quotas) live in vexinter/core/multitenancy.py and are enforced by the service:

  • Agent binding: POST /v1/admin/tenants/{id}/agents, bound agents inherit tenant status; suspending a tenant rejects its agents with 403.
  • Execution quota: POST /v1/tasks returns 429 past the tier's daily cap.
  • Admin API (admin token required): POST/GET /v1/admin/tenants, GET /v1/admin/tenants/{id}, POST .../suspend|activate, members and agent bind/unbind endpoints.
  • Tenant lifecycle events go to the append-only audit log.
  • Persistence: with VEXINTER_PG_DSN (Postgres store) tenants, members, agent bindings and daily usage counters live in vex_tenant* tables and survive restarts; usage increments are atomic (INSERT ... ON CONFLICT). With the in-memory store everything stays process-local, as before.

Isolation scope: enforcement is per-agent, a credential resolves to an agent, the agent to its tenant, and the tenant's status/quota apply. The event store itself is a single shared log: queries are not row-filtered by tenant, so cross-tenant reads are prevented by credential scoping, not by storage-level separation.

Tasks and execution guardrails

A task is one accepted objective execution (POST /v1/tasks): it starts when the objective is accepted and ends in a terminal state (met / not_met / inconclusive / failed / cancelled).

  • Never double-created on retry: pass idempotency_key and a network-cut retry returns the same task (deduplicated: true); reusing the key with a different payload returns 409.

  • Rejections are free: invalid conditions (422), auth failures and tenant quota denials (429) consume no unit.

  • Sub-tasks share the parent's budget: POST /v1/tasks/{id}/subtasks (including cascades from a sub-task id) inherits the parent's budget and is bounded by VEXINTER_MAX_SUBTASK_DEPTH (default 3) and VEXINTER_MAX_SUBTASKS_PER_TASK (default 32); over-limit delegation returns 429.

  • Plan resolution: paid tiers ship as the signed vexinter-pro package and activate through a verified license document (VEXINTER_LICENSE_*). The Pro binaries embed vendor root keys compiled at build time, so plan validation is pure local cryptography. A valid plan can only come from a genuine signed document, never from configuration or client-side changes. Plans differentiate on features, enforced per operation: registered agents (Community 3, paid unlimited), MCP connectors (1 / 5 / unlimited), persistent encrypted memory via VEXINTER_KEYRING_DIR (paid plans get FileKeyRing, Community gets volatile in-memory keys), GDPR erasure endpoints (paid only, 403 on Community), and the per-task token ceiling. The signed document's max_instances bounds concurrent instances (Professional: 5, Business: unlimited). VEXINTER_DEFAULT_PLAN is honored only in dev mode, and an unreachable license degrades to community. Env vars alone never unlock paid tiers. On multi-tenant deployments an agent bound to a tenant inherits the tenant's tier (professional→professional, enterprise→business).

    Subscribers receive their license credentials and installation instructions in the welcome email after purchase; the package endpoint only serves the wheel while the license is active.

Every execution is bounded by conservative defaults, overridable per task at creation:

Limit Default Override
Tool-call attempts VEXINTER_MAX_STEPS=100 max_steps
Wall-clock deadline VEXINTER_TASK_DEADLINE_S=1800 deadline_s
Identical-call loop VEXINTER_LOOP_THRESHOLD=3 loop_threshold
Call-pattern cycle (A-B-A-B…) VEXINTER_CYCLE_THRESHOLD=3 cycle_threshold
No-progress window VEXINTER_NO_PROGRESS_WINDOW=8 no_progress_window

Budgets (max_tokens, max_usd, model_pricing) are optional; max_tokens is the primary bound because max_usd depends on the client-supplied pricing table. On the Community plan max_tokens is hard-capped at VEXINTER_COMMUNITY_MAX_TOKENS (default 50,000); other plans default to VEXINTER_DEFAULT_MAX_TOKENS (100,000) when unset. Tasks created without any budget field return a warnings entry.

Python SDKs accept the same knobs:

from decimal import Decimal
from vexinter.models.budget import Budget
from vexinter.remote import AsyncRemoteRuntime, AsyncRemoteTask

budget = Budget(max_tokens=20_000, max_steps=60, deadline_s=900)
async with AsyncRemoteTask(
    rt, agent="bot", objective="...", condition={...},
    idempotency_key="order-12345", budget=budget,
) as t:
    ...

Observability

Prometheus metrics are derived exclusively from the append-only event log:

vexinter_executions_total
vexinter_final_states{state="met|not_met|inconclusive|..."}
vexinter_false_successes_total
vexinter_discrepancies_total
vexinter_retries_compensations_total
vexinter_human_decisions_requested_total / _made_total
vexinter_rejected_operations_total
vexinter_authentication_errors_total
vexinter_integrity_failures_total
vexinter_message_rejections / vexinter_tool_rejections (by reason)

Tests

pytest -v                              # full suite (testcontainers + Docker)
pytest -m "not pg and not live" -v     # unit tests only (no DB)
cd packages/sdk-ts && npm test         # TypeScript SDK tests

Current result: 326 passed, 5 skipped (Python) + SDK tests. ruff and mypy are clean.


Project structure

Vexinter/
├── packages/sdk-ts/        # TypeScript SDK (@vexinter-ai/sdk, public npm)
├── vexinter/               # Python package
│   ├── core/               # events, store, crypto, state machine, verifier,
│   │                       #   licensing, multitenancy, gdpr_erasure, ...
│   ├── identity/           # Ed25519 identity, envelopes, messaging
│   ├── privacy/            # PrivacyStore, KeyRing, E2E encryption
│   ├── remote.py           # AsyncRemoteRuntime / AsyncRemoteTask
│   ├── sdk.py              # Task / LocalRuntime high-level SDK
│   ├── store_pg.py         # PostgreSQL EventStore + SequenceGuard
│   ├── demo.py             # Example adapters (CRM, Billing)
│   └── app/                # Web console (React + Vite + Tailwind)
├── services/app.py         # FastAPI server (API + console + metrics + webhooks)
├── sql/schema.sql          # PostgreSQL schema
├── tests/                  # pytest suite (unit + PG integration)
├── examples/               # demos and benchmarks
├── .github/workflows/      # CI (ruff+mypy+pytest), publish, sdk-ts release
├── Dockerfile / docker-compose.yml / .env.example
├── LICENSE-COMMUNITY.md   # Source-available license (free → MIT after 2y)
├── TERMS-OF-SERVICE.md     # Commercial terms
└── SECURITY.md             # Vulnerability reporting policy

Support

  • Community: GitHub issues on Vexinter-AI/vexinter
  • Paid plans: support@vexinter.com (Professional: 48h response SLA, Business: 8h response SLA). Include your customer ID (lic_…, shown in your welcome email and as VEXINTER_LICENSE_ID in .env) so we can verify your plan and apply the SLA, it is also visible in the footer of every billing email.

v0.6.1, November 2026

Metadata

Release files for vexinter 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vexinter 0.6.1
File Size Uploaded Provenance Actions
vexinter-0.6.1.tar.gz 4.9 MB With provenance Details for vexinter-0.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vexinter 0.6.1
File Interpreter ABI Platform Actions
vexinter-0.6.1-py3-none-any.whl Python 3 none any Details for vexinter-0.6.1-py3-none-any.whl

Total release size: 5.3 MB

Release files / vexinter-0.6.1.tar.gz

Download URL vexinter-0.6.1.tar.gz
Size 4.9 MB
Tags Source
SHA-256 checksum
How to use checksums
f32dab45dd7562bead8f5ad1259c18d9a262508986a9fb528fd2b4920e6d0af4
BLAKE2b-256 checksum
How to use checksums
1fab4de167cfc6cbfb65d2259faa5db6ed72f4f2aedea6d674b5e5b04c5c5c26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Release files / vexinter-0.6.1-py3-none-any.whl

Download URL vexinter-0.6.1-py3-none-any.whl
Size 369.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae2af131db62713db698b9e4d807fd0a3ff53c24ee32186eadabbc7ddfeb606d
BLAKE2b-256 checksum
How to use checksums
d571cc9ed72c269f892bb0be235a9623bf7b451616fca37f154be6e525a33e87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

Security for vexinter 0.6.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vexinter-0.6.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 1, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.6.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page