# keypal > API keys for TypeScript: generate, hash, verify, scope, rotate, and revoke them, stored wherever you already keep data. ## Docs - [keypal](https://keypal.dev/docs): API keys for TypeScript. Generate, hash, verify, scope, rotate, and revoke them, stored wherever you already keep data. ## Getting started - [Installation](https://keypal.dev/docs/getting-started/installation): Install keypal and the database client for your storage adapter. - [Quick start](https://keypal.dev/docs/getting-started/quick-start): Create an API key and verify your first request. - [Configuration](https://keypal.dev/docs/getting-started/configuration): Every option createKeys takes, its default, and when to change it. ## Concepts - [API keys](https://keypal.dev/docs/concepts/api-keys): What a key is, what keypal stores, how verify decides, and how a key moves from created to revoked. - [Scopes and permissions](https://keypal.dev/docs/concepts/scopes-and-permissions): Limit what a key may do with scopes, and let broad scopes grant narrower ones. - [Resource scopes](https://keypal.dev/docs/concepts/resource-scopes): Grant a key scopes for one project, site, or team instead of all of them. - [Expiration](https://keypal.dev/docs/concepts/expiration): Make keys stop working at a set time, and check a key's status yourself. - [Tags](https://keypal.dev/docs/concepts/tags): Label keys so you can find and act on groups of them. - [Caching](https://keypal.dev/docs/concepts/caching): What the key cache saves and what it doesn't - [Audit logging](https://keypal.dev/docs/concepts/audit-logging): Record who created, revoked, rotated, enabled, or disabled each key, and query the history. ## Storage - [Overview](https://keypal.dev/docs/storage/overview): Where keypal keeps API keys, and how to choose an adapter - [Memory](https://keypal.dev/docs/storage/memory): The default in-process store, for tests and local development - [Redis](https://keypal.dev/docs/storage/redis): Store keys in Redis with ioredis - [Drizzle](https://keypal.dev/docs/storage/drizzle): Store keys in PostgreSQL, MySQL, MariaDB or SQLite through Drizzle ORM - [Kysely](https://keypal.dev/docs/storage/kysely): Store keys in PostgreSQL, MySQL, MariaDB or SQLite through Kysely - [Prisma](https://keypal.dev/docs/storage/prisma): Store keys in PostgreSQL through Prisma - [Custom storage](https://keypal.dev/docs/storage/custom-storage): Verify keys in a table you already have, or write your own adapter ## API reference - [createKeys()](https://keypal.dev/docs/api-reference/create-keys): Create an API key manager and the options it takes - [Verification](https://keypal.dev/docs/api-reference/verification): Verify API keys from a string or request headers - [Key management](https://keypal.dev/docs/api-reference/key-management): Create, find, revoke, rotate, enable and disable API keys - [Permissions](https://keypal.dev/docs/api-reference/permissions): Check a key's scopes, resource scopes and expiry - [Audit logs](https://keypal.dev/docs/api-reference/audit-logs): Query, count, delete and summarize audit log entries - [Utilities](https://keypal.dev/docs/api-reference/utilities): Manager helpers for extracting, generating and hashing keys and clearing the cache ## Utilities - [Standalone functions](https://keypal.dev/docs/utilities/standalone-functions): keypal functions you can call without a manager - [ResourceBuilder](https://keypal.dev/docs/utilities/resource-builder): Build a key's resources map with a chainable API - [Error handling](https://keypal.dev/docs/utilities/error-handling): Error codes keypal returns and throws, and how to handle them ## Agent skills - [keypal](https://keypal.dev/.well-known/agent-skills/keypal/SKILL.md): Read the keypal docs instead of answering from memory. API keys for TypeScript: generate, hash, verify, scope, rotate, and revoke them, stored wherever you already keep data. Use when a task involves keypal: how it works, how to set it up or configure it, or its API. ## Agent resources - [llms-full.txt](https://keypal.dev/llms-full.txt): The full Markdown of every page in one file. - [Page Markdown](https://keypal.dev/index.md): Append `.md` to any page URL to fetch that page as raw Markdown. - [JSON API](https://keypal.dev/api/docs/pages.json): Page index of the JSON docs API; each entry links the page's JSON and Markdown forms. Described by the OpenAPI document at https://keypal.dev/openapi.json. - [Agent skills](https://keypal.dev/.well-known/agent-skills/index.json): Agent Skills discovery index of the skills this site publishes. - [API catalog](https://keypal.dev/.well-known/api-catalog): RFC 9727 linkset of the APIs documented here. - [AI catalog](https://keypal.dev/.well-known/ai-catalog.json): ARD manifest of the agent-facing resources on this site (MCP server, skills, APIs). - [agent-readability.json](https://keypal.dev/agent-readability.json): Manifest of every agent-facing artifact on this site. - [Sitemap](https://keypal.dev/sitemap.xml): Every indexable page URL with its last-modified date.