Keys / Infura

INFURA_API_KEY

The Infura API key your app calls Ethereum and other networks with, at the end of each endpoint URL. The free plan allows one key.

Expires
the docs don't say
API
none; dashboard only

Get it

Create one on app.infura.io. The steps aren't recorded yet.

Set it

INFURA_API_KEY=...

Your app adds it to each endpoint URL, such as https://mainnet.infura.io/v3/<key>. Infura's JWT tutorial reads it from INFURA_API_KEY. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. In the dashboard, select Create new API key and give it the same networks, allowlists, rate limits and API key secret setting as the old key. Each key has its own security settings.
  2. If you use JWTs, upload your JWT public key to the new key and turn on Require JWT for all requests if the old key had it. Update your signer to use the new key's JWT ID as kid.
  3. Deploy the new key everywhere that reads INFURA_API_KEY. Both keys work in the meantime.
  4. Check that requests succeed and nothing still uses the old key, then open it, select Configure and Delete API Key.
  5. The free plan allows one key, so there you delete the old key first and the app is down until the new one is deployed. The Developer plan allows five.

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