Skip to main content
The Mutagent client takes options controlling auth, the API endpoint, timeouts, and retries. With no options it reads MUTAGENT_API_KEY from the environment and targets the hosted Platform.
You rarely need to set anything — new Mutagent() with MUTAGENT_API_KEY exported is enough for most scripts. Override serverURL only if you’re pointed at a non-default endpoint.