Getting Started
Install
Section titled “Install”npm install -g @newrelic/preflightRun Setup
Section titled “Run Setup”preflight setupThe 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 |
Start Coding
Section titled “Start Coding”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.
Connect New Relic (optional)
Section titled “Connect New Relic (optional)”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:
preflight install \ --mode cloud \ --license-key YOUR_LICENSE_KEY \ --account-id YOUR_ACCOUNT_IDEU accounts add --eu. FedRAMP accounts add --fedramp. Japan accounts add --jp.
See the Advanced Configuration page for alerts, OTLP export, and Terraform deployment.
Requirements
Section titled “Requirements”- Node.js v22 or higher
- An AI coding tool (Claude Code recommended for deepest integration)
- New Relic account — only for
cloud/bothmode