Skip to main content

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.
Not the tool you were looking for? This page is the account CLI — it signs you up and manages agents, workflows, and knowledge against the ChatterMate API. If you want to self-host ChatterMate with Docker, you need the separate self-host CLI (npm install -g chattermate-deploy), documented in the Quickstart → Self-host. Both install a chattermate command, but they are different tools.

Installation

The CLI installs two commands: chattermate (with the alias cmate) and chattermate-mcp. Install it from PyPI (chattermate-cli) or npm (chattermate-cli, a thin wrapper that runs the Python CLI via uvx/pipx).
The npm package requires uv or pipx on your PATH (it launches the Python CLI). Prefer pure Python? Use pip/pipx directly.
Verify the install:

Pointing at your instance

By default the CLI talks to the hosted API at https://api.chattermate.chat — no configuration needed. Only set the API URL when targeting a local or self-hosted backend.
The URL resolves in this order: the --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.
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 without leaving the terminal. Signup emails a one-time code to --admin-email; supply it with --otp or enter it at the prompt:
You’re logged in automatically after signup.
Running a single-org self-hosted instance (no email delivery)? Add --community to create the org directly without OTP verification.

Personal Access Tokens

Personal Access Tokens (PATs) are long-lived, revocable credentials prefixed with cmat_. They are the recommended way to authenticate the MCP server, CI jobs, and any headless automation.
A token’s secret is shown only once, at creation time. Store it somewhere safe — it cannot be retrieved again.
1

Create a token

The output includes the cmat_... secret and a ready-to-paste MCP client config snippet.
2

List your tokens

Only the non-secret prefix and metadata are shown.
3

Revoke a token

PATs are also managed through the API at /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.
Providers: chattermate (free managed), openai, anthropic, google, groq, mistral, ollama, and more. Custom models require a Pro plan.
The widget id is what goes in window.chattermateId — see Widget integration.
set fetches the current config, applies your flags, and saves the result (custom fields configured in the dashboard are preserved). Email is always collected and required. Lead capture is a Pro feature — see Lead capture.
Options include colors (--accent, --background, --bubble, --text, --icon-color), design theme --style (CHATBOT, ASK_ANYTHING, GLASS, TERMINAL, PLAYFUL, CALM_MINT, AURORA, SUNRISE), --position (FLOATING/FIXED), --font, --custom-css, welcome title/subtitle/message, --quick-action, --initiation-message, --show-citations and --collect-email. Only the options you pass change — the rest keep their current values. See Chat customization.Text limits: welcome title ≤ 100, subtitle ≤ 250, message ≤ 500, and each initiation nudge ≤ 100 characters (nudges are also clamped to 4 lines in the launcher).
Manage the public Help Center — FAQs, imports, branding, and custom domain. (Generating FAQs from the knowledge base stays in the dashboard.)
The help center is a Pro/Enterprise feature. See Help Center.

Command reference

Configuration & environment

Credentials and the saved API URL live in ~/.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.