Installation
Fastest path:- npm
- Homebrew
- Binary Download
Quick Start
Get your API key
Go to Settings > API Keys in the Outlit dashboard. Create an API key, copy it, and keep it safe.
Authenticate
~/.config/outlit/credentials.json with 0600 permissions.You can also pass the key directly:Set up AI agents (optional)
Install the Or target a specific coding agent:For MCP clients like Cursor or VS Code, use the direct MCP Integration guide instead.
outlit skill for detected coding agents with one command:Authentication
The CLI resolves your API key from the following sources, in order:| Priority | Source | How to set |
|---|---|---|
| 1 | --api-key flag | outlit customers list --api-key ok_... |
| 2 | OUTLIT_API_KEY env var | export OUTLIT_API_KEY=ok_... |
| 3 | Config file | outlit auth login |
Auth Commands
auth status makes a live API call to validate your key:
auth whoami validates your key and outputs a single line in TTY mode — useful for scripting:
Available Commands
| Command | Description |
|---|---|
customers list | Filter and list customers by billing status, MRR, activity, and traits |
customers get | Get a detailed customer profile with optional sections (users, revenue, etc.) |
customers timeline | View activity timeline filtered by channel and event type |
users list | Filter and list users by journey stage, activity, customer, and traits |
facts | Retrieve AI-generated facts and signals for a customer |
search | Natural language search across customer context |
sources get | Retrieve one exact source record behind a fact or search result |
sql | Run SQL queries against analytics tables |
schema | Discover database tables and columns |
integrations list | List available integrations and connection status |
integrations add | Connect a new integration (OAuth or API key) |
integrations remove | Disconnect an integration and remove synced data |
integrations status | Show sync status for connected integrations |
setup | Install Outlit skills for coding agents |
doctor | Run environment diagnostics |
completions | Generate shell completion scripts |
upgrade | Upgrade the CLI with the package manager that installed it |
Updates
In interactive terminals, the CLI checks for newer published versions using a local cache so normal commands stay fast. When an update is available, it prints a short notice to stderr and continues.outlit upgrade tries to use the same package manager that installed the CLI, such as Bun, npm, pnpm, or Yarn. Set OUTLIT_NO_UPDATE_NOTIFIER=1 to suppress automatic notices.
Output Modes
The CLI has two output modes: interactive (tables, spinners, colors) and JSON (machine-readable). JSON mode activates automatically when:- stdout is piped (
outlit customers list | jq) --jsonflag is passed- Running in CI (
CI=trueorGITHUB_ACTIONSis set) - Terminal is dumb (
TERM=dumb)
AI agents like Claude Code and Cursor run commands with piped stdout, so they automatically receive JSON output — no
--json flag needed.What’s Next
Commands
Full reference for all data commands
AI Agents
Install Outlit skills for Claude Code, Codex, Gemini CLI, Droid, OpenCode, Pi, OpenClaw, and more
Configuration
Environment variables and config paths