docs / cli-reference
CLI reference
Every promptconduit command and flag, grouped by task.
Commands that read local data, such as cost, graph, sessions,
events and local skills, need no account. Commands that talk to the platform, such as
sync, insights, team and platform skills, need
promptconduit login. Every command takes --help. For how to use them, see
the guides: cost, teams,
skills and troubleshooting. Settings
and files are in Configuration.
Generated from the command tree of CLI v0.43.5. Run promptconduit upgrade if yours is older.
Global flags
These work on every command.
| Flag | Default | Description |
|---|---|---|
--debug | Print debug logging (e.g. each HTTP request) to stderr | |
-h, --help | help for promptconduit | |
--no-color | Disable color output (also $NO_COLOR) | |
--no-input | Never prompt; fail with a hint instead (also $PROMPTCONDUIT_NO_INPUT=1) | |
-q, --quiet | Hide update and telemetry notices and tips (also $PROMPTCONDUIT_QUIET=1) | |
-v, --version | version for promptconduit |
Exit codes
Commands exit 0 on success and 1 on any error. A few
cases are worth knowing when scripting:
-
statusexits1when no assistant has PromptConduit hooks, so it works as a health check. -
testexits0without sending anything in local-only mode or when no API key is set. It exits1only when a configured request fails. -
events flushexits non-zero when queued events could not be sent because of a server or credential failure, or when another process is already replaying the queue. -
resumepasses through the exit code of theclaudeprocess it runs. -
initwithout a terminal fails unless you pass--local-onlyor--api-key-stdin, or a key is already configured. -
The hook command your AI tools call always returns a continue response, even
when capture or sending fails, so PromptConduit never blocks the tool. Failures
are recorded in
~/.promptconduit/errors.log.
Setup
login uses a browser device flow, saves the key into the active
environment, and turns local-only mode off. status also warns when
several promptconduit binaries are on your PATH and says
which one your hooks call.
promptconduit completion
Generate the autocompletion script for the specified shell
promptconduit completion
Full help text
Generate the autocompletion script for promptconduit for the specified shell. See each sub-command's help for details on how to use the generated script.
promptconduit completion bash
Generate the autocompletion script for bash
promptconduit completion bash
Full help text
Generate the autocompletion script for the bash shell. This script depends on the 'bash-completion' package. If it is not installed already, you can install it via your OS's package manager. To load completions in your current shell session: source <(promptconduit completion bash) To load completions for every new session, execute once: #### Linux: promptconduit completion bash > /etc/bash_completion.d/promptconduit #### macOS: promptconduit completion bash > $(brew --prefix)/etc/bash_completion.d/promptconduit You will need to start a new shell for this setup to take effect.
| Flag | Default | Description |
|---|---|---|
--no-descriptions | disable completion descriptions |
promptconduit completion fish
Generate the autocompletion script for fish
promptconduit completion fish [flags]
Full help text
Generate the autocompletion script for the fish shell. To load completions in your current shell session: promptconduit completion fish | source To load completions for every new session, execute once: promptconduit completion fish > ~/.config/fish/completions/promptconduit.fish You will need to start a new shell for this setup to take effect.
| Flag | Default | Description |
|---|---|---|
--no-descriptions | disable completion descriptions |
promptconduit completion powershell
Generate the autocompletion script for powershell
promptconduit completion powershell [flags]
Full help text
Generate the autocompletion script for powershell. To load completions in your current shell session: promptconduit completion powershell | Out-String | Invoke-Expression To load completions for every new session, add the output of the above command to your powershell profile.
| Flag | Default | Description |
|---|---|---|
--no-descriptions | disable completion descriptions |
promptconduit completion zsh
Generate the autocompletion script for zsh
promptconduit completion zsh [flags]
Full help text
Generate the autocompletion script for the zsh shell.
If shell completion is not already enabled in your environment you will need
to enable it. You can execute the following once:
echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions in your current shell session:
source <(promptconduit completion zsh)
To load completions for every new session, execute once:
#### Linux:
promptconduit completion zsh > "${fpath[1]}/_promptconduit"
#### macOS:
promptconduit completion zsh > $(brew --prefix)/share/zsh/site-functions/_promptconduit
You will need to start a new shell for this setup to take effect.| Flag | Default | Description |
|---|---|---|
--no-descriptions | disable completion descriptions |
promptconduit init
Interactive setup wizard
promptconduit init [flags]
Full help text
Guided setup for PromptConduit: choose cloud sync or local-only mode, authenticate (if needed), detect installed AI tools, and install hooks. Run with no flags for an interactive wizard, or use --yes to accept defaults.
| Flag | Default | Description |
|---|---|---|
--api-key <string> | Set API key directly, skipping login (visible in shell history; prefer --api-key-stdin) | |
--api-key-stdin | Read the API key from stdin, e.g. `pbpaste | promptconduit ... --api-key-stdin` | |
--experimental | Also offer experimental tools (Gemini CLI, Codex, Copilot, Grok Build) | |
--local-only | Local-only mode — no account or cloud sync | |
--tools <string> | Comma-separated tools to install (skips picker) | |
--yes | Non-interactive: install all detected tools |
promptconduit init # interactive wizard promptconduit init --local-only --yes # no account, every detected tool promptconduit init --tools claude-code,cursor --yes promptconduit init --api-key-stdin --yes < key.txt # CI / provisioning
promptconduit login
Sign in to PromptConduit via browser
promptconduit login [flags]
Full help text
Authenticate with your PromptConduit account using a browser-based device flow. Opens your browser to sign in and approve CLI access. On success, your API key is saved to ~/.config/promptconduit/config.json. Use --no-browser to print the verification URL instead of opening it automatically.
| Flag | Default | Description |
|---|---|---|
--api-url <string> | Override API URL (default: from config or https://api.promptconduit.dev) | |
--no-browser | Don't open browser automatically |
promptconduit login promptconduit login --no-browser # print the URL, e.g. over SSH
promptconduit status
Show PromptConduit installation status
promptconduit status [flags]
Full help text
Display the current configuration and installation status of PromptConduit hooks. Exits 1 when no AI tool has PromptConduit hooks installed (nothing is being captured), so scripts can use it as a health check. Local-only mode and a missing API key are normal states, not failures.
| Flag | Default | Description |
|---|---|---|
--json | Print machine-readable JSON |
promptconduit status promptconduit status --json | jq '.tools[] | select(.installed)' promptconduit status >/dev/null || promptconduit install
promptconduit test
Test API connectivity
promptconduit test
Full help text
Send a test event to the PromptConduit API to verify connectivity and authentication. Prerequisites: - An API key: run promptconduit login (or set $PROMPTCONDUIT_API_KEY)
promptconduit test promptconduit test --debug
promptconduit version
Print the version number
promptconduit version
promptconduit version promptconduit --version
Capture: install and uninstall hooks
Install writes hook entries into each tool's own config file and records the
absolute path of the running binary. Re-running it replaces the previous
PromptConduit entries, which is also how you repair hooks after moving the binary.
gemini and grok-build are accepted as aliases. Restart the
tool, or start a new session, so it loads the new hooks. Per-tool config paths and
captured events are listed in Supported Tools. Installing
for Cursor also installs the editor extension
when the cursor shell command is available.
promptconduit install
Set up PromptConduit for one or more AI tools
promptconduit install [tool...] [flags]
Full help text
Set up PromptConduit hooks for your AI coding assistants. Run with no arguments to pick interactively, or name one or more tools: promptconduit install # interactive multi-select promptconduit install cursor # a single tool promptconduit install cursor claude-code # several at once promptconduit install all # every supported tool Supported tools: - claude-code: Claude Code CLI (~/.claude/settings.json) - cursor: Cursor IDE (~/.cursor/hooks.json) Experimental tools (need --experimental; hooks install and capture events, but cost tracking and the dashboard aren't verified for them yet): - gemini-cli: Gemini CLI (~/.gemini/settings.json; also accepts "gemini") - codex: OpenAI Codex CLI (~/.codex/hooks.json) - copilot: GitHub Copilot CLI (~/.copilot/hooks/promptconduit.json) - grok: Grok Build (xAI) (~/.grok/hooks/promptconduit.json; also accepts "grok-build") promptconduit install codex --experimental # one experimental tool promptconduit install all --experimental # supported + experimental Claude Code, Cursor and Gemini CLI also get the PromptConduit MCP server, so your agent can answer cost and budget questions itself (skip with --no-mcp). The hooks capture events locally and realtime cost tracking works immediately. This is the Free tier: 100% local — every event is captured to ~/.promptconduit/events.jsonl and nothing is sent anywhere. Sign in (promptconduit login) only if you also want to sync events to the PromptConduit platform. To stay local-only even after signing in, pass --local-only.
| Flag | Default | Description |
|---|---|---|
--experimental | Also offer experimental tools (Gemini CLI, Codex, Copilot, Grok Build) | |
--local-only | Free / local-only mode: capture events locally, never send to the cloud | |
--no-extension | Don't sideload the bundled cost status-bar editor extension (Cursor) | |
--no-mcp | Don't register the PromptConduit MCP server (Claude Code, Cursor, Gemini CLI) |
promptconduit uninstall
Uninstall PromptConduit hooks from an AI tool
promptconduit uninstall <tool>
Full help text
Remove PromptConduit hooks from the specified AI coding assistant. Supported tools: - claude-code: Claude Code CLI - cursor: Cursor IDE Experimental tools (no --experimental needed to remove them): - gemini-cli: Gemini CLI (also accepts "gemini") - codex: OpenAI Codex CLI - copilot: GitHub Copilot CLI - grok: Grok Build (xAI) (also accepts "grok-build")
promptconduit uninstall cursor promptconduit uninstall claude-code
Cost and insights
How cost is priced and how to read the output: See what your sessions
cost. When the Signals line shows few cache hits, see
improving cache hit rate. The Tools
line counts tool calls by name, which pairs with
batching tool calls.
promptconduit collect
Run a local OTLP receiver, store, and dashboard for agent traces
promptconduit collect [flags]
Full help text
Start a local-first agent observability stack: - An OTLP/HTTP receiver on 127.0.0.1:4318 (paths /v1/traces, /v1/logs). - A newline-delimited JSON store under ~/.config/promptconduit/collect/. - A read-only HTML+JSON dashboard on 127.0.0.1:4319. This is the "weekend dogfood" stack: zero infra, point any OTLP-emitting agent (Claude Code, Cursor on a recent build, anything using OpenInference or OpenLLMetry) at the receiver and watch traces accumulate. The receiver speaks OTLP/HTTP+JSON only — protobuf is on the roadmap. Pointing Claude Code at the local receiver: export CLAUDE_CODE_ENABLE_TELEMETRY=1 export OTEL_EXPORTER_OTLP_PROTOCOL=http/json export OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318 Examples: promptconduit collect # run with defaults promptconduit collect --otlp :4318 # bind on all interfaces promptconduit collect --dir /tmp/pc-traces # store somewhere else
| Flag | Default | Description |
|---|---|---|
--dashboard <string> | 127.0.0.1:4319 | address for the read-only dashboard |
--dir <string> | directory for NDJSON span files (defaults to ~/.config/promptconduit/collect) | |
--otlp <string> | 127.0.0.1:4318 | address for the OTLP/HTTP receiver |
promptconduit cost
Real-time AI token cost for your sessions (100% local)
promptconduit cost [flags]
Full help text
Compute what your AI coding sessions cost, in real time, entirely on your machine. The cost feature reads local transcripts/hook payloads, prices each turn against a bundled rate table, and never sends any of your data to the PromptConduit platform or anywhere else. Run with no subcommand to see the current session's cost. The live per-request feed the editor extension renders comes from the cost enrichment on ~/.promptconduit/events.jsonl (the old 'cost watch' stream was retired with the v2 envelope). Subcommands: (none) Show the current session's cost summary session Same as running 'cost' with no subcommand history Aggregate cost over the last N days refresh-pricing Fetch the latest public model-price table (opt-in) refresh-card Download the PromptConduit rate card (also runs once a day) Cost tracking is part of the standard setup: 'promptconduit install cursor' wires the hooks that capture Cursor's exact token usage, and Claude Code cost comes from its local transcripts automatically. Models not in the rate table are reported with exact tokens but flagged unpriced rather than guessed.
| Flag | Default | Description |
|---|---|---|
--cwd <string> | workspace directory to scope to (default: current directory) | |
--from <string> | with --session: only requests at or after this RFC3339 time | |
--json | emit JSON instead of a human-readable summary | |
--session <string> | price this Claude Code session id instead of the newest one | |
--to <string> | with --session: only requests at or before this RFC3339 time |
promptconduit cost # current session in this directory promptconduit cost --json promptconduit cost history --days 30
promptconduit cost history
Daily cost over recent days, from the local event log
promptconduit cost history [flags]
| Flag | Default | Description |
|---|---|---|
--days <int> | 7 | number of days to include |
--json | emit JSON instead of a table |
promptconduit cost history promptconduit cost history --days 30 --json
promptconduit cost refresh-card
Download the PromptConduit rate card (also runs in the background once a day)
promptconduit cost refresh-card
Full help text
Download https://promptconduit.dev/model-rates.json and store it at ~/.config/promptconduit/cost/pricing-card.json. When the card's date is the same or newer than the rates embedded in this binary, its rows override the embed. The hook never calls the network; it reads this file if it is present. A failed download leaves the previous card in place. The same download starts in the background about once a day from other promptconduit commands, unless auto-update is disabled. It sends none of your data.
promptconduit cost refresh-pricing
Fetch the latest public model-price table and cache it locally (opt-in)
promptconduit cost refresh-pricing
Full help text
Fetch LiteLLM's public model_prices_and_context_window.json and cache it at ~/.config/promptconduit/cost/pricing.json. The curated built-in rates always take precedence; the cache only adds coverage for models the built-in table doesn't include. The cache only fills models the built-in table and the published PromptConduit card do not already price. It never overrides those rows. This sends none of your data — it's a plain GET of a public file. It does not run from the hook.
promptconduit cost reprice
Fix recorded Cursor cost that double-counted cached tokens
promptconduit cost reprice [flags]
Full help text
Cost is fixed when an event is recorded, so Cursor events captured before v0.21.0 still carry the cache double-count fixed in #169 (Cursor's input_tokens already includes cache reads and writes). reprice finds those events in ~/.promptconduit/events.jsonl and re-derives their cost enrichment from the raw hook payload stored with each one, keeping the request timestamp. Only events that show the bug are touched (stored input equals the raw, cache-inclusive input_tokens), so events captured after the fix are never changed and a second run does nothing. The original lines are written to a backup file and fsynced before the log is rewritten. Use --dry-run to see the effect without writing.
| Flag | Default | Description |
|---|---|---|
--dry-run | show what would change without writing |
promptconduit cost session
Print the current session's cost summary
promptconduit cost session [flags]
Full help text
Print a session's cost summary. By default it prices the newest session in the workspace (--cwd, or the current directory). With --session <id> it prices that Claude Code session wherever its transcript lives, subagents included, and --from/--to (RFC3339) keep only the requests stamped inside that window, both ends inclusive.
| Flag | Default | Description |
|---|---|---|
--cwd <string> | workspace directory to scope to (default: current directory) | |
--from <string> | with --session: only requests at or after this RFC3339 time | |
--json | emit JSON instead of a human-readable summary | |
--session <string> | price this Claude Code session id instead of the newest one | |
--to <string> | with --session: only requests at or before this RFC3339 time |
promptconduit cost session promptconduit cost session --cwd ~/code/my-repo --json promptconduit cost session --session <id> --from 2026-11-26T15:16:28Z --to 2026-11-26T15:48:22Z --json
promptconduit graph
Watch your AI coding sessions as a live, breathing graph
promptconduit graph [flags]
Full help text
Serve a live Session Graph in your browser — one AI coding session rendered as a growing tree: the session, each prompt→Stop turn (with its tool activity and cost), and every subagent it spawned, branching off as nested nodes. Running nodes pulse; worktrees get a badge. It updates in place as your agent works, reading straight from the local event log. 100% local. Nothing is sent anywhere — the page reads ~/.promptconduit/events.jsonl on your machine. Works on the Free tier and needs no editor: it runs in any browser. Examples: promptconduit graph # open the live graph in your browser promptconduit graph --addr 127.0.0.1:4321 # pick the address/port promptconduit graph --no-open # just print the URL (e.g. over SSH) promptconduit graph --backfill 5000 # seed fewer historical events
| Flag | Default | Description |
|---|---|---|
--addr <string> | 127.0.0.1:4320 | address to serve the graph on |
--backfill <int> | 10000 | recent events to seed before going live (raise for very long sessions) |
--no-open | don't open a browser, just print the URL |
promptconduit insights
View your AI coding assistant usage insights
promptconduit insights
Full help text
View personal analytics and insights about your AI coding assistant usage. This command shows you: - Session counts and activity trends - Tool usage patterns and mastery levels - Error patterns and areas for improvement - Activity streaks and consistency All data is private to you - compare yourself to your own history, not others.
| Flag | Default | Description |
|---|---|---|
-f, --format <string> | text | Output format (text, json) |
--json | Output JSON (same as --format json) | |
-p, --period <string> | 7d | Time period (24h, 7d, 30d, 90d) |
-r, --repo <string> | Filter by repository name |
promptconduit insights promptconduit insights --period 30d --repo my-org/my-repo promptconduit insights spend --json
promptconduit insights errors
View error patterns
promptconduit insights errors
Full help text
See common error patterns to identify areas for improvement.
Inherited from promptconduit insights:
| Flag | Default | Description |
|---|---|---|
-f, --format <string> | text | Output format (text, json) |
--json | Output JSON (same as --format json) | |
-p, --period <string> | 7d | Time period (24h, 7d, 30d, 90d) |
-r, --repo <string> | Filter by repository name |
promptconduit insights sessions
List recent sessions
promptconduit insights sessions [flags]
Full help text
View your recent AI coding assistant sessions.
| Flag | Default | Description |
|---|---|---|
-l, --limit <int> | 10 | Number of sessions to show |
Inherited from promptconduit insights:
| Flag | Default | Description |
|---|---|---|
-f, --format <string> | text | Output format (text, json) |
--json | Output JSON (same as --format json) | |
-p, --period <string> | 7d | Time period (24h, 7d, 30d, 90d) |
-r, --repo <string> | Filter by repository name |
promptconduit insights spend
Your synced AI spend: total, change, cache savings, models
promptconduit insights spend
Full help text
Your own AI coding spend across every machine that syncs to your account (the web Overview page). For this machine only, without an account, use 'promptconduit cost history'. Periods: 7d, 30d, 90d.
Inherited from promptconduit insights:
| Flag | Default | Description |
|---|---|---|
-f, --format <string> | text | Output format (text, json) |
--json | Output JSON (same as --format json) | |
-p, --period <string> | 7d | Time period (24h, 7d, 30d, 90d) |
-r, --repo <string> | Filter by repository name |
promptconduit insights tools
View tool usage breakdown
promptconduit insights tools
Full help text
See which tools you use most frequently and your success rates.
Inherited from promptconduit insights:
| Flag | Default | Description |
|---|---|---|
-f, --format <string> | text | Output format (text, json) |
--json | Output JSON (same as --format json) | |
-p, --period <string> | 7d | Time period (24h, 7d, 30d, 90d) |
-r, --repo <string> | Filter by repository name |
promptconduit insights trends
Your agent coaching trends and the top suggestions
promptconduit insights trends
Full help text
How you work with your AI agents over time (the web Trends page): plan mode, subagents, interruptions, tool success, cache hit rate, and concrete coaching suggestions with a guide for each. Periods: 7d, 30d, 90d.
Inherited from promptconduit insights:
| Flag | Default | Description |
|---|---|---|
-f, --format <string> | text | Output format (text, json) |
--json | Output JSON (same as --format json) | |
-p, --period <string> | 7d | Time period (24h, 7d, 30d, 90d) |
-r, --repo <string> | Filter by repository name |
CI cost (GitHub Actions)
Both read only Actions metadata (runs and jobs, never logs or code) with your own GitHub
token (GITHUB_TOKEN, GH_TOKEN or gh auth token) and
never write to the repo. More on the CI cost audit page.
promptconduit ci
What your GitHub Actions minutes cost, and which agent sessions caused them
promptconduit ci
Full help text
Estimate a repo's GitHub Actions spend, find CI waste (re-tests after merge, bursts of agent PRs, push storms, superseded runs, slow jobs) and match each run to the agent session whose commit triggered it. Reads only Actions metadata (runs and jobs: no logs, artifacts or code) with your own GitHub token (GITHUB_TOKEN, GH_TOKEN, or `gh auth token`). Never writes to the repo. `ci audit` runs fully on this machine. Examples: promptconduit ci audit # this repo, last 30 days promptconduit ci audit acme/api --since 2026-11-01 --until 2026-11-30 promptconduit ci audit --json # for an agent promptconduit ci sync --since 2026-11-01 # add CI $ to your team dashboard
promptconduit ci audit
One-screen CI cost and waste report for a repo (runs locally)
promptconduit ci audit [owner/repo] [flags]
| Flag | Default | Description |
|---|---|---|
--days <int> | 30 | days to read when --since is not set |
--json | machine-readable output | |
--no-sessions | skip matching runs to sessions in the local event log | |
-o, --output <string> | also write the JSON report to this file | |
--since <string> | first UTC day, YYYY-MM-DD (default: --days ago) | |
--top <int> | 10 | rows per table |
--until <string> | last UTC day, YYYY-MM-DD (default: today) |
promptconduit ci sync
Upload a repo's Actions job metadata so CI $ shows next to token $ for your team
promptconduit ci sync [owner/repo] [flags]
Full help text
Reads the repo's Actions runs and jobs (metadata only) with your GitHub token and sends them to PromptConduit, which prices them and matches each job to the agent session that pushed its commit. Requires `promptconduit login`.
| Flag | Default | Description |
|---|---|---|
--days <int> | 30 | days to read when --since is not set |
--json | machine-readable output | |
--since <string> | first UTC day, YYYY-MM-DD (default: --days ago) | |
--until <string> | last UTC day, YYYY-MM-DD (default: today) |
Teams
How to set up a team, invite people and set budgets: Set up a team. The matching MCP tools are in AI agents (MCP).
promptconduit team
Team AI spend, savings, budgets and client tags
promptconduit team
Full help text
See and manage your team's AI coding spend from the terminal, or let your agent do it. Every subcommand takes --json for machine-readable output. The team is picked automatically when you belong to exactly one; otherwise pass --org (id, slug or name) or set PROMPTCONDUIT_ORG. Examples: promptconduit team # teams you belong to promptconduit team create "Acme Eng" # start a team (you're the owner) promptconduit team invite [email protected] # prints an invite link to share promptconduit team join <invite-link> # accept an invite promptconduit team spend --period 7d # totals + top members, repos, models promptconduit team spend --by client --json # spend per client for an agent promptconduit team savings # where the team could save promptconduit team budgets # budgets with month-to-date spend promptconduit team budgets set --repo acme/api --monthly 500 promptconduit team tag acme/api "Acme Corp" # attribute a repo's spend to a client promptconduit team export --by member -o spend.csv
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team alerts
Budget alert channels (email always; Slack optional)
promptconduit team alerts
Full help text
Show where budget alerts go. Alerts fire at 80% and 100% of a monthly budget, by email to owners and admins and, when connected, to a Slack channel. Examples: promptconduit team alerts promptconduit team alerts slack https://hooks.slack.com/services/T000/B000/XXXX promptconduit team alerts slack --disconnect --yes
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team alerts slack
Send budget alerts to a Slack channel, or stop with --disconnect (owners and admins)
promptconduit team alerts slack [incoming-webhook-url] [flags]
Full help text
Connect a Slack incoming webhook (https://hooks.slack.com/services/…) for budget alerts. A test message is posted first, so a bad URL fails now rather than on the day a budget runs over. Pass - to read the URL from stdin and keep it out of your shell history. --disconnect --yes stops Slack alerts.
| Flag | Default | Description |
|---|---|---|
--disconnect | Stop sending budget alerts to Slack | |
--yes | Confirm --disconnect |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team billing
Team plan, seats and subscription status
promptconduit team billing
Full help text
Show the team's plan, seats and subscription status. Owners and admins can start a subscription or open the billing portal; both print a secure Stripe page to open in a browser (the CLI never handles card details). Examples: promptconduit team billing promptconduit team billing checkout --tier team --open promptconduit team billing portal --open
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team billing checkout
Start a Team or Growth subscription (owners and admins)
promptconduit team billing checkout [flags]
Full help text
Create a Stripe Checkout page for a paid plan and print its URL. Nothing is charged until you finish checkout in the browser. Teams that already have a subscription change plans in the billing portal instead.
| Flag | Default | Description |
|---|---|---|
--open | Also open the page in your browser | |
--tier <string> | Plan: team or growth |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team billing portal
Open the billing portal: change plan, update card, cancel (owners and admins)
promptconduit team billing portal [flags]
| Flag | Default | Description |
|---|---|---|
--open | Also open the page in your browser |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team budgets
List monthly budgets with month-to-date and projected spend
promptconduit team budgets
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team budgets rm
Remove a budget (owners and admins)
promptconduit team budgets rm <budget-id>
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team budgets set
Create or change a monthly budget (owners and admins)
promptconduit team budgets set [flags]
Full help text
Create or change the monthly budget for the whole team, one repo, or one member. Setting a budget for a scope that already has one changes its amount. Members are matched by email. Alerts fire at 80% and 100%. Examples: promptconduit team budgets set --org-wide --monthly 2000 promptconduit team budgets set --repo acme/api --monthly 500 promptconduit team budgets set --member [email protected] --monthly 150
| Flag | Default | Description |
|---|---|---|
--member <string> | Budget for one member (email) | |
--monthly <float64> | Monthly budget in USD | |
--org-wide | Budget for the whole team | |
--repo <string> | Budget for one repo |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team create
Create a team with you as owner
promptconduit team create <name> [flags]
Full help text
Create a team with you as owner. Your last 30 days of usage is added to the team unless you pass --no-history. Free for teams of up to 3.
| Flag | Default | Description |
|---|---|---|
--no-history | Don't add your last 30 days of usage to the team | |
--slug <string> | URL slug (default: derived from the name) |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team create "Acme Engineering" promptconduit team create Acme --slug acme --no-history
promptconduit team export
Export team spend as CSV
promptconduit team export [flags]
Full help text
Export team spend as CSV grouped by client, repo, member, pr or day. Writes to stdout unless -o is given.
| Flag | Default | Description |
|---|---|---|
--by <string> | repo | Group by: client, repo, member, pr, day |
-o, --output <string> | Write CSV to this file instead of stdout | |
-p, --period <string> | 30d | Time period (7d, 30d, 90d) |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team export --by client --period 90d -o spend.csv promptconduit team export --by pr > spend.csv
promptconduit team invite
Invite someone to the team (owners and admins)
promptconduit team invite <email> [flags]
Full help text
Invite someone to the team and print the invite link to send them. They accept it with 'promptconduit team join <link>' (or by opening the link).
| Flag | Default | Description |
|---|---|---|
--role <string> | member | Role: member, admin, viewer |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team invite [email protected] promptconduit team invite [email protected] --role admin
promptconduit team join
Accept a team invite
promptconduit team join <invite-link|token> [flags]
Full help text
Accept a team invite sent to your account's email. Your earlier usage stays private unless you pass --share-history (adds your last 30 days to the team).
| Flag | Default | Description |
|---|---|---|
--share-history | Add your last 30 days of usage to the team |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team join https://app.promptconduit.dev/invite/abc123 promptconduit team join abc123 --share-history
promptconduit team list
List the teams you belong to
promptconduit team list
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team members
List team members and their roles
promptconduit team members
Full help text
List team members with their roles. Owners and admins can change roles and remove members. Members are matched by email (or user/member id). Examples: promptconduit team members promptconduit team members role [email protected] admin promptconduit team members rm [email protected] --yes
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team members rm
Remove a member from the team (owners and admins; needs --yes)
promptconduit team members rm <email> [flags]
Full help text
Remove a member from the team. They lose access to the team's data at once; their own usage history stays theirs. Pass --yes to confirm.
| Flag | Default | Description |
|---|---|---|
--yes | Confirm removing the member |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team members role
Change a member's role (owners and admins; only owners grant admin or owner)
promptconduit team members role <email> <owner|admin|member|viewer>
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team savings
Team savings report: cache savings, model mix, runaway sessions
promptconduit team savings [flags]
| Flag | Default | Description |
|---|---|---|
-p, --period <string> | 30d | Time period (7d, 30d, 90d) |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team savings --period 90d
promptconduit team spend
Team spend totals and breakdowns
promptconduit team spend [flags]
Full help text
Team spend for a period with breakdowns by member, repo, client, model, branch, pull request and day. Without --by, shows the top members, repos and models; with --by, shows that one breakdown.
| Flag | Default | Description |
|---|---|---|
--by <string> | Single breakdown: member, repo, client, model, branch, pr, day | |
-l, --limit <int> | 5 | Rows per breakdown (0 = all) |
-p, --period <string> | 30d | Time period (7d, 30d, 90d) |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
promptconduit team spend promptconduit team spend --by member --period 7d promptconduit team spend --by client --limit 0 --json
promptconduit team tag
Tag a repo with a client so its spend rolls up per client (owners and admins)
promptconduit team tag <repo> [client] [flags]
Full help text
Tag a repo with a client so its spend shows up per client in 'team spend --by client' and the CSV export. Use --clear to remove the tag. Examples: promptconduit team tag acme/api "Acme Corp" promptconduit team tag acme/api --clear
| Flag | Default | Description |
|---|---|---|
--clear | Remove the repo's client tag |
Inherited from promptconduit team:
| Flag | Default | Description |
|---|---|---|
--json | Output JSON | |
--org <string> | Team id, slug or name (default: your only team, or $PROMPTCONDUIT_ORG) |
MCP server
promptconduit mcp
Run the PromptConduit MCP server so AI agents can use your cost data
promptconduit mcp
Full help text
Run the PromptConduit Model Context Protocol server over stdio. Agents that speak MCP (Claude Code, Cursor, Gemini CLI, ...) start it themselves and can then answer "what has this session cost?" or "are we on track for this month's AI budget?" on their own. 'promptconduit install' registers it for Claude Code, Cursor and Gemini CLI. To manage the registration yourself: promptconduit mcp install [tool...] # default: every tool with hooks installed promptconduit mcp uninstall [tool...] # and stop re-adding it after upgrades promptconduit mcp tools # list the tools agents see promptconduit mcp status [--json] # where it is registered Local tools (session_cost, cost_history, recent_sessions, setup_status) work on the Free tier and read only files on this machine. team_* tools need 'promptconduit login' and a team.
promptconduit mcp install # register with every tool you use promptconduit mcp install cursor promptconduit mcp status --json promptconduit mcp tools
promptconduit mcp install
Register the MCP server with Claude Code, Cursor or Gemini CLI
promptconduit mcp install [tool...]
promptconduit mcp status
Show where the MCP server is registered
promptconduit mcp status [flags]
| Flag | Default | Description |
|---|---|---|
--json | Print machine-readable JSON |
promptconduit mcp tools
List the tools the MCP server exposes
promptconduit mcp tools
promptconduit mcp uninstall
Remove the MCP server registration and don't re-add it after upgrades
promptconduit mcp uninstall [tool...]
Sessions and resume
Sessions are rebuilt from the local event log and record the exact directory each
one ran in, including git worktrees, so resume reopens it in the right
checkout. resume looks back 72 hours, needs the claude
binary on PATH, and fails if the session's directory no longer exists.
Running parallel agents in separate checkouts is covered in
isolating work with worktrees.
promptconduit resume
Reopen an AI coding session in the directory it ran in
promptconduit resume [session-id] [flags]
Full help text
Reopen a Claude Code session, changing into the exact directory it ran in (worktree-aware) and running 'claude --resume <id>'. With no argument it resumes the most recently active session. A partial session id is accepted as long as it's unambiguous. Use 'promptconduit sessions' to see what's available, or --print to print the command instead of running it (handy for shell integration).
| Flag | Default | Description |
|---|---|---|
--print | print the resume command instead of running it |
promptconduit resume # most recent interrupted session promptconduit resume 3f2a9c1e promptconduit resume 3f2a9c1e --print # show the command instead of running it
promptconduit sessions
List recent, resumable AI coding sessions
promptconduit sessions [flags]
Full help text
List AI coding sessions reconstructed from the local event log, newest first. Each session records the exact working directory it ran in (worktree-aware) and its session id, so it can be reopened with 'promptconduit resume <id>' or 'claude --resume <id>'. Sessions with a live process are marked (running) and, unless --all is given, hidden — the common use is finding sessions that were interrupted (e.g. when the editor restarted and closed their terminals). This is the engine behind the editor extension's automatic session restore; --json emits the machine-readable form it consumes.
| Flag | Default | Description |
|---|---|---|
--all | include sessions that are still running | |
--json | emit machine-readable JSON | |
--since <duration> | 12h0m0s | only sessions active within this window |
--under <string> | only sessions whose directory is under this path |
promptconduit sessions # interrupted sessions, last 12h promptconduit sessions --all --since 48h promptconduit sessions --under ~/code/my-repo --json
promptconduit sessions resolve
Resolve a terminal shell PID to a Claude Code session
promptconduit sessions resolve [flags]
Full help text
Map a VS Code / Cursor terminal shell PID to the Claude Code session running inside it. Used by the editor extension to follow terminal focus. Resolution order per claude child process: --resume in argv, else an open transcript file (lsof). When several claude processes exist under the shell (sub-agents), --json returns ambiguous: true with a candidates list.
| Flag | Default | Description |
|---|---|---|
--json | emit machine-readable JSON (always JSON; flag for CLI consistency) | |
--pid <string> | shell process id from the focused terminal |
Sync
Claude Code transcripts are read from ~/.claude/projects/ and Cursor
transcripts from ~/.cursor/projects/*/agent-transcripts/. Upload state
is tracked in ~/.config/promptconduit/sync_state.json, so unchanged
transcripts are skipped. With an API key set and local-only off, hooks already sync
the active transcript automatically after each response; run sync by
hand to backfill history. A full sync also drains the replay queue. sync needs an
API key and refuses to run in local-only mode.
promptconduit sync
Sync AI assistant transcripts to PromptConduit
promptconduit sync [tool] [flags]
Full help text
Sync conversation transcripts from AI coding assistants to PromptConduit. This command reads transcript files from your local machine and uploads them to PromptConduit for viewing and analysis. Already synced files are tracked to avoid duplicate uploads. Supported tools: - claude-code: Claude Code transcripts from ~/.claude/projects/ - cursor: Cursor transcripts from ~/.cursor/projects/*/agent-transcripts/ Examples: promptconduit sync # Sync all supported tools promptconduit sync claude-code # Sync only Claude Code promptconduit sync cursor # Sync only Cursor promptconduit sync --dry-run # Show what would be synced promptconduit sync --force # Re-sync already synced files promptconduit sync --since 2025-01-01 promptconduit sync --limit 10 # Sync only 10 most recent The sync state is tracked in ~/.config/promptconduit/sync_state.json
| Flag | Default | Description |
|---|---|---|
--delay <int> | Delay in seconds before syncing (for auto-sync to wait for file flush) | |
--dry-run | Show what would be synced without uploading | |
--file <string> | Sync a specific transcript file (for auto-sync) | |
--force | Re-sync already synced files | |
--limit <int> | Maximum number of transcripts to sync (0 = unlimited) | |
--since <string> | Only sync transcripts modified after this date (YYYY-MM-DD) |
Skills
Local skills, platform and team skills, health and impact are explained in
Skills. When a skill name matches more than one skill,
install stops and lists each candidate's UUID so you can pick one.
promptconduit skills
Manage AI-generated skills and slash commands
promptconduit skills
Full help text
PromptConduit analyzes your AI assistant usage patterns and generates reusable slash commands (skills) tailored to how you work. Skills are Claude Code command files stored in ~/.claude/commands/. Once synced, invoke them with /skill-name inside Claude Code. Examples: promptconduit skills generate # Detect skills from your usage patterns promptconduit skills list # List detected skills promptconduit skills list --approved # Show only approved skills promptconduit skills list --filter outdated # Approved skills that may be outdated promptconduit skills retire <name> # Archive one you no longer want promptconduit skills sync # Install approved skills to ~/.claude/commands/ promptconduit skills patterns # Show recurring prompt patterns
promptconduit skills approve
Mark a skill as approved on the platform (the Ready tab)
promptconduit skills approve [name|uuid]
promptconduit skills delete
Soft-delete a skill on the platform (hidden from listings)
promptconduit skills delete [name|uuid] [flags]
Full help text
Soft-delete a skill so it no longer appears in skill listings. The row stays in the platform DB for audit; deletion is reversible by the platform team if needed. Use this to clean up duplicates created by re-running 'skills generate', or to permanently remove a skill you've already rejected. Refuses unless you confirm at the prompt or pass --yes. On non-TTY (scripts, CI) --yes is required. Examples: promptconduit skills delete git-feature-workflow promptconduit skills delete 15686eb6-52d5-443e-9d0e-86e4b3e9cc53 --yes
| Flag | Default | Description |
|---|---|---|
--yes | Skip the confirmation prompt (required for non-interactive use) |
promptconduit skills generate
Detect skills from your usage patterns
promptconduit skills generate [flags]
Full help text
Analyze your AI coding session history to detect repeatable workflows and generate suggested slash commands (skills). Platform mode (default): Analyzes synced transcripts on the platform. Results are pending approval. Review with 'skills list', then install with 'skills sync'. Local mode (--local): Reads your AI tool transcripts directly from disk and writes skills immediately to ~/.claude/skills/. No platform account required. Uses your existing Claude Code subscription, ANTHROPIC_API_KEY, or OPENAI_API_KEY. Examples: promptconduit skills generate # Platform mode promptconduit skills generate --local # Local mode (any AI subscription) promptconduit skills generate --local --tool claude-code # Claude Code only promptconduit skills generate --force # Re-analyze regardless of cache
| Flag | Default | Description |
|---|---|---|
--dry-run | Preview skills that would be generated without writing files | |
--force | Re-analyze even if cache is still valid | |
-f, --format <string> | text | Output format (text, json) |
--local | Run locally using your existing AI subscription (no platform account needed) | |
--repo <string> | Scope to a specific project (auto-detected if in a git repo) | |
--tool <string> | all | Which AI tool transcripts to read: claude-code, codex, copilot, all |
promptconduit skills impact
Compare sessions before and after your approved skills
promptconduit skills impact [flags]
Full help text
For each repo, compare your sessions before and after the first approved skill that applies to it (approval or first use, whichever is earlier): median turns, tokens and cost per session, tool-error rate, and an estimated saving per month. It is a correlation, not proof: sample sizes are shown, and a repo needs enough sessions on each side before it gets an estimate.
| Flag | Default | Description |
|---|---|---|
-f, --format <string> | text | Output format (text, json) |
promptconduit skills install
Install a skill into .claude/skills/<name>/SKILL.md
promptconduit skills install [name|uuid] [flags]
Full help text
Download a skill from the platform and write it to the Claude Code skills directory. Tracks the install in a local manifest so it can be safely uninstalled later. The argument is matched as a UUID first, falling back to skill name. If multiple skills share the same name (common after re-running 'generate'), the command errors with each candidate's UUID so you can disambiguate. With --org, installs the team's bundle for this checkout's repo instead: every teammate's approved skills for the repo, merged, written as .claude/skills/INDEX.md plus one .claude/skills/<name>/SKILL.md per skill. Team skills that have left the bundle are removed unless you edited them. Examples: promptconduit skills install --org acme promptconduit skills install --org acme --repo api promptconduit skills install shipping-features promptconduit skills install shipping-features --scope project promptconduit skills install cc9f1eff-487c-4ff6-b542-5814ba815d45 promptconduit skills install --all promptconduit skills install shipping-features --force # overwrite local edits
| Flag | Default | Description |
|---|---|---|
--all | Install every approved skill | |
--force | Overwrite local edits without prompting | |
--org <string> | Install this team's skill bundle for the repo (team id, slug or name) | |
--repo <string> | With --org: the repo whose team skills to install (default: this checkout's repo) | |
--scope <string> | Install scope: project (in current git repo) or global (~/.claude/skills) |
promptconduit skills keep
Keep a skill flagged "may be outdated" (hides the flags for 30 days)
promptconduit skills keep [name|uuid]
promptconduit skills list
List detected skills
promptconduit skills list [flags]
Full help text
List skills detected from your AI coding session patterns. Use --approved to filter for approved skills ready to install. Use --filter outdated for approved skills the daily re-check flagged as may be outdated (update or retire?). Use --type to filter by skill type (workflow, command, template, checklist).
| Flag | Default | Description |
|---|---|---|
--approved <string> | Filter by approval: true, false, or pending | |
--filter <string> | all | Tab filter: new (unapproved), ready (approved), outdated (approved, may be outdated), removed (rejected), all |
-f, --format <string> | text | Output format (text, json) |
-l, --limit <int> | 50 | Maximum number of skills to show |
--repo <string> | Filter to a specific project (e.g. my-org/my-repo) | |
--type <string> | Filter by type: workflow, command, template, checklist |
promptconduit skills patterns
Show recurring prompt patterns from your usage
promptconduit skills patterns [flags]
Full help text
Analyze your prompt history to show recurring themes and requests. This shows what you repeatedly ask your AI assistant, grouped by theme. These patterns drive skill generation — if you see a pattern here, running 'skills generate' will produce a skill for it. Requires the Anthropic API key to be configured on the platform.
| Flag | Default | Description |
|---|---|---|
-f, --format <string> | text | Output format (text, json) |
--repo <string> | Scope to a specific project (auto-detected if in a git repo) |
promptconduit skills reject
Mark a skill as rejected on the platform (the Removed tab)
promptconduit skills reject [name|uuid]
promptconduit skills retire
Archive a skill on the platform (for one that may be outdated)
promptconduit skills retire [name|uuid]
Full help text
Archive a skill so it leaves your skill lists. Use it for a skill flagged "may be outdated" that you no longer want. Installed SKILL.md files are not touched; remove them with 'promptconduit skills uninstall <name>'.
promptconduit skills sync
Install approved skills to ~/.claude/commands/
promptconduit skills sync [flags]
Full help text
Download all approved skills as Claude Code command files. Each skill becomes a .md file in ~/.claude/commands/ (or --dir). After syncing, invoke skills with /skill-name inside Claude Code. Only approved skills are synced. Approve one with 'promptconduit skills approve <name>', or ask your agent (the skills_approve MCP tool). New skills are not installed until you do. Team bundle (--org): Pulls the team's skills for this repo (every teammate's approved skills, merged) into the checkout: .claude/skills/INDEX.md plus one .claude/skills/<name>/SKILL.md per skill. Team skills that have left the bundle are removed unless you edited them. Files edited locally are kept unless --force. Examples: promptconduit skills sync promptconduit skills sync --org acme # this checkout's repo promptconduit skills sync --org acme --repo api # must match the checkout
| Flag | Default | Description |
|---|---|---|
--dir <string> | Override global command directory (default: ~/.claude/commands/) | |
--force | With --org: overwrite team skill files edited locally | |
-f, --format <string> | text | Output format (text, json) |
--org <string> | Pull this team's skill bundle for the repo instead (team id, slug or name) | |
--repo <string> | With --org: the repo whose team skills to pull (default: this checkout's repo) |
promptconduit skills uninstall
Remove a previously installed skill
promptconduit skills uninstall [name] [flags]
Full help text
Remove a skill that was installed via 'promptconduit skills install'. Refuses if the file on disk has been modified since install (sha mismatch), unless --force is given. Skills not tracked by the local manifest are never touched. Examples: promptconduit skills uninstall shipping-features promptconduit skills uninstall --all promptconduit skills uninstall shipping-features --force
| Flag | Default | Description |
|---|---|---|
--all | Uninstall every promptconduit-installed skill | |
--force | Remove even if the file has been hand-edited |
Config
Boolean flags take an explicit value to turn a setting back off, for example
--local-only=false. config set with no flags exits with an
error listing the accepted flags.
promptconduit config
Manage PromptConduit configuration
promptconduit config
Full help text
Manage PromptConduit configuration stored in ~/.config/promptconduit/config.json (or $XDG_CONFIG_HOME/promptconduit/config.json when XDG_CONFIG_HOME is set). This config file is used by hooks when environment variables are not set, making it ideal for use with tools like Claude Code that spawn subprocesses. Quick start: promptconduit login Priority order: environment variables > config file > defaults
promptconduit config show promptconduit config set --local-only=true promptconduit config set --api-key-stdin < key.txt promptconduit config path
promptconduit config env
Manage multiple environments (advanced)
promptconduit config env
Full help text
Manage multiple environment configurations for switching between local development, staging, and production. Most users don't need this - just use 'promptconduit login'
promptconduit config env add
Add or update an environment
promptconduit config env add <name> [flags]
Full help text
Add or update a named environment configuration. Examples: promptconduit config env add local --api-key-stdin --api-url=http://localhost:8787 < key.txt pbpaste | promptconduit config env add prod --api-key-stdin
| Flag | Default | Description |
|---|---|---|
--api-key <string> | API key (visible in shell history and ps; prefer --api-key-stdin) (this or --api-key-stdin is required) | |
--api-key-stdin | Read the API key from stdin, e.g. `pbpaste | promptconduit ... --api-key-stdin` | |
--api-url <string> | API URL | |
--debug-mode | Save debug mode for this environment |
promptconduit config env list
List configured environments
promptconduit config env list
promptconduit config env remove
Remove an environment
promptconduit config env remove <name>
promptconduit config env use
Switch to an environment
promptconduit config env use <name>
promptconduit config path
Show the config file path
promptconduit config path
promptconduit config set
Set configuration values
promptconduit config set [flags]
Full help text
Set configuration values in ~/.config/promptconduit/config.json (or $XDG_CONFIG_HOME/promptconduit/config.json when XDG_CONFIG_HOME is set). When an environment is active (see "config env use"), --api-key, --api-url and --debug-mode apply to that environment's profile. The other flags are global and replace any value set inside an individual environment. Examples: # Basic setup (most users) pbpaste | promptconduit config set --api-key-stdin # With custom API URL promptconduit config set --api-key-stdin --api-url=http://localhost:8787 < key.txt # Enable debug mode promptconduit config set --debug-mode # Opt out of automatic background upgrades promptconduit config set --disable-auto-update=true # Re-enable automatic background upgrades promptconduit config set --disable-auto-update=false # Opt out of the anonymous daily usage ping promptconduit config set --disable-telemetry=true # Opt out of the local event log (~/.promptconduit/events.jsonl) promptconduit config set --disable-event-log=true # Free / local-only mode: capture events locally, never send to the cloud promptconduit config set --local-only=true # Re-enable cloud sync (events sent when an API key is set) promptconduit config set --local-only=false # Keep 90 days of local hook history (default is 30) promptconduit config set --event-log-retention-days=90 # Never prune local hook history promptconduit config set --event-log-retention-days=-1 # Send each event in its own request instead of batching (default: batched) promptconduit config set --batch-upload=false
| Flag | Default | Description |
|---|---|---|
--api-key <string> | API key (visible in shell history and ps; prefer --api-key-stdin) | |
--api-key-stdin | Read the API key from stdin, e.g. `pbpaste | promptconduit ... --api-key-stdin` | |
--api-url <string> | API URL (default: https://api.promptconduit.dev) | |
--batch-upload | true | Upload events in batches (default true); false sends one request per event |
--debug-mode | Save debug mode: hooks write debug lines to the CLI log | |
--disable-auto-update | Disable the background self-upgrade check | |
--disable-event-log | Disable the local event log written to ~/.promptconduit/ | |
--disable-telemetry | Disable the anonymous daily usage ping | |
--event-log-retention-days <int> | Days of local hook history to keep (default 30; -1 = keep forever) | |
--local-only | Free / local-only mode: capture events locally, never send to the cloud |
promptconduit config set-env
Switch to an environment (shortcut for 'config env use')
promptconduit config set-env <name>
Full help text
Switch to a named environment configuration. Examples: promptconduit config set-env local promptconduit config set-env prod promptconduit config set-env dev
promptconduit config show
Show current configuration
promptconduit config show
Maintenance and diagnostics
Which of these to reach for, and in what order, is in
Troubleshooting. feedback also reads the message
from stdin, is limited to 4000 characters, and is tied to your account only when an API key is
set. Configuration lists every file these commands read.
promptconduit debug
Debugging utilities
promptconduit debug
promptconduit debug trace 3f2a9c1e-…
promptconduit debug trace
Print the correlation trace tree for a session
promptconduit debug trace <session_id>
Full help text
Print the locally-stored trace ID and recorded parent spans for a session.
Useful for support and self-debugging when correlation IDs look wrong.
Reads from ~/.config/promptconduit/traces/<session_id>.{json,spans.json}.promptconduit debug trace 3f2a9c1e-…
promptconduit events
Inspect the local event log (captured v2 envelopes)
promptconduit events [flags]
Full help text
Show the events the CLI has captured, exactly as they are (or would be) sent to the platform. This reads ~/.promptconduit/events.jsonl — one v2 envelope per line, written at capture time for every event, in cloud AND Free/local-only mode (secrets scrubbed; history is kept for the configured retention window, default 30 days — see 'promptconduit prune'). Send outcomes are in 'promptconduit status'; raw HTTP diagnostics in 'promptconduit watch'. By default each event is shown as a one-line summary: 16:55:02 PostToolUse claude-code 9a402796 3.2KB env,trace,vcs The trailing list is the enrichment slugs attached to the event. Use --raw to print the full envelope beneath each summary, or --errors to tail the human-readable failure/drop log (errors.log) instead. Examples: promptconduit events # last 20 events, summary lines promptconduit events --raw # include the full envelope per event promptconduit events -n 5 # last 5 events promptconduit events --follow # stream new events live promptconduit events --errors # tail errors.log (failures + drops) promptconduit events --path # print the event-log file path
| Flag | Default | Description |
|---|---|---|
--errors | Show the human-readable error log (errors.log) instead of the event log | |
-f, --follow | Stream new events as they are written (like `tail -f`) | |
-n, --lines <int> | 20 | Number of events to show from the end of the log |
--path | Print only the log file path and exit | |
--raw | Print the full JSON envelope beneath each summary line |
promptconduit events flush
Send waiting and failed events now
promptconduit events flush [flags]
Full help text
Send everything waiting in the upload spool and the replay queue (outbox) right now. With batched upload (the default) hooks spool each event locally and a background flusher sends them in groups; this sends whatever is waiting. Events whose send failed for a reason that may clear (no connection, rate limiting, a server error) are queued and normally replayed in the background after a later send succeeds — so the queue only drains while you keep generating events. This command drains it on demand: it ignores the background one-minute cooldown and tries every queued event once, stopping early if the server stops accepting events (unreachable, rate limited, bad credentials). Events that fail individually stay queued for a later retry. Only the queue for the currently configured API URL is replayed. Nothing is sent in Free / local-only mode. 'promptconduit sync' runs the same drain at the end of a full sync. Exits non-zero when queued events could not be sent because of a server or credential failure, or when another process is replaying the queue. Examples: promptconduit events flush # replay the queue now promptconduit events flush --dry-run # just show how many are queued
| Flag | Default | Description |
|---|---|---|
--dry-run | Only report how many events are queued; send nothing |
promptconduit feedback
Send feedback to the PromptConduit team
promptconduit feedback [message] [flags]
Full help text
Send a note straight to the PromptConduit team — an idea, a bug, or just what you think. Pass the message as an argument or pipe it on stdin. If you're logged in (an API key is configured) the feedback is tied to your account so we can follow up; otherwise it's sent anonymously. Examples: promptconduit feedback "the graph view is great, add filtering" promptconduit feedback --category bug "sync failed on a large repo" echo "loving the cache savings stat" | promptconduit feedback
| Flag | Default | Description |
|---|---|---|
--category <string> | optional: bug | idea | praise | other |
promptconduit logs
View the PromptConduit CLI log
promptconduit logs [flags]
Full help text
Show recent errors and trace lines from the CLI log file. Errors (failed sends, missing config, parse errors) are always recorded. Debug-level trace lines are only recorded when `debug: true` is set in the active environment of your config — see `promptconduit config show`. Examples: promptconduit logs # last 50 lines promptconduit logs -n 200 # last 200 lines promptconduit logs --follow # tail -f promptconduit logs --path # just print the log file path promptconduit logs --clear # truncate the log file
| Flag | Default | Description |
|---|---|---|
--clear | Truncate the log file and exit | |
-f, --follow | Tail the log file (like `tail -f`) | |
--path | Print only the log file path and exit | |
-n, --tail <int> | 50 | Number of lines to show from the end of the log |
promptconduit prune
Trim local hook history older than the retention window
promptconduit prune [flags]
Full help text
Remove locally-captured events older than the configured retention window from ~/.promptconduit/events.jsonl (and the hook-events trace). Events within the retention window are ALWAYS kept — prune can only ever remove already-expired data. The window defaults to 30 days and is configurable: promptconduit config set --event-log-retention-days=90 # keep 90 days promptconduit config set --event-log-retention-days=-1 # keep forever The CLI also prunes automatically in the background once the log grows past its size ceiling; this command lets you reclaim space on demand.
| Flag | Default | Description |
|---|---|---|
--dry-run | Report what would be removed without changing any files |
promptconduit prune --dry-run promptconduit prune
promptconduit upgrade
Upgrade promptconduit to the latest release
promptconduit upgrade [flags]
Full help text
Check GitHub for a newer release and upgrade in place. Examples: promptconduit upgrade # upgrade to the latest release (if newer) promptconduit upgrade --check # only check; do not download or replace promptconduit upgrade --force # download and replace even if up to date Upgrades atomically replace the running binary in place.
| Flag | Default | Description |
|---|---|---|
--check | only check for a newer release; do not download | |
--force | reinstall even when already on the latest version |
promptconduit watch
Tail outbound HTTP traffic from the CLI in real time
promptconduit watch [flags]
Full help text
Stream every HTTP request the CLI makes to the platform — hook envelope sends, transcript syncs, insights queries, skills traffic, the whole lot — to your terminal as it happens. Each request appears as a one-line summary by default: 15:30:42 POST /v1/events/raw 3.2KB → 200 (87ms) Use --verbose to also print the request body (and response body, when the server returned one) pretty-printed beneath the summary. Useful for checking what your hook is actually sending when synced events don't show up in 'promptconduit insights' or on the platform. The underlying file lives at ~/.config/promptconduit/outbound.ndjson (mode 0600). Authorization, Cookie, and similar credential headers are redacted before write; request bodies are capped at 64KB per row and the file rotates to outbound.ndjson.1 at 50MB. Examples: promptconduit watch # tail live traffic promptconduit watch --verbose # include full bodies promptconduit watch --lines 20 # backfill the last 20 entries
| Flag | Default | Description |
|---|---|---|
--lines <int> | backfill the last N entries before going live | |
-v, --verbose | include full request/response bodies under each summary line |