The Insights page shows how a CLI is used, which commands fail, and the feedback people send. Open the project and click Insights in its sidebar. A project with both a CLI and an MCP server has a CLI and MCP server switch at the top.
Pick Today, 7 days, or 30 days. Days are in UTC. From the terminal, pass --days 1, 7, or 30.
The top line
Calls, Failed, New people, and New feedback for the period.
okibi clis insights overview my-cli --days 30 okibi clis insights my-cli
clis insights on its own prints a fixed seven-day summary: Identity users and successful commands, anonymous report totals, and installer fetches.
New people counts people who first ran this CLI signed in with Okibi Identity during the period. Anonymous reports don't count. It shows whether or not usage reports are on.
Turn on usage reports
Anonymous command analytics is off by default and independent of Okibi Identity. A workspace owner or admin can turn on Collect anonymous command analytics under Usage reports. That rebuilds the published CLI with reporting on. One setting covers the CLI and the MCP server.
okibi clis analytics status my-cli okibi clis analytics enable my-cli okibi clis analytics disable my-cli
Turning it on or off rebuilds the exact published source, without unpublished repository edits. Users can turn reports off by setting DO_NOT_TRACK=1.
Reports include command names, which approved flags were used, whether the command worked (with the exit code, error type, and HTTP status when it didn't), how long it took, whether agent mode was on, which commands ran together, and the CLI's version. They never include what people type, what the command prints, error text, or who ran it. Delivery is best effort, so counts can be incomplete. Reports are kept for 30 days.
Sections
| Section | What it shows | From the terminal |
|---|---|---|
| Activity | How much it's used, day by day | okibi clis insights overview my-cli |
| Commands | Each command's calls, failures, and timings | okibi clis insights commands my-cli |
| Workflows | What people try to do, and command sequences people repeat | okibi clis insights workflows my-cli, okibi clis insights common my-cli |
| Sessions | Commands reported together | okibi clis insights groups my-cli, okibi clis insights events my-cli <group> |
| Feedback | What people said | okibi clis feedback my-cli |
| Usage reports | What the CLI sends, and the switch | okibi clis analytics status my-cli |
commands, groups, and events return one page at a time. Pass the previous response's continueCursor with --cursor until isDone is true. Pages reflect live data, so restart a scan to include reports that arrived since.
Workflows and sessions
A session groups calls from one parent process, or an explicit workflow token. It doesn't identify a person or a conversation. Groups expire after 30 minutes idle or four hours in total.
For an explicit workflow, use the CLI-specific environment variable shown in its generated README. For my-cli, create a fresh token in a POSIX shell, run your commands, then unset it:
export MY_CLI_ANALYTICS_WORKFLOW="$(my-cli --analytics-workflow-id)" # Run your my-cli commands for this workflow. unset MY_CLI_ANALYTICS_WORKFLOW
AI summaries
Owners and admins can ask Okibi's AI what people use the CLI for, or what one session was probably trying to do. Both are unverified AI inference, and run only when you ask.
Under Workflows, click Analyze workflows. Under Sessions, pick a group and click Summarize group.
A workspace can request 20 summaries a day.
The MCP server
Switch to MCP server to see Tool calls, Failed, and Approx. p95 for the hosted MCP server, with each tool's calls and failures under Tools.
okibi clis insights mcp my-cli --days 7Feedback
People and agents send feedback with your generated CLI's own feedback command:
my-cli feedback "The list command needs a status filter"Each message shows its text, the CLI version, and when it arrived. It also shows an agent ID when the sender's environment sets AGENT_ID. Messages are kept for 90 days.
Agents connected over the MCP server can send feedback too, with the send_feedback tool. The read-only surface leaves it out.
okibi clis feedback my-cli --limit 20What your users control
Your CLI sends feedback only when someone runs feedback or an agent calls send_feedback. The feedback command saves each message on the user's machine first, in ~/.local/share/my-cli/feedback.jsonl, then sends it to you through Okibi.
| To | Run |
|---|---|
| Keep one message on this machine | my-cli feedback --local-only "Your message" |
| Keep every message on this machine | Set MY_CLI_FEEDBACK_LOCAL_ONLY=true |
| See saved messages | my-cli feedback list |
The variable name starts with your CLI's name in capitals, with dashes turned into underscores.
