Quick Start
Up and Running in Minutes
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") 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="...", ...) # 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
}
}' Documentation
Everything You Need
API Reference
Interactive documentation for the full Sakshi platform API, browsable against a live deployment (Swagger and ReDoc)
SDK on PyPI
Install docs, quickstart, and documented delivery semantics — what is retried, what fails open, what fails closed
Open Models
Released governance models on Hugging Face with honest model cards — PII detection, Hinglish guardrails, Indic judging
SDKs
Your Language, Your Way
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
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
pip install sakshi-sdk
A few lines of code to governed agents.