Skip to main content
The Maitai CLI lets you manage Maitai product resources from the terminal, applications, intents, agents, workflows, datasets, test sets, finetune runs, sentinels, analytics, and more. It wraps the API Reference (/api/v1).

Install

Authenticate

Create API keys in the Portal under Settings > API Keys.

Quick usage

Base URL

  • Production: https://api.trymaitai.ai/api/v1
  • Override with MAITAI_BASE_URL or maitai login --base-url

Response format

  • Success: {"data": {...}}
  • Paginated: {"data": [...], "pagination": {"total": N, "offset": 0, "limit": 25}}
  • Error: {"error": {"status": 401, "message": "..."}}

Command reference

See Commands for the full list of resource commands and options. For coverage details and intentionally excluded Portal/admin surfaces, see API Coverage.