NVIDIA NeMo Relay

NVIDIA NeMo Relay is a library that wraps your agents' model and
tool calls so you can observe, control, and tune them, without rewriting the
agent stack you already have.
- See every agent run. Capture model calls, tool calls, turns, and subagents
from Hermes Agent, Claude Code, Codex, OpenClaw, LangChain, Google ADK, or
your own code as one event stream, then export it as raw events,
trajectories, OpenTelemetry, or OpenInference.
- Enforce policy at the call. Middleware and guardrails can block,
sanitize, redact, or rewrite a tool or model call before it runs, not after
the fact.
- Keep the stack you have. Relay attaches to supported agents and
frameworks through the Relay CLI or maintained integrations, and to your own
code through SDKs for Python, Node.js, and Rust.
- Extend it with plugins. Turn on built-in observability, PII redaction, model pricing, resource metrics, and adaptive tuning from one
plugins.toml file, or build your own exporters, middleware, and policies as custom plugins.
- Tune cost and latency. Model pricing estimates the cost of each call, and
adaptive plugins tune caching and request hints from observed behavior.
Note
NeMo Relay is beta software. APIs and behavior may change with each release.
Review the Release Notes
and Migration Guides
before upgrading.
Quick Start
Put Relay in front of a supported coding agent you already use:
curl -fsSL https://raw.githubusercontent.com/NVIDIA/NeMo-Relay/main/install.sh | sh
nemo-relay claude # or: nemo-relay codex
On Windows, install with
irm https://raw.githubusercontent.com/NVIDIA/NeMo-Relay/main/install.ps1 | iex.
On first run, Relay walks you through setup in your terminal. After that, each
run launches the agent with Relay attached and removes it when the agent exits.
To record and inspect a complete run, follow the
Claude Code
or Codex
quick start.
For other harnesses and frameworks, check our quick starts.
Learn by Example
How Relay Fits
An agent request touches many components: an entry point starts work, a model is
called, tools run, and subagents branch off. Relay gives all of them one shared
runtime contract for scopes, policy, plugins, and lifecycle events, instead of
asking every layer to invent its own wrappers and trace vocabulary.
flowchart LR
Sources["Application Code<br/>Agent Harness<br/>Agent Framework"]
subgraph Runtime[NeMo Relay Middleware]
direction TB
Scopes[Scopes]
Middleware[Middleware]
Plugins[Plugins]
Events[Lifecycle Events]
end
Consumers[Subscribers / Exporters]
subgraph Outputs[Outputs and Destinations]
ATOF[ATOF JSONL]
ATIF[ATIF Trajectories]
OTEL[OpenTelemetry]
OI[OpenInference]
end
Sources -->|managed calls, hooks, or routed traffic| Runtime
Runtime --> Consumers
Consumers --> ATOF
Consumers --> ATIF
Consumers --> OTEL
Consumers --> OI
Relay is not a dashboard. Arize Phoenix, CoreWeave Weights & Biases, Langfuse, LangSmith, and other observability products store and explore agent runs; Relay sits inside the run and feeds them through the export path you configure. It also doesn't replace your agent framework, model provider, or guardrail authoring system. Check the Ecosystem guide for more details.
Choose Your Path
Pick the row closest to what you are trying to do.
| Goal | Start With | How Relay Attaches |
|---|
| Observe Codex or Claude Code on your machine | Quick start for Codex or Claude Code | The Relay CLI connects to these supported agents' hooks and provider traffic. No application code changes. |
| Use Hermes Agent | Hermes Agent quick start | Relay is built into Hermes Agent and reads standard Relay plugin configuration. No CLI or separate plugin needed. |
| Use OpenClaw | OpenClaw Plugin Guide | The nemo-relay-openclaw plugin maps OpenClaw hooks to Relay events and pre-tool guardrails. |
| Instrument LLM or tool calls your application owns | Python, Node.js, or Rust quick start | Direct SDK instrumentation runs the full lifecycle and middleware sequence around your callbacks. |
| Use LangChain, LangGraph, Deep Agents, or Google ADK | Supported Integrations | Maintained integrations use public framework APIs. |
| Export traces, trajectories, or raw events | Observability | Exporters consume one event stream and write ATOF, ATIF, OpenTelemetry, or OpenInference. |
| Run Relay as a shared, administrator-managed service | Daemon | A background daemon gives every user and coding agent one managed entry point, locally or on a remote Linux server. |
| Build a framework, host, or provider integration | Integrate into Frameworks | Wrap the framework's tool and LLM call sites. |
| Package reusable exporters, middleware, or policy | Build Plugins | Ship language-binding, native, or gRPC worker plugins that turn on from configuration. |
| Develop or test this repository | CONTRIBUTING.md | Build from source. |
Install
Install the component that matches where Relay attaches, then follow the quick start for your agent, framework, or language from the table above.
# CLI for supported coding agents (Claude Code, Codex)
curl -fsSL https://raw.githubusercontent.com/NVIDIA/NeMo-Relay/main/install.sh | sh
# Python 3.11+ (add extras for langchain, langgraph, deepagents, google-adk)
uv add nemo-relay
# Node.js 24.13.1+
npm install nemo-relay-node
# Rust
cargo add nemo-relay
On Windows, install the CLI with the
PowerShell installer.
Refer to Installation
for platforms, version pinning, and integration packages, or to
Quick Starts
for a first run in a few minutes.
Set Up With Your Coding Agent
Relay publishes agent skills that let Claude Code, Codex, Cursor, and other
compatible coding agents install Relay, pick the right integration path, and
debug missing events for you:
npx skills add nvidia/skills \
--skill nemo-relay-install \
--skill nemo-relay-get-started \
--agent claude-code
Then ask your agent to get you started with NeMo Relay. Change --agent to
codex, cursor, or another supported target. The full skill set covers
instrumentation, plugins, and troubleshooting; refer to skills/
for the list.
Coding agents can also read the docs directly through
llms.txt or the docs MCP
server at https://docs.nvidia.com/nemo/relay/_mcp/server.
How It Works
Relay builds on a small set of runtime concepts:
- Scopes give runs, turns, tools, LLM calls, and subagents clear
parent-child relationships, automatic cleanup, and request isolation.
- Marks record point-in-time events, such as session starts, compaction, or
skill loads.
- Managed LLM and tool calls apply the same lifecycle and middleware rules
around every callback.
- Middleware blocks, sanitizes, transforms, routes, retries, or replaces
execution where policy requires it.
- Plugins turn on observability, guardrail, PII redaction, adaptive, model
pricing, and exporter behavior from configuration.
- Events and subscribers deliver every output from the same runtime
activity.
Every output comes from one canonical event stream:
| Output | Use It For |
|---|
| ATOF JSONL | The raw, canonical lifecycle event stream. Start here when debugging. |
| ATIF trajectories | Replay, analysis, and evaluation of completed runs. |
| OpenTelemetry | Traces, logs, and metrics for OTLP-compatible backends. |
| OpenInference | OpenInference-compatible tracing tools. |
How much Relay can do depends on where the real call happens:
| If… | Use | What Relay Can Do |
|---|
| The call can be routed through Relay | Managed execution | Run middleware, then invoke the real function. Full observe and control. |
| The framework keeps control but emits before/after notifications | Lifecycle hooks | Translate hooks into Relay events. Observe, but not execute or rewrite. |
| A supported coding agent sends model requests itself | Gateway | The Relay CLI routes that agent's provider traffic to record LLM calls. Use it only with the supported coding agents. |