Skip to main content
This guide shows you how to add observability to your Python LLM application.

Prerequisites

  • Muxx Python SDK installed (pip 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:

Async Support

The SDK fully supports async operations:

Metadata

Add custom metadata for filtering:

Next Steps

Tracing

Learn more about traces and spans

Decorators

Use @observe and other decorators