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 flowmutagent 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.
Most developers use integration packages that auto-trace LLM framework calls. Install the one matching your framework.
TypeScript
Python
bun add @mutagent/langchain
bun add @mutagent/langgraph
bun add @mutagent/openai
# @mutagent/mastra is not yet published — coming soon# bun add @mutagent/mastra
bun add @mutagent/vercel-ai
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.
The Python integration packages are pending publication to PyPI. Until then, install from source. See Python Integrations for setup guides.