You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The old name was hard to search for and hard to say for most English-speaking developers, and the library never surfaced for general TypeScript auth queries. A name with "auth" in it is easier to find, for people and for AI assistants that recommend libraries. We renamed rather than keep waiting.
What changed for me?
Packages: kavachos is now @glinr/theauth, and the adapters are @glinr/theauth-* (for example @glinr/theauth-hono instead of @kavachos/hono).
Code: the Kavach* exports are removed on the default branch. createKavach is now createTheAuth, KavachProvider is TheAuthProvider, and so on. The Auth* names (for example createAuth) still exist as deprecated aliases.
Environment variables are THEAUTH_*, webhook headers are X-TheAuth-*, and database tables are theauth_*. Existing kavach_* tables are renamed in place by createTables, so rows are kept.
@glinr/theauth@0.5.0 on npm still ships both the old and the new names, so an existing install keeps working until you upgrade past it.
The full list of old and new names is in the rename map.
How do I migrate?
npm uninstall kavachos
npm install @glinr/theauth
- import { createKavach } from "kavachos";+ import { createTheAuth } from "@glinr/theauth";- import { createHonoAdapter } from "@kavachos/hono";+ import { theAuthHono } from "@glinr/theauth-hono";
Rename the calls to match the map, and rename any KAVACH_* environment variables to THEAUTH_*. See the rename map for everything else, and check your own code for cookie names or routes that you read directly.
Which frameworks are supported?
Server adapters: Hono, Express, Next.js (App Router), Fastify, Nuxt, SvelteKit, Astro, NestJS, SolidStart and TanStack Start, published as @glinr/theauth-<name>. There is also @glinr/theauth-nextjs-auth for Next.js apps that use an external auth backend, and @glinr/theauth-prisma for Prisma.
Client packages: @glinr/theauth-react (TheAuthProvider and hooks), -vue, -svelte, -expo, -electron, -ui and -ui-headless.
Mount code for each framework is at docs.theauth.dev/adapters. If your framework is not listed, the core package works with any handler-shaped framework and a small adapter is a welcome pull request.
Does it run on the edge?
The core uses the Web Request and Response types and avoids Node-only APIs. The README lists Cloudflare Workers, Deno and Bun as supported. Its runtime dependencies are drizzle-orm, jose, sql.js and zod. Example on Workers with D1, from the quickstart:
MCP, the Model Context Protocol, is a spec for connecting AI clients to tools and data. MCP servers can require OAuth 2.1 tokens. theAuth ships an authorization server for that: PKCE with S256 only, RFC 9728 (Protected Resource Metadata), RFC 8414 (Authorization Server Metadata), RFC 7591 (Dynamic Client Registration) and RFC 8707 (Resource Indicators). It is created with createMcpModule from @glinr/theauth/mcp and mounted through an adapter. Setup is in this thread and at docs.theauth.dev/mcp. If you are not building anything that talks MCP, you can ignore it.
How does agent identity work?
An AI agent is its own identity, not a user with an API key. It has:
A random bearer token with a kv_ prefix, verified server side. (The prefix predates the rename.)
A type: autonomous, delegated or service.
A scoped permission set, with wildcards and constraints.
Delegation chains with depth limits, see this thread.
For requireApproval, authorize() denies the call. Your application then creates an approval request with theauth.approval.request(), notifies a human, and carries out the action itself after approve(). Approval is a record, not a bypass. See docs.theauth.dev/approval.
How is it different from Auth.js or Better Auth?
They are different tools with different goals, and both are good at what they do. We do not publish feature-by-feature claims about other libraries here because we have not verified them against current docs. The README comparison table and this thread only include points we could source. Short version: theAuth is built around agent identity, MCP and delegation alongside human auth. If you only need human sign-in in a Next.js app, check whether a smaller tool already covers it.
Is it production ready?
Treat the version number as the answer. The core package is 0.5.x, and the changelog tells you what changed in each release. The authorization surface (permissions, delegation, audit) and the MCP authorization server are the main focus of the project. The newer client packages (-ui, -expo, -electron) are at 0.x as well, so test them for your case. We do not publish adoption numbers.
Pricing?
The library is MIT licensed and free to self-host. A managed option, theAuth Cloud, is in early access with no published prices yet, see theauth.dev/pricing.
What about old kavachos installs?
Existing installs keep working. New installs should use @glinr/theauth and the @glinr/theauth-* packages.
Is there a Go version?
Yes, theauth-go. It is a separate library with the same design philosophy: OAuth 2.1 authorization server, MCP resource server support and agent identity. Docs: docs.theauth.dev/go.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Running FAQ for theAuth, the TypeScript library formerly named kavachOS. It grows with what people ask. Last refreshed 2026-10-06.
Quick links: Website · Docs · Quickstart · Rename map · GLINR Discord
Why the rename from kavachOS to theAuth?
The old name was hard to search for and hard to say for most English-speaking developers, and the library never surfaced for general TypeScript auth queries. A name with "auth" in it is easier to find, for people and for AI assistants that recommend libraries. We renamed rather than keep waiting.
What changed for me?
kavachosis now@glinr/theauth, and the adapters are@glinr/theauth-*(for example@glinr/theauth-honoinstead of@kavachos/hono).Kavach*exports are removed on the default branch.createKavachis nowcreateTheAuth,KavachProviderisTheAuthProvider, and so on. TheAuth*names (for examplecreateAuth) still exist as deprecated aliases.THEAUTH_*, webhook headers areX-TheAuth-*, and database tables aretheauth_*. Existingkavach_*tables are renamed in place bycreateTables, so rows are kept.@glinr/theauth@0.5.0on npm still ships both the old and the new names, so an existing install keeps working until you upgrade past it.The full list of old and new names is in the rename map.
How do I migrate?
Rename the calls to match the map, and rename any
KAVACH_*environment variables toTHEAUTH_*. See the rename map for everything else, and check your own code for cookie names or routes that you read directly.Which frameworks are supported?
Server adapters: Hono, Express, Next.js (App Router), Fastify, Nuxt, SvelteKit, Astro, NestJS, SolidStart and TanStack Start, published as
@glinr/theauth-<name>. There is also@glinr/theauth-nextjs-authfor Next.js apps that use an external auth backend, and@glinr/theauth-prismafor Prisma.Client packages:
@glinr/theauth-react(TheAuthProviderand hooks),-vue,-svelte,-expo,-electron,-uiand-ui-headless.Mount code for each framework is at docs.theauth.dev/adapters. If your framework is not listed, the core package works with any handler-shaped framework and a small adapter is a welcome pull request.
Does it run on the edge?
The core uses the Web
RequestandResponsetypes and avoids Node-only APIs. The README lists Cloudflare Workers, Deno and Bun as supported. Its runtime dependencies aredrizzle-orm,jose,sql.jsandzod. Example on Workers with D1, from the quickstart:What is MCP OAuth 2.1?
MCP, the Model Context Protocol, is a spec for connecting AI clients to tools and data. MCP servers can require OAuth 2.1 tokens. theAuth ships an authorization server for that: PKCE with S256 only, RFC 9728 (Protected Resource Metadata), RFC 8414 (Authorization Server Metadata), RFC 7591 (Dynamic Client Registration) and RFC 8707 (Resource Indicators). It is created with
createMcpModulefrom@glinr/theauth/mcpand mounted through an adapter. Setup is in this thread and at docs.theauth.dev/mcp. If you are not building anything that talks MCP, you can ignore it.How does agent identity work?
An AI agent is its own identity, not a user with an API key. It has:
kv_prefix, verified server side. (The prefix predates the rename.)autonomous,delegatedorservice.authorize()decision is logged whileauditAllis on, which is the default.requireApprovalpermission constraint for human-in-the-loop flows.For
requireApproval,authorize()denies the call. Your application then creates an approval request withtheauth.approval.request(), notifies a human, and carries out the action itself afterapprove(). Approval is a record, not a bypass. See docs.theauth.dev/approval.How is it different from Auth.js or Better Auth?
They are different tools with different goals, and both are good at what they do. We do not publish feature-by-feature claims about other libraries here because we have not verified them against current docs. The README comparison table and this thread only include points we could source. Short version: theAuth is built around agent identity, MCP and delegation alongside human auth. If you only need human sign-in in a Next.js app, check whether a smaller tool already covers it.
Is it production ready?
Treat the version number as the answer. The core package is
0.5.x, and the changelog tells you what changed in each release. The authorization surface (permissions, delegation, audit) and the MCP authorization server are the main focus of the project. The newer client packages (-ui,-expo,-electron) are at0.xas well, so test them for your case. We do not publish adoption numbers.Pricing?
The library is MIT licensed and free to self-host. A managed option, theAuth Cloud, is in early access with no published prices yet, see theauth.dev/pricing.
What about old kavachos installs?
Existing installs keep working. New installs should use
@glinr/theauthand the@glinr/theauth-*packages.Is there a Go version?
Yes, theauth-go. It is a separate library with the same design philosophy: OAuth 2.1 authorization server, MCP resource server support and agent identity. Docs: docs.theauth.dev/go.
How do I report a security issue?
Use a private security advisory, or follow SECURITY.md. Please do not open a public issue for a vulnerability.
Where do I ask other questions?
Reply here, open an issue for bugs, or join the GLINR Discord, a shared GLINR Studios server.
All reactions