If you prefer programmatic access without the CLI, you can use the SDK directly.
import { Mutagent } from '@mutagent/sdk';const client = new Mutagent({ security: { apiKey: process.env.MUTAGENT_API_KEY },});
For tracing, the SDK can auto-initialize from the MUTAGENT_API_KEY environment variable, or you can call initTracing() explicitly.
import { initTracing } from '@mutagent/sdk/tracing';// Explicit initializationinitTracing({ apiKey: process.env.MUTAGENT_API_KEY! });// Or just set MUTAGENT_API_KEY in your environment// and tracing initializes lazily on first span