Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/link-cli-command-telemetry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@stripe/link-cli': patch
---

Record best-effort command usage analytics for direct CLI and MCP invocations.
2 changes: 2 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,6 @@ Rules:
| `LINK_API_BASE_URL` | Override API base URL |
| `LINK_AUTH_BASE_URL` | Override auth base URL |
| `LINK_HTTP_PROXY` | Route all SDK requests through an HTTP proxy (requires `undici` installed) |
| `DO_NOT_TRACK` / `LINK_CLI_TELEMETRY_OPTOUT` | Disable command analytics when either equals `1` or `true` (case-insensitive) |
| `LINK_CLI_TELEMETRY_URL` | Override AEL destination for development; invalid values disable telemetry |
| `LINK_IDENTITY_COMMANDS` | When `1` or `true`, register the unlisted `identity` command group. Omitted from `--help`, `--llms`, and MCP otherwise. |
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,19 @@ link-cli demo --only-card # virtual card flow only
link-cli demo --only-spt # machine payment (SPT) flow only
```

## Command analytics

Link CLI sends a best-effort `CLI Command` event to `https://r.stripe.com/0`
when a command starts, including commands invoked through MCP. Events contain
the command name, CLI version, and a recognized AI agent name when available.
They do not contain command arguments, credentials, API requests, or results.
Failed commands count as dispatches; the event does not report success or
failure. Help, version, and MCP discovery requests are not counted.

Set `DO_NOT_TRACK=1` or `LINK_CLI_TELEMETRY_OPTOUT=1` to disable these events.
`LINK_CLI_TELEMETRY_URL` overrides the destination for local development.
Sending failures do not affect command output or exit status.

## Development

Workspace development requires Node.js 24+.
Expand Down
Loading
Loading