Glossary

What is personal access token (pat)?

A personal access token is a user-generated credential that lets scripts and tools act on that user's behalf in place of a password.

A personal access token, or PAT, is a string a user creates in a service's settings to authenticate scripts, command-line tools and automation without typing a password or completing an interactive login. GitHub, GitLab, Azure DevOps and others offer them. A PAT acts as the user, so it carries that user's permissions unless narrowed. GitHub, for example, distinguishes fine-grained tokens, which can be limited to chosen repositories and specific permissions and must have an expiry, from classic tokens with broad scopes. Because the token is a bearer credential, anyone who has it can do what it allows, which makes leaks serious: a PAT in a public repository can be found by scanners within minutes. Providers like GitHub scan for their own token formats and notify or revoke them. Good habits are to choose the narrowest scope, set a short expiry, store the token in a password or secrets manager rather than a plain file, use a separate token per tool, and revoke tokens when a project ends. For automation, prefer a machine identity such as a GitHub App or service account so access does not depend on one person's account. BotPassword keeps PATs encrypted. Its cli_login intent lets git, Docker, the AWS CLI and kubectl fetch a granted token through a credential helper instead of keeping it in their config; the tool receives the token, so the agent can read it there.

Give agents access. Keep the keys.

BotPassword is in early access. Request an invite and we'll email you when your spot opens.