CLI

The m8tes CLI lets you manage teammates and run tasks directly from your terminal.

Installation

cURL

Verify the install:

cURL

Authentication

Log in to save your credentials locally:

cURL

You'll be prompted for your email and password. Credentials are stored securely for future sessions.

Other auth commands:

cURL

Or skip login and pass your API key directly:

cURL

Running Tasks

Execute a one-off task with a teammate:

cURL

Output Formats

cURL

Interactive Chat

Start a multi-turn conversation:

cURL

Session commands:

CommandDescription
/exit or /quitEnd the chat session
/clearClear conversation history
/resume <run_id>Switch to a different run's context

Teammate Management

cURL

Task Management

Create reusable task definitions attached to teammates. Tasks can be triggered manually, on a schedule, via webhook, or by email.

cURL

Run Inspection

View details about past runs — conversation history, token usage, and tool executions.

cURL

Development Mode

Use --dev to target your local backend:

cURL

This connects to http://127.0.0.1:8000 by default. Override the port with M8TES_PORT:

cURL

Or point to any backend with --base-url:

cURL

Command Aliases

Most commands have short aliases for faster typing:

Full CommandAlias
m8tes matem8tes m
m8tes mate taskm8tes m t
m8tes mate chatm8tes m ch
m8tes mate listm8tes m ls
m8tes mate createm8tes m c
m8tes task executem8tes task x
m8tes task listm8tes task ls
m8tes run listm8tes r ls
m8tes run list-matem8tes r lm
m8tes authm8tes a
m8tes auth loginm8tes a l

CLI vs SDK

The CLI uses the same backend as the Python SDK. Choose based on your workflow:

CLISDK
Best forQuick tasks, debugging, explorationApplications, automation, integrations
AuthEmail/password loginAPI key (m8_)
StreamingBuilt-in terminal outputRunStream iterator