# @better-auth/api-key

> API Key plugin for Better Auth.

Latest version **1.7.20** (published 2026-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @better-auth/api-key
pnpm add @better-auth/api-key
yarn add @better-auth/api-key
bun add @better-auth/api-key
```

## Health

**Score 80/100 (A)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score; popular repo.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.7.20 |
| Published | 2026-11-10 |
| First published | 2026-02-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 155.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 30502 |
| Maintainers | bekacru, better-gustavo |
| Keywords | auth, api-key, typescript, better-auth |

## Links

- npm: https://www.npmjs.com/package/@better-auth/api-key
- Repository: https://github.com/better-auth/better-auth
- Homepage: https://www.better-auth.com/docs/plugins/api-key
- npm.io page: https://npm.io/package/@better-auth/api-key

## Dependencies (1)

- [zod](https://npm.io/package/zod.md) ^4.5.4

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.7.20 (latest) — 2026-11-10
- 1.8.0-beta.7 (beta) — 2026-11-10
- 1.6.34 (release-1.6) — 2026-11-01
- 1.7.0-rc.6 (rc) — 2026-08-14
- 1.7.19 — 2026-11-10
- 1.8.0-beta.6 — 2026-11-05
- 1.7.18 — 2026-11-05
- 1.7.17 — 2026-11-04
- 1.8.0-beta.5 — 2026-11-03
- 1.7.16 — 2026-11-03
- 1.8.0-beta.4 — 2026-11-01
- 1.7.15 — 2026-11-01
- 1.8.0-beta.3 — 2026-10-27
- 1.7.14 — 2026-10-26
- 1.7.13 — 2026-10-25
- … 81 more at https://npm.io/package/@better-auth/api-key/versions

## README

# Better Auth API Key Plugin

API Key plugin for [Better Auth](https://www.better-auth.com) — manage API keys for your users.

## Installation

```bash
npm install @better-auth/api-key
```

## Documentation

For full documentation, visit [better-auth.com/docs/plugins/api-key](https://www.better-auth.com/docs/plugins/api-key).

## License

MIT

---
_Source: https://npm.io/package/@better-auth/api-key · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
