CLI Installation
The MutagenT CLI (@mutagent/cli) is available on npm. The current version is 0.1.30.
Install
Standalone Binary
You can also build a standalone binary from source that requires no Bun or Node.js runtime. The binary includes all dependencies in a single executable. Available targets:linux-x64, linux-arm64, darwin-x64, darwin-arm64, windows-x64.
Verify Installation
Authenticate
Interactive Login
- Browser OAuth (recommended) — opens your browser for secure login
- API Key — enter your
mt_prefixed API key directly
Non-Interactive Login
For CI/CD pipelines, set theMUTAGENT_API_KEY environment variable (no login step needed):
--non-interactive flag or set CI=true to suppress interactive prompts and auto-select browser auth:
Environment Variables
When
MUTAGENT_API_KEY and MUTAGENT_ENDPOINT are set, the CLI uses them automatically — no auth login step is needed. This is the recommended pattern for AI agents and CI/CD pipelines.Check Status
System Requirements
| Requirement | Minimum Version | Notes |
|---|---|---|
| Bun | >= 1.1.0 | Recommended runtime for package install |
| Node.js | >= 18.0.0 | Alternative runtime for package install |
| OS | macOS, Linux, Windows | Supported platforms |
Supported Binary Platforms
Configuration
The CLI uses a configuration hierarchy (highest to lowest priority):Configuration File Example
Create.mutagentrc.json in your project:
mutagent.config.js: