Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/positioning-descriptions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@glinr/theauth": patch
"@glinr/theauth-cli": patch
"@glinr/theauth-gateway": patch
---

Update the package descriptions to the shared positioning wording. No code changes.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<h1 align="center">theAuth</h1>

<p align="center"><strong>Open-source auth for AI agents and humans.</strong><br>
Agent identity, delegation, MCP OAuth 2.1 server, DPoP, passkeys, device flow. A self-hostable Better Auth alternative for TypeScript.</p>
<p align="center"><strong>Auth where AI agents get their own identity, limited permissions and an audit trail, next to normal human sign in.</strong><br>
Open source, MIT, TypeScript and a Go SDK. Includes an MCP OAuth 2.1 server.</p>

<p align="center">
<a href="https://www.npmjs.com/package/@glinr/theauth"><img src="https://img.shields.io/npm/v/@glinr/theauth?style=flat&colorA=000000&colorB=000000&label=npm" alt="npm version" /></a>
Expand Down Expand Up @@ -36,9 +36,13 @@ Agent identity, delegation, MCP OAuth 2.1 server, DPoP, passkeys, device flow. A

## What it is

Most auth libraries stop at human sign-in. Once an AI agent needs its own identity, scoped permissions, delegation from a user, and an audit trail, you end up bolting a second system on. theAuth puts agents and humans in one library: sign-in methods, an OAuth 2.1 authorization server for MCP, and agent tokens with permissions you can check and audit.
Most auth libraries stop at human sign in. When an AI agent calls your API or an MCP server, it usually borrows a user's session or a shared key, and afterwards you cannot tell who did what. theAuth gives each agent its own identity and token, limited permissions granted by a human owner, delegation with a depth limit and an expiry, and an audit row for every decision. Human sign in and an OAuth 2.1 authorization server for MCP live in the same library.

It runs on Node, Bun, Deno and Cloudflare Workers with three runtime dependencies (`drizzle-orm`, `jose`, `zod`). MIT licensed. No hosted service required.
<p align="center">
<img src="https://raw.githubusercontent.com/glincker/theauth/main/docs/assets/model-diagram.svg" alt="A human owner creates an agent and delegates permissions with a depth limit and an expiry. The agent calls with its own token. The theAuth gate checks permission, writes the audit log and passes allowed calls to resources such as an MCP server or your API." width="720" />
</p>

It is 0.x and has not had an independent security audit. It runs on Node, Bun, Deno and Cloudflare Workers, and core has four runtime dependencies (`drizzle-orm`, `jose`, `sql.js`, `zod`). MIT licensed. No hosted service required.

## 30 second quickstart

Expand Down Expand Up @@ -87,7 +91,7 @@ To mount it over HTTP, pick an adapter such as `@glinr/theauth-hono` or `@glinr/
| DPoP | Sender-constrained tokens for MCP resource servers | [DPoP](https://docs.theauth.dev/dpop) |
| Token vault | Encrypted third-party OAuth tokens for agents, refresh with a shared lock, key rotation | [Token vault](https://docs.theauth.dev/token-vault) |
| Human sign-in | Email and password (HIBP check), magic link, email OTP, phone OTP, passkeys, TOTP, anonymous, Google One Tap, SIWE, device flow, username, captcha | [Auth](https://docs.theauth.dev/auth) |
| Providers and presets | 17 first-class OAuth providers, a generic OIDC factory, and ready-made presets for more | [Providers](https://docs.theauth.dev/auth/more-providers) |
| Providers and presets | 17 OAuth providers with their own factories, a generic OIDC factory, and ready-made presets for more | [Providers](https://docs.theauth.dev/auth/more-providers) |
| Enterprise | Organizations with RBAC, SAML 2.0 and OIDC SSO, SCIM, admin controls, API keys, GDPR export and delete, compliance evidence export (not a certification) | [Docs](https://docs.theauth.dev) |
| CLI | `theauth doctor` checks your setup for common mistakes (`--json` for CI) | [CLI tools](https://docs.theauth.dev/cli-tools) |

Expand Down Expand Up @@ -163,7 +167,7 @@ Checked against each vendor's public docs on 2026-10-07. Vendors change fast, so
| Agent identity as its own model | Add-on: Token Vault, CIBA | Not found in docs | Plugin, not yet stable | **Yes, core** |
| Enterprise SSO | Yes | Yes | Plugin | **SAML 2.0, OIDC, SCIM** |

Where theAuth is the weaker choice: Better Auth has a larger community, more tutorials and a bigger plugin catalog. Auth0 and Clerk are managed products with hosted UIs and support contracts, which we do not match. Pick theAuth when agents are first-class users of your system and you want to run the whole thing yourself. Migration guides: [`migrate-from-auth0`](https://github.com/glincker/theauth/tree/main/examples/migrate-from-auth0), [`migrate-from-better-auth-agent-plugin`](https://github.com/glincker/theauth/tree/main/examples/migrate-from-better-auth-agent-plugin).
Where theAuth is the weaker choice: Better Auth has a larger community, more tutorials and a bigger plugin catalog. Auth0 and Clerk are managed products with hosted UIs and support contracts, which we do not match. Pick theAuth when agents need their own identity and audit trail in your system and you want to run the whole thing yourself. Migration guides: [`migrate-from-auth0`](https://github.com/glincker/theauth/tree/main/examples/migrate-from-auth0), [`migrate-from-better-auth-agent-plugin`](https://github.com/glincker/theauth/tree/main/examples/migrate-from-better-auth-agent-plugin).

## Packages

Expand Down
84 changes: 84 additions & 0 deletions docs/assets/model-diagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions docs/branding-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Branding notes

Internal copy reference. This file is not part of the published docs navigation.

## Positioning line

Auth where AI agents get their own identity, limited permissions and an audit trail, next to normal human sign in.

## One paragraph

Most auth libraries stop at human sign in. When an AI agent calls your API or an MCP server, it usually borrows a user's session or a shared key, and afterwards you cannot tell who did what. theAuth gives each agent its own identity and token, limited permissions granted by a human owner, delegation with a depth limit and an expiry, and an audit row for every decision. Human sign in and an OAuth 2.1 authorization server for MCP live in the same library.

## GitHub About text (under 120 characters)

Auth where AI agents get their own identity, limited permissions and an audit trail, next to human sign in.

## Facts that stay true until they change

- Version is 0.x. Not audited, not certified.
- MIT licensed. TypeScript SDK plus a Go SDK (theauth-go).
- Runs on Node, Bun, Deno and Cloudflare Workers.
- Core has four runtime dependencies: `drizzle-orm`, `jose`, `sql.js`, `zod`.
- MCP OAuth 2.1 authorization server included.
- Agent tokens start with `kv_`. The prefix predates the rename from Kavach and stays so issued tokens keep working.
- Name: TheAuth (formal), theAuth (prose and logo), theauth (code and npm).
- Contact: support@glinr.com. Community: GLINR Discord (shared server).

## Approved phrases

- "agents get their own identity, limited permissions and an audit trail"
- "next to normal human sign in"
- "delegation with a depth limit and an expiry"
- "an audit row for every decision"
- "MCP OAuth 2.1 server"
- "self-hostable, no hosted service required"
- "0.x, not independently audited"
- "17 OAuth providers with their own factories, plus a generic OIDC factory"

## Phrases to avoid

- "first-class" (as in "first-class providers" or "first-class agents"): say what it means instead
- "edge-native", "enterprise-grade", "battle-tested", "secure", "audited", "certified", "bank-grade"
- "three runtime dependencies" (it is four)
- "Better Auth alternative" in taglines (comparison belongs in the compare page)
- "Kavach" in user-facing copy, except where explaining the `kv_` prefix or the migration codemod
- "Used by" lists, demo URLs, anything implying production users we cannot name
- Em dashes, en dashes, and AI-ish words: seamless, robust, comprehensive, crucial, landscape, showcase
- `@theauth.com` addresses
4 changes: 2 additions & 2 deletions docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: theAuth
description: Open-source auth for AI agents and humans. Agent identity, permissions, delegation, audit and MCP OAuth, plus 14 human auth methods and 17 OAuth providers, in one TypeScript SDK.
description: Auth where AI agents get their own identity, limited permissions and an audit trail, next to normal human sign in. MCP OAuth 2.1, 14 human auth methods and 17 OAuth providers in one TypeScript SDK.
icon: book-open
---

**Auth for AI agents and for the humans behind them.** theAuth gives every agent its own identity, checks permissions at call time and writes an audit row for every decision. It also ships human auth: 14 methods (email and password, magic link, passkeys, TOTP and more) and 17 OAuth providers. Use either half alone, or both. Runs on Node, edge, Workers, Deno and Bun.
**Auth where AI agents get their own identity, limited permissions and an audit trail, next to normal human sign in.** theAuth gives every agent its own token, checks permissions at call time and writes an audit row for every decision. It also ships human auth: 14 methods (email and password, magic link, passkeys, TOTP and more) and 17 OAuth providers. Use either half alone, or both. Runs on Node, Bun, Deno and Cloudflare Workers.

<Note>Building in Go? See the [theAuth Go library docs](/go/getting-started/overview).</Note>

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@glinr/theauth-cli",
"version": "0.3.2",
"description": "CLI for theAuth: set up agent identity and MCP OAuth 2.1, run migrations, launch the admin dashboard, codemod from Kavach.",
"description": "CLI for theAuth: set up agent identity and MCP OAuth 2.1, check your setup with doctor, run migrations, launch the admin dashboard.",
"type": "module",
"bin": {
"theauth": "./dist/bin.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@glinr/theauth",
"version": "0.7.1",
"description": "Open-source auth for AI agents and humans: agent identity, delegation, MCP OAuth 2.1 server, DPoP, passkeys, and audit",
"description": "Auth where AI agents get their own identity, limited permissions and an audit trail, next to human sign in. MCP OAuth 2.1 server, DPoP, passkeys. TypeScript, MIT, 0.x.",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/gateway/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@glinr/theauth-gateway",
"version": "4.0.2",
"description": "Standalone auth proxy for TheAuth - enforces auth, authorization, and audit in front of any API or MCP server",
"description": "Auth proxy for theAuth: checks agent permissions and writes the audit log in front of any API or MCP server.",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Loading