ChatterMate CLI
The ChatterMate CLI (chattermate) lets you sign up, log in, mint access tokens, and configure
agents, workflows, and knowledge sources directly from your terminal — no browser required. It’s
ideal for automation, CI pipelines, and scripting your ChatterMate setup.
The CLI and MCP server are part of the enterprise/commercial edition. They authenticate with
Personal Access Tokens, which require the enterprise backend.
Installation
The CLI is published as thechattermate-sdk Python package. It installs two commands:
chattermate (with the alias cmate) and chattermate-mcp.
Pointing at your instance
By default the CLI talks to the hosted API athttps://api.chattermate.chat — no
configuration needed. Only set the API URL when targeting a local or self-hosted backend.
--api-url flag, the CHATTERMATE_API_URL environment
variable, your saved config, then the default https://api.chattermate.chat.
Authentication
You can authenticate two ways.- Log in (interactive)
- Personal Access Token
Best for day-to-day terminal use. Stores JWT access + refresh tokens in
~/.chattermate/config.json (mode 600) and refreshes them automatically.Sign up
Create a new organization and admin user (community signup) without leaving the terminal:Personal Access Tokens
Personal Access Tokens (PATs) are long-lived, revocable credentials prefixed withcmat_. They
are the recommended way to authenticate the MCP server, CI jobs, and any
headless automation.
Create a token
cmat_... secret and a ready-to-paste
MCP client config snippet./api/v1/enterprise/tokens (POST create, GET list,
DELETE /{id} revoke).
Managing resources
Every command supports a--json flag for machine-readable output, making the CLI easy to script.
Agents
Agents
Workflows
Workflows
Knowledge
Knowledge
Command reference
| Command | Description |
|---|---|
chattermate signup | Create an organization and admin user |
chattermate login | Log in and store JWT credentials |
chattermate logout | Remove stored credentials |
chattermate whoami | Show the authenticated user |
chattermate token create <name> | Create a Personal Access Token |
chattermate token list | List your tokens |
chattermate token revoke <id> | Revoke a token |
chattermate agent list|get|create|update | Manage AI agents |
chattermate workflow get|create|update|nodes|set-nodes | Manage workflows |
chattermate knowledge add-url|list|link|unlink|status | Manage knowledge sources |
Configuration & environment
| Variable | Purpose |
|---|---|
CHATTERMATE_API_URL | API base URL (default https://api.chattermate.chat; set to http://localhost:8000 for local) |
CHATTERMATE_TOKEN | A Personal Access Token (cmat_...) for non-interactive auth |
CHATTERMATE_CONFIG_DIR | Override the config directory (default ~/.chattermate) |
~/.chattermate/config.json (written with 600
permissions).
Next steps
MCP Server
Let AI agents configure ChatterMate through the Model Context Protocol.
Authentication
Learn how ChatterMate handles users, sessions, and tokens.