Setup guides
One guide for each way nomi attaches to an agent. Each says what is recorded automatically, what your code declares, and what it can't see. nomi never changes how your agent runs: if it’s off, down or hanging, your agent carries on with the same output.
- Custom Loop Python: Custom LoopTypeScript: Custom Loop
- OpenAI Agents SDK Python: OpenAI Agents SDKTypeScript: OpenAI Agents SDK
- LangChain and LangGraph Python: LangChain and LangGraphTypeScript: LangChain.js and LangGraph.js
- Claude Agent SDK Python: Claude Agent SDKTypeScript: Claude Agent SDK
- Pydantic AI Python: Pydantic AI
- Google ADK Python: Google ADK
- Local Model Python: Local Model
- Vercel AI SDK TypeScript: Vercel AI SDK
- Mastra TypeScript: Mastra
There is an SDK for Python and one for TypeScript. The TypeScript SDK (runnomi-sdk 1.0.0) isn't on npm: it is installed from the release's packed file. Its guides were tested on Node 22.13.0 against local stand-ins for the model provider, not a provider's API. There are no guides for Java or .NET.
For every setup
Where nomi runs
The same machine, containers, another machine of yours, SSH tunnels, several machines, and reading from elsewhere. Everything beyond one machine is opt-in; runs stay on the machines you run, and nothing is sent anywhere else.
Open the page: Where nomi runsPython · The Python SDK at the places your loop calls models and tools
Custom Loop
For an agent that calls a provider's API itself. You wrap each unit of work, each model call and each tool call once, where your loop already makes them.
- Versions
- Python SDK (nomi-sdk) 1.0.0; any model provider
Python · An adapter that adds to the framework's own tracing
OpenAI Agents SDK
One call at startup records model calls, tool calls and handoffs from every Runner.run. Optional run hooks make tool-call IDs exact and give each tool its line of code.
- Versions
- openai-agents >=0.20,<0.26 with openai >=2.45,<4; Python SDK (nomi-sdk) 1.0.0
Python · One call at startup, through langchain-core's own configure hook
LangChain and LangGraph
One call at startup reaches every chain, agent and graph in the process. Nothing changes where you invoke them, and your callbacks and LangSmith keep working.
- Versions
- langchain-core >=1.1.2,<1.9; langgraph >=1.0.2,<1.3 and langchain >=1.1.0,<1.6 when installed; Python SDK (nomi-sdk) 1.0.0
Python · Claude Code's own telemetry export for model calls, prompts and replies (its log events, with its traces adding detail), plus an adapter for tool calls
Claude Agent SDK
Model calls, prompts and replies come from the Claude Code program's own telemetry; tool calls come from an adapter in your process. Both land in one run.
- Versions
- claude-agent-sdk >=0.2.140,<0.2.188 with mcp >=2.0,<2.4; Python SDK (nomi-sdk) 1.0.0
Python · The framework's own OpenTelemetry GenAI spans, exported to the local receiver
Pydantic AI
Pydantic AI writes its own OpenTelemetry spans. Point its exporter at the local receiver and model and tool calls are recorded with no other code. Add the Python SDK for decisions and effects.
- Versions
- pydantic-ai-slim 2.69.0; Python SDK (nomi-sdk) 1.0.0 for declarations
Python · The framework's own OpenTelemetry GenAI spans, exported to the local receiver
Google ADK
Google ADK writes its own OpenTelemetry spans. Point its exporter at the local receiver and model and tool calls are recorded. Add the Python SDK for decisions and effects.
- Versions
- google-adk 2.15.0 with Gemini; Python SDK (nomi-sdk) 1.0.0 for declarations
Python · Any of four Python routes, pointed at a model on your machine
Local Model
For an agent whose model runs on your machine. Written from runs against Ollama on four routes; nomi doesn't change how your agent talks to the model.
- Versions
- Ollama 0.40.17 with qwen2.5:0.5b and deepseek-r1:1.5b; other local servers not run
TypeScript · The TypeScript SDK at the places your loop calls models and tools
Custom Loop
For an agent that calls a provider's API itself, with the Anthropic or OpenAI JavaScript client or any other. You wrap each unit of work, each model call and each tool call once, where your loop already makes them.
- Versions
- TypeScript SDK (runnomi-sdk) 1.0.0, installed from the release's packed file; Node 22 or later, run on Node 22.13.0 only; any model provider
TypeScript · An adapter that adds to the framework's own tracing
OpenAI Agents SDK
One call at startup records model calls, tool calls and handoffs from every Runner. Optional hooks on the Runner make tool-call IDs exact. Tool code locations aren't available, and a cancelled run reads as cancelled only when its signal is given to the scope around it.
- Versions
- @openai/agents >=0.20,<0.23 with openai >=7.2,<8; Node 22 or later; TypeScript SDK (runnomi-sdk) 1.0.0, installed from the release's packed file
TypeScript · One call at startup, through @langchain/core's own configure hook
LangChain.js and LangGraph.js
One call at startup reaches the chains, agents and graphs started after it. Nothing changes where you invoke them, and your callbacks keep working. Runs started from a callback set up before that call are missed, and tool code locations aren't available.
- Versions
- @langchain/core >=1.1.49,<1.6; @langchain/langgraph >=1.2.9,<1.8 and langchain >=1.3.5,<1.7 when installed; Node 22 or later, run on Node 22.13.0 only; TypeScript SDK (runnomi-sdk) 1.0.0, installed from the release's packed file
TypeScript · Claude Code's own telemetry export for model calls, prompts and replies (its log events, with its traces adding detail), plus an adapter for tool calls
Claude Agent SDK
Model calls, prompts and replies come from the Claude Code program's own telemetry; tool calls come from an adapter in your process. Both land in one run. In-process tools get a code location only when you pass them through observeTool.
- Versions
- @anthropic-ai/claude-agent-sdk >=0.3.327,<0.3.332; Node 22 or later, run on Node 22.13.0 only; TypeScript SDK (runnomi-sdk) 1.0.0, installed from the release's packed file
TypeScript · The framework's own OpenTelemetry GenAI spans, exported to the local receiver; with the TypeScript SDK, through an exporter it guards
Vercel AI SDK
The AI SDK writes its own OpenTelemetry spans. Spans only, model and tool calls are recorded with no nomi code. Add the TypeScript SDK for scopes, decisions, effects, the commit and identity, and an exporter that can't end your process when nomi is down.
- Versions
- ai >=7.0.0,<7.0.182 with @ai-sdk/otel >=1.0.0,<1.0.182; the range is checked only with the SDK, and spans only was tested with ai 7.0.179 and @ai-sdk/otel 1.0.179; Node 22 or later; TypeScript SDK (runnomi-sdk) 1.0.0 for the second shape, installed from a packed file
TypeScript · Mastra's own OpenTelemetry exporter, given nomi's span exporter by the SDK, plus the SDK's scopes and declarations
Mastra
Mastra traces its agent runs itself. The SDK hands Mastra's exporter nomi's own span exporter, joins each Mastra run to the scope around it and is told when Mastra aborts a run. The range is one minor version, and each run's options go through runOptions().
- Versions
- @mastra/core >=1.85,<1.86 with @mastra/otel-exporter >=1.6,<1.7; Node 22.13 or later; TypeScript SDK (runnomi-sdk) 1.0.0, installed from the release's packed file