
better-auth / agent-auth
★ 51A skill package that teaches your agent 2 capabilities — every one documented and browsable below, no GitHub required · by better-auth.
Each skill below is one capability this package teaches your agent. Install the whole package, or open a skill to install just that one.
Use the Agent Auth CLI (auth-agent) to discover providers, connect agents, manage capabilities, and execute operations. Use when the user wants to interact…
1 file — installable on its own
Use the Agent Auth MCP tools to discover providers, connect agents, manage capabilities, and execute operations through the MCP protocol. Use when working…
1 file — installable on its own
Agent Auth
Open-source implementations of the Agent Auth Protocol—authentication, capability-based authorization, and service discovery for AI agents that connect to your product.
Agents discover your service, register with a cryptographic identity, request capabilities, and run them. Sensitive actions stay behind user approval. The canonical specification is nicepkg/agent-auth-protocol on GitHub.
Packages
| Package | Description | Install |
|---|---|---|
@better-auth/agent-auth | Better Auth server plugin | npm i @better-auth/agent-auth |
@auth/agent | Client SDK for agent runtimes | npm i @auth/agent |
@auth/agent-cli | CLI and MCP server | npx @auth/agent-cli |
Examples
Next.js reference apps under examples/ integrate @better-auth/agent-auth with Drizzle:
agent-deploy— Baseline flow with email/password sign-ingmail-proxyandvercel-proxy— Same stack with WebAuthn/passkeys enabled (pick whichever structure fits your app)
The apps/ directory contains internal applications (directory, desktop, browser extension) used in development and demos.
Additional packages and examples will be added over time.
CI and releases
GitHub Actions (under .github/workflows/):
- CI — On pull requests and pushes to
main/canary:pnpm fmt:check(Oxfmt), then install with a frozen lockfile andturbobuild, typecheck, and test forpackages/*only (published libraries), on Node 22.x and 24.x (see.nvmrc). Format the tree locally withpnpm fmt. - Release — Pushing a tag
v*runs changelogithub, builds the same packages, and runspnpm -r publishto npm. Required: repository secretNPM_TOKENwith publish access. Tags matching*-beta,*-rc,*-canary, or*-nextpublish under that dist-tag; stable tags must point at a commit onmain(or av*.*.x-latestbranch), matching the Better Auth release rules. - Preview — Pull requests trigger pkg-pr-new for installable previews of
./packages/*. - npm dist-tag — Manual workflow to move a dist-tag on an existing version.
Optional: set TURBO_TOKEN and repository variable TURBO_TEAM (or rely on the default team) for Vercel Remote Cache, same idea as Better Auth.
License
Install the whole package (2 skills):
npx skills add https://github.com/better-auth/agent-authOr install a single skill:
npx skills add https://github.com/better-auth/agent-auth --skill <name>Pick the skill name from the Skills tab — each entry there installs independently.