Documentation Index
Fetch the complete documentation index at: https://docs.mutagent.io/llms.txt
Use this file to discover all available pages before exploring further.
Python SDK Installation
The MutagenT Python SDK (mutagent-sdk) is the official Python client for the MutagenT platform. It provides a type-safe, async-first interface for managing prompts, datasets, evaluations, traces, and more.
Requirements
| Requirement | Version |
|---|---|
| Python | 3.10+ |
| Package manager | pip (standard) |
Install
mutagent-sdk. The import path is from mutagent import ....
The package name on PyPI is mutagent-sdk but the Python import root is mutagent (no dash). This is standard Python SDK convention.
API Key
All API calls require a MutagenT API key. Get one at app.mutagent.io or via the CLI:Verify Installation
Sync and Async Clients
The SDK ships two client classes:| Class | Usage |
|---|---|
Mutagent | Synchronous — works everywhere, no event loop required |
AsyncMutagent | Asynchronous — use with async/await and asyncio |
Sync client
Async client
Environment Variables
| Variable | Description | Default |
|---|---|---|
MUTAGENT_API_KEY | Your MutagenT API key | Required |
MUTAGENT_SERVER_URL | Custom API endpoint for the Python client | http://localhost:3003 |
The Python SDK client defaults to
http://localhost:3003 for the API endpoint. For production, set MUTAGENT_SERVER_URL=https://api.mutagent.io or pass server_url="https://api.mutagent.io" to the constructor. Note: the tracing module (init_tracing) uses a separate endpoint kwarg that defaults to https://api.mutagent.io.Next Steps
Quickstart
Create your first prompt in Python
Tracing
Add observability to your Python LLM calls
Python Integrations
Auto-trace OpenAI, Anthropic, LangChain, and LangGraph
API Reference
Full REST API documentation