Skip to main content

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.

Installation

Install MutagenT tools for your development environment. The CLI is the primary developer interface for MutagenT. It handles authentication, framework integration, and trace management.
bun add -g @mutagent/cli

Verify Installation

mutagent --version
# @mutagent/cli v0.1.186

Authenticate

After installing, log in to connect the CLI to your MutagenT account. The CLI presents two authentication methods interactively: browser-based OAuth or pasting an API key.
mutagent auth login
You can also specify the authentication method directly:
# Browser-based OAuth flow
mutagent auth login --browser

# Direct API key (for CI/CD pipelines)
export MUTAGENT_API_KEY=mt_xxxxxxxxxxxx
# OR use non-interactive mode:
mutagent auth login --non-interactive
Check your authentication status at any time:
mutagent auth status
For CI/CD environments, set the MUTAGENT_API_KEY environment variable (no login needed). The CLI also respects CI=true and MUTAGENT_NON_INTERACTIVE=true to auto-select browser auth.
See CLI Documentation for full details.

SDK (Optional)

The SDKs provide programmatic access for advanced use cases: direct API access, custom integrations, or scripting.
The TypeScript SDK (@mutagent/sdk v0.2.137):
bun add @mutagent/sdk
import { Mutagent } from '@mutagent/sdk';

const client = new Mutagent({
  security: { apiKey: process.env.MUTAGENT_API_KEY },
});

console.log('MutagenT TypeScript SDK installed successfully');

Integration Packages

Most developers use integration packages that auto-trace LLM framework calls. Install the one matching your framework.
bun add @mutagent/langchain
You do not need to install integration packages manually if you use mutagent integrate. The CLI generates the integration code and tells you which package to install.

Environment Variables

VariablePurposeDefault
MUTAGENT_API_KEYAPI key for authentication (SDK and CLI)
MUTAGENT_ENDPOINTCustom API endpointhttps://api.mutagent.io
MUTAGENT_DEBUGEnable debug logging for span start/end eventsNo
MUTAGENT_NON_INTERACTIVESet to true to skip interactive promptsfalse

System Requirements

TypeScript / Node.js

RequirementVersion
Node.js18.0+
Bun1.0+
TypeScript5.0+ (recommended)

Python

RequirementVersion
Python3.10+