Separate AI API keys for staging and production

Give development, staging, and production their own gateway keys so you can test changes and rotate access independently.

Example workflow

A web app has a production background worker and a staging worker that replays synthetic prompts. Give each a named credential in its own server-side settings.

What to check

  1. Make a request from each environment and confirm you can distinguish it through the available activity metadata.
  2. Rotate the staging credential and test the worker after the change. Verify production independently before touching its credentials.

When Spendplane Pro fits

Pro includes unlimited gateway keys for a developer with several environments or applications. Assign each key to a specific workload and keep a rotation owner.

Related resources