Hardcoded API keys
The simplest pattern: read one token from an environment variable and use it for every request.Shared service account
A step up from a raw key: create one bot account per platform and share it across agents, scripts, and pipelines.github-bot) for many systems. Attribution becomes guesswork.
User token passthrough
Here, the agent receives the user’s OAuth token directly.Long-lived personal access tokens
Common in CLI agents and unattended automations: users paste PATs/API keys into.env.
These patterns ship quickly. They fail when agents move into production and teams need least privilege, attribution, and controlled revocation.