Keys / New Relic

NEW_RELIC_LICENSE_KEY

The license key your New Relic agents report data to one account with. It's an ingest key; querying needs a user key.

Expires
the docs don't say
API
create, update and delete, with NerdGraph and a user key

Get it

Create one on one.newrelic.com/api-keys. The steps aren't recorded yet.

Set it

NEW_RELIC_LICENSE_KEY=...

The New Relic agents for Node.js, Python, Java, Ruby and .NET read it from this variable. The Go agent reads it when you pass newrelic.ConfigFromEnvironment(). Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. Create a new license key on the API Keys page. You can't delete an account's original license key, so rotate between keys you created.
  2. Deploy it everywhere that reads NEW_RELIC_LICENSE_KEY, then restart the agents. Both keys work in the meantime.
  3. Check that nothing still reports with the old key, then delete it.

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