AI Agent Usage
Use the Monito CLI with AI agents like Claude Code, GPT, and custom scripts.
Overview
The Monito CLI is designed for AI agent consumption. Every command supports --json for structured output, and data is cleanly separated from human text (stdout vs stderr).
Authentication
Set the MONITO_TOKEN environment variable:
Or retrieve a token programmatically:
Structured Output
Use --json to get machine-readable output:
Parsing with jq
Workflow Example
A typical AI agent workflow:
Claude Code Integration
When using Monito CLI with Claude Code, the AI agent can:
- Run
monito-cli project list --jsonto discover available projects - Run
monito-cli scenario run <id> --jsonto execute tests - Parse the JSON output to understand test results
- Use
monito-cli session events <id> --jsonto debug failures
The --json flag ensures all output is parseable, and exit codes indicate pass/fail status.