Home

Developers

Sanctum Runtime SDK

Four lines between your model and the real world — verify, govern, and audit without rewriting your stack.

Developer SDK

Four lines between your model and the real world.

Sanctum sits between your agent and execution — verify, govern, and audit every action without rewriting your stack.

  • Verify before execute — middleware or protectAgent()
  • Policies: approve, verify, or block per action
  • Local Ollama risk + offline heuristics (OSS)
  • Audit log + community dashboard
runtime.ts
npm install @sanctum-runtime/sdk @sanctum-runtime/adapter-agent-runtime

import { SanctumRuntime } from "@sanctum-runtime/sdk";
import { protectAgent, AgentActions } from "@sanctum-runtime/adapter-agent-runtime";

const sanctum = new SanctumRuntime({
  baseUrl: process.env.SANCTUM_API_URL,
});

await protectAgent(sanctum, {
  action: AgentActions.SEND_EMAIL,
  context: { to: "user@example.com" },
  offlineMode: true,
  execute: async () => sendEmail(),
});

Packages

  • @sanctum-runtime/sdk — core client, middleware, verification types
  • @sanctum-runtime/adapter-agent-runtimeprotectAgent() for tool calls
  • sanctum-runtime (Python) — parity client for backends and notebooks
  • @sanctum-runtime/cli — smoke tests and operator utilities

Telemetry

OpenTelemetry hooks on the API (`OTEL_EXPORTER_OTLP_ENDPOINT`). Runtime WebSocket heartbeats and usage metering feed the hosted dashboard.

GitHub · Integration docs · sdk.md

Full reference: documentation · llms.txt · architecture.md

Build AI humans can trust.

Open the cloud console to manage runtimes and policies, or self-host the open-source runtime from GitHub.