Requires Node.js 20+. Interactive login uses your Chatbase account in the browser (
chatbase auth login --browser). API keys (Standard plan or higher) work for paste-login and CI — create them in Workspace settings → API keys.Install
Quick start
1
Authenticate in the browser
chatbase auth login and paste a key from Workspace settings → API keys. See CLI Auth for all login options.2
List your agents
3
Send a message
Authenticate in CI
In non-interactive environments, set an API key in the environment instead of runningauth login:
Global output flags
Most commands support:Privacy
The CLI sends no telemetry. Requests include achatbase-cli/<version> User-Agent so Chatbase can distinguish CLI traffic. The only network calls are the API calls you invoke.
Commands
Auth
Log in, log out, and inspect credentials.
Agents
Create, update, train, clone, and delete agents.
Sources
Manage knowledge sources (text, Q&A, links, files).
Chat
Send messages and stream responses.
Conversations
List, inspect, and export conversations.
Tickets
Manage helpdesk tickets and lookups.
List templates and send template messages.
Config
Set default agent and timeout.
API
Call any API v2 endpoint directly.
Health
Check that the API is reachable.
