Skip to content

Getting Started

Terminal window
npm install -g @newrelic/preflight
Terminal window
preflight setup

The wizard defaults to local mode — press Enter through the prompts and you’re set. It wires Preflight into your AI tool (hooks + MCP server) and writes config to ~/.newrelic-preflight/. Takes under a minute, no account required.

When prompted, pick a mode:

Mode What it does New Relic account?
local (default) Everything stays on your machine; live dashboard at localhost:7777 Not needed
cloud Ships telemetry to New Relic Required
both Local dashboard and New Relic Required

Restart your AI tool — hooks and the MCP server load at session start. Every tool call is captured automatically. Open http://localhost:7777 to watch your session live.

Local mode is fully featured on its own. Connect a New Relic account to unlock team & manager dashboards, alerting, cross-session history, and weekly coaching reports.

Re-run preflight setup and choose cloud or both, or configure it non-interactively:

Terminal window
preflight install \
--mode cloud \
--license-key YOUR_LICENSE_KEY \
--account-id YOUR_ACCOUNT_ID

EU accounts add --eu. FedRAMP accounts add --fedramp. Japan accounts add --jp.

See the Advanced Configuration page for alerts, OTLP export, and Terraform deployment.

  • Node.js v22 or higher
  • An AI coding tool (Claude Code recommended for deepest integration)
  • New Relic account — only for cloud/both mode