Skip to main content
This guide shows you how to add observability to your Node.js/TypeScript LLM application.

Prerequisites

  • Muxx TypeScript SDK installed (npm install muxx)
  • Your Muxx API key
  • An LLM provider SDK (OpenAI, Anthropic, etc.)

Basic Usage

Wrap Your Client

The simplest way to use Muxx is to wrap your LLM client:
That’s it! All requests are now logged to Muxx.

Adding Context

Traces

Group related operations into traces:

Spans

Add more granular tracking with spans:

Metadata

Add custom metadata for filtering:

Error Handling

Errors are automatically captured in traces:

Next Steps

Tracing

Learn more about traces and spans

OpenAI

OpenAI-specific features