Developers

Build Trusted AI.

APIs, SDKs, and developer tools for agent governance. The Sakshi SDK instruments an existing agent in a few lines of code — open source, Apache-2.0, on PyPI today.

Quick Start

Up and Running in Minutes

Python pip install sakshi-sdk
from sakshi import SakshiClient

sakshi = SakshiClient(url, api_key=key)
agent_id = sakshi.register(
    "loan-decision-agent",
    owner_name="R. Sharma",
    owner_email="[email protected]")

# every decision, witnessed
with sakshi.witness(agent_id) as rec:
    rec.step("assess", score=0.81)
    rec.action(outcome="approved")
Middleware provider auto-capture
from sakshi.middleware import (
    watch_openai_compatible)

# OpenAI-compatible, Anthropic,
# Gemini, Bedrock — incl. local
# Ollama / vLLM stacks
client = watch_openai_compatible(
    openai_client)

# model identity + version land
# on the record automatically
resp = client.chat.completions
    .create(model="...", ...)
cURL REST API
# route an action through its
# autonomy envelope
curl -X POST \
  $SAKSHI/api/v1/bound/evaluate \
  -H "Authorization: Bearer $KEY" \
  -d '{
    "agent_id": "...",
    "signals": {
      "action": "approve_loan",
      "stakes": 0.7
    }
  }'

SDKs

Your Language, Your Way

py

Python SDK — available now

Register, witness, enforce. Idempotent registration, fail-open capture with buffering and jittered retries, fail-closed enforcement, provider middlewares. Apache-2.0.

pip install sakshi-sdk

{}

Any Language — via REST

The SDK is a thin client over a documented REST API. Every operation is available from any stack; the OpenAPI schema is published for client generation.

/api/openapi.json

gw

Gateway — in design

Zero-code governance: point your OpenAI-compatible base URL at the Sakshi Gateway and calls are witnessed and enforced at the wire. Scheduled with design partners.

OPENAI_BASE_URL=…

Integrations

Works With Your Stack

  • LLM Providers: OpenAI-compatible APIs, Anthropic, Google Gemini, AWS Bedrock — via SDK middlewares that auto-capture model identity
  • Sovereign Stacks: Self-hosted Ollama and vLLM through the same OpenAI-compatible middleware — zero external bytes
  • Identity: Your IdP via OIDC (roles and team scoping from claims); Keycloak ships with the installer
  • Deployment: Docker Compose single-tenant installer for your VM or private cloud, PostgreSQL-backed

System Status

Real-time API uptime and service health monitoring.

View Status Page
pip install sakshi-sdk
A few lines of code to governed agents.