/api-keys:api-keysfrom api-keys
Designs the API-key system a platform issues to its own API consumers. Use when building or hardening key issuance for a public or partner API, choosing a key format (prefix, checksum, entropy), hash-only storage and lookup, scopes, dual-key rotation and revocation, service-account ownership and offboarding, or deciding keys versus OAuth.
Ships in api-keys. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A key identifies the calling application, not a user. Design the system so a leaked, lost, or orphaned key stays a contained event.
Not for logging in to your own app or validating tokens (app-auth), OAuth authorization-server design (api-oauth-provider), webhook signing (api-webhooks), each if installed, or consuming another vendor's keys.
The schema, validation steps, hash rationale, rotation procedure, offboarding and self-service details are in references/storage-and-rotation.md. Read it when implementing any of those.
Decide per surface, since mature platforms run both.
api-oauth-provider, if installed) when a third-party app acts for a user, or when cross-org machine traffic on sensitive data justifies short-lived scoped tokens.Use a key as the sole credential for a sensitive operation only with extra controls, such as IP or network access policy.
Get these facts before designing: greenfield or retrofit (and how existing keys are stored today), who holds keys (individuals, teams, unattended jobs), whether third-party apps act for users, and whether product RBAC already exists for scopes to reuse.
prefix_ plus a random body plus a checksum. The prefix encodes type and environment (sk_live_, rk_test_), and the checksum allows offline rejection and cuts scanner false positives.api-webhooks, if installed, for the signing scheme.last_used_at asynchronously.Rotation works only when two keys are valid at once. Provide one roll operation that creates the new key and schedules the old key's end, then watch the old key's last_used_at until traffic stops, and deactivate before deleting.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub adminhead/claude-plugins --plugin api-keys