Keys / Alchemy

ALCHEMY_API_KEY

The Alchemy app's API key your app calls blockchain APIs with. The free tier includes 30 million compute units a month.

Expires
the docs don't say
API
create and delete apps, each with its key, with an Admin API access key

Get it

Create one on dashboard.alchemy.com/apps. The steps aren't recorded yet.

Set it

ALCHEMY_API_KEY=...

The Alchemy CLI reads it from this variable. For the HTTP API, your app puts it in the endpoint URL or the Authorization header. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. A team admin opens the app's App Settings tab and clicks Rotate API key. The app keeps its settings and usage data; the old key stops working within 2 minutes.
  2. Deploy the new key right away everywhere that reads ALCHEMY_API_KEY, then make a test request with it.
  3. To switch with no gap, create a second app with the same chains, services and allowlists instead, move traffic to its key, then delete the old app.

Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.

Sources, checked 2026-11-16