Cloud launching May 2026. The library is MIT and shipping today.
kavachOS

Auth for AI agents.
And the humans
who build them.

Identity for agents. Sessions for humans. An audit trail for every delegation between them. OAuth 2.1 and MCP are built in.

Cloud launching May 2026. Library is MIT, TypeScript, edge-native, zero deps.

app.ts
import { createKavach } from "kavachos";

const kavach = createKavach({ db: env.DB });

const token = await kavach.agents.issueToken({
  agentId: "agent_claude_writer",
  scopes: ["read:web", "write:storage"],
  ttl: "1h",
});
TypeScriptUTF-8·LF

·Dashboard preview

Sample data · Real product ships with cloud launch

Active identities
1,247,893
MonTueWedThuFriSatSun
Tokens in flight8,412

·THE NAME

कवच
KAVACH+OS

कवच is Sanskrit for armor. In the Mahabharata, Karna was born wearing his: golden plates fused to his skin, part of him from the start.

That image stuck. Not something you strap on in the morning. Something you're built with.

So kavachOS. Kavach plus OS. Identity, tokens, and delegation that live inside your auth layer, not beside it.

01/INSTALL

Install in seconds.
Ship in an afternoon.

Read the docs

One package, zero ceremony.

Run one install command. Import and call. No SDK dashboard, no config wizard, no mandatory signup.

Typed primitives, sensible defaults.

Framework adapters wire the pieces together. Your routes get type-safe session and agent context out of the box.

Edge-ready from the first line.

Ships to Cloudflare Workers, Deno Deploy, and Bun. Core has zero Node APIs, so it runs wherever fetch does.

import { createKavach } from "kavachos";

const kavach = createKavach({ db: env.DB });

// Issue a scoped token for an agent
const token = await kavach.agents.issueToken({
  agentId: "agent_scraper_01",
  scopes: ["read:web", "write:storage"],
  expiresIn: "1h",
});

console.log(token.jwt); // standard JWT, verifiable anywhere
TypeScriptUTF-8 · LF

03/WHY KAVACHOS

One library.
Everything else bolts on later.

See full comparison

Agent identity

We make Identity the root entity. Humans and agents share the same audit log, the same permission model, the same delegation chain.

Versus

Better Authbetter-authClerkClerk

human-first; agents bolt on later

MCP OAuth 2.1

RFC 9728, 8707, 8414, 7591 implemented in core. Your MCP tool server gets real OAuth, not a bearer-token shim.

Versus

LuciaLuciaSstack-auth

no MCP primitives

Open source + optional cloud

MIT-licensed library that runs anywhere. Managed cloud exists for teams that would rather not operate it. It is never required.

Versus

ClerkClerkAuth0Auth0KKinde

closed-source SaaS

Every comparison includes a migration checklist and a test matrix. If you are on a different library, there is probably a guide.

Browse all comparisons

Product names are trademarks of their respective owners. Comparisons based on public documentation as of 2026-04-17.

04/PROOF

The receipts, not the pitch.

Trust on a marketing page is cheap. These links go to the source.

Trust and legal

DPA

License

MIT

Core library is open source. No commercial restrictions.

Compliance

SOC 2 Type I: Q3 2026

Type II report targeting Q2 2027. Current posture in the security page.

Sub-processors

  • CloudflareEdge runtime
  • NeonPostgres
  • StripeBilling
  • PostHogAnalytics
  • VercelMarketing site
  • ResendTransactional email

05/QUESTIONS

Answers, before you ask.

Filter by category. For anything not here, the docs have a full reference.

6 of 6
Q.01BASICS

What is KavachOS?

A TypeScript library for agent identity, human sessions, and delegation between them. It issues real OAuth 2.1 tokens, keeps an audit trail, and runs at the edge on Cloudflare Workers, Deno, and Bun. You import it like any other npm package.

Q.02PRICING

Is it free?

MIT licensed and free forever. A managed cloud tier is coming for hosting, dashboards, and team billing. Until then, run it self-hosted against D1 or any SQLite/Postgres instance.

Q.03TECHNICAL

Does it work without a server?

The core package has zero Node.js-specific APIs. It uses Web Crypto, Uint8Array, and standard fetch, so it runs in any edge runtime. Cloudflare Workers, Deno Deploy, Bun. No server required beyond whatever handles your requests.

Q.04TECHNICAL

Can I use it with Next.js, Hono, or Elysia?

Yes. Adapters exist for Next.js (App Router and Pages), Hono, Express, Fastify, and Elysia. Each wraps the core with the framework's native Request/Response. For anything else, the raw core works with any standard Request object.

Q.05BASICS

How is it different from Better-Auth or Clerk?

Better-Auth and Clerk are human-first. They give you OAuth providers, magic links, and session cookies. KavachOS makes Identity the root primitive and treats agents as first-class, with scoped tokens and delegation chains. It also implements RFC 9728, 8707, 8414, and 7591 for MCP servers. The others do not.

Q.06ROADMAP

When is the cloud launching?

Target is May 2026. Early access opens in the weeks before launch and those members lock the launch pricing for 12 months. The library is MIT and ships today. Join early access for the launch email.

05/INSTALL

Two paths.
Same library.

Install the MIT library today and self-host. Or get on the cloud waitlist and we'll handle hosting, team billing, and compliance at launch.

$npm install kavachos

MIT library is free forever. Cloud is pay-as-you-go after 1,000 MAU.