NewkavachOS v0.1.0 -- edge runtime, D1 provider, Web CryptoSee releases →
kavachOS

Your agents need
their own auth.

|
Deploy in 5 minutes. Free up to 1,000 users.

Works with
Agent-first identity
Fine-grained permissions
<50ms auth checks
300+ edge locations
EU AI Act compliant
Delegation chains
Real-time audit trail
MCP OAuth 2.1
Agent-first identity
Fine-grained permissions
<50ms auth checks
300+ edge locations
EU AI Act compliant
Delegation chains
Real-time audit trail
MCP OAuth 2.1

Edge locations

300+

Cloudflare Workers globally

Auth latency

<50ms

Permission check, anywhere

Auth methods

27+

OAuth providers built in

Framework adapters

10+

Next.js, Hono, Express...

License

MIT

Open source forever

Cheaper than Auth0

10x

At 100K MAU scale

Trusted

Built for production

SOC 2 ready

Audit-ready controls

EU AI Act aligned

Compliance reports included

NIST AI RMF

Risk management framework

OWASP Top 10

All vectors covered

GitHub starsnpm downloads
1,945 tests passing

Built for AI agents

Secure your AI agents

Agent identity

Every agent gets its own identity

namecode-reviewer
typeautonomous
trust0.94
tokenkv_a3x9...m2p1

Product

Everything you need to ship agent auth

Identity, permissions, delegation, compliance, and observability in one platform. Each piece works standalone or together.

Security

Security is not a paid tier

Security by default

Not an add-on. Not a paid tier.

HIBP breach checking

Passwords checked against known breaches before storage

httpOnly secure cookies

Session tokens never exposed to JavaScript

Token rotation

Automatic refresh token rotation with reuse detection

HMAC-signed webhooks

Every webhook delivery is cryptographically signed

CSRF protectionRate limitingEmail enumeration preventionSigned reset tokensSession freshnessTrusted device windows

How developers use kavachOS

From zero to production in one afternoon

Identity + permissions

Agentic workflows

Build autonomous agent systems with proper identity and permissions.

const agent = await kavach.agent.create({
  name: "code-reviewer",
  type: "autonomous",
  permissions: [
    { resource: "mcp:github:*", actions: ["read"] },
    { resource: "mcp:slack:send", actions: ["execute"] },
  ],
});

const check = await kavach.authorize(agent.id, {
  action: "read",
  resource: "mcp:github:repos",
});
// => { allowed: true, auditId: "aud_..." }

MCP OAuth 2.1

MCP tool servers

Add standards-compliant OAuth 2.1 to your MCP servers.

import { mcpOAuthServer } from "kavachos/mcp";

const mcp = mcpOAuthServer({
  kavach,
  pkce: "S256",           // RFC 7636
  dynamicRegistration: true, // RFC 7591
  resourceIndicators: true,  // RFC 8707
});

// Hono / Express / Cloudflare Workers
app.use("/oauth/*", mcp.handler());

Audit + compliance

Compliance reports

Generate EU AI Act and SOC 2 reports from your audit trail.

const report = await kavach.compliance.report({
  standard: "eu-ai-act",
  from: "2025-01-01",
  to: "2025-12-31",
});

// => {
//   summary: { totalActions: 48203, denied: 12 },
//   agentInventory: [...],
//   riskAssessment: { level: "limited" },
//   exportUrl: "https://...",
// }

How it works

From install to authorized in 5 minutes

pnpm add kavachos
Framework
app/api/kavach/[...kavach]/route.ts
1// app/api/kavach/[...kavach]/route.ts
2import { createKavach } from 'kavachos';
3import { kavachNextjs } from '@kavachos/nextjs';
4
5const kavach = await createKavach({
6 database: { provider: 'sqlite', url: './kavach.db' },
7});
8
9export const { GET, POST } = kavachNextjs(kavach);

What developers are saying

Built by developers, for developers

We replaced 2,000 lines of custom agent auth code with a single kavachos import. The delegation chains alone saved us a month.

SK

Sarah Kim

Platform Lead · Agentic Labs

Auth0 wanted us to bolt agent identity onto user sessions. kavachOS treats agents as first-class citizens. That's the difference.

MC

Marcus Chen

CTO · NeuralOps

The MCP OAuth 2.1 server just works. PKCE, dynamic registration, RFC compliance -- all handled. We shipped in a day.

PP

Priya Patel

Senior Engineer · ToolChain AI

When our compliance team asked about EU AI Act readiness, I generated the report in one click. They were shocked.

JW

James Wright

VP Engineering · FinSecure

Sub-50ms auth checks on Cloudflare Workers. Our agents authenticate faster than they can think.

AR

Alex Rivera

Infra Lead · EdgeFirst

Community

What developers are saying

We were passing shared API keys between 6 agents. KavachOS gave each one its own identity with scoped permissions in an afternoon.

AC

Alex Chen

Lead Engineer, AI Startup

The delegation chains are the killer feature. Our orchestrator agent can spin up sub-agents with exactly the permissions they need, nothing more.

PS

Priya Sharma

Platform Engineer

Switched from Auth0 for the agent auth. Stayed because the MCP OAuth 2.1 implementation is better than anything I could have built.

MW

Marcus Wright

CTO, DevTools Company

Three dependencies. Runs on Workers. Actually has tests. This is how auth libraries should be built.

SK

Sarah Kim

Staff Engineer

Pricing

Start free, scale as you grow

Every plan includes unlimited agents, MCP OAuth 2.1, and framework adapters.

Sanctuary

Free

1,000 MAU

$0forever
Get started
  • Unlimited agents
  • MCP OAuth 2.1 server
  • 7 framework adapters
  • Audit log (7-day retention)
  • Community support
  • 1 team member

Vanguard

Starter

10,000 MAU

$29/mo
Start free
  • Everything in Free
  • 10,000 monthly active users
  • Audit log (30-day retention)
  • Trust scoring
  • Anomaly detection
  • Email support
  • 5 team members
Popular

Centurion

Growth

50,000 MAU

$79/mo
Start free
  • Everything in Starter
  • 50,000 monthly active users
  • Audit log (90-day retention)
  • Compliance reports (EU AI Act, SOC 2)
  • Budget controls
  • Privilege analyzer
  • Priority support
  • 15 team members

Leviathan

Scale

200,000 MAU

$199/mo
Start free
  • Everything in Growth
  • 200,000 monthly active users
  • Audit log (1-year retention)
  • All compliance frameworks
  • Custom trust scoring rules
  • SSO / SAML
  • Dedicated support
  • Unlimited team members

Get started today

Start protecting your agents
in 5 minutes.

Open source SDK or managed cloud. One import, zero lock-in.

pnpm add kavachos

No credit card required  ·  Free up to 1,000 MAU  ·  Open source