docs / troubleshooting

Troubleshooting

Fix missing events, missing or unpriced cost, sign-in that doesn't finish, and an out-of-date CLI.

Start with the two commands that answer most questions:

bash
promptconduit --version
promptconduit status

status shows the mode (local-only or cloud sync), whether each assistant has hooks, how many events were sent, the last send error, and whether the MCP server is registered. It also prints a warning for the problems below that it can detect. It exits with status 1 when no assistant has PromptConduit hooks.

No events are captured

promptconduit events prints No events captured yet, or the editor extension shows no cost.

  1. Check the hooks. In status, under Tool Installations, your assistant should read Installed. If it doesn't, run promptconduit install claude-code or promptconduit install cursor.
  2. Start a new session. An assistant reads its hooks when a session starts. Quit and restart Claude Code, or reload the Cursor window.
  3. Look for a second binary. If status prints Warning: multiple promptconduit binaries on PATH, your hooks and your shell may run different versions. Remove the one it names, then run install again so the hooks point at the binary you keep.
  4. Check the event log is on. status shows Event Log: enabled. If it's off, run promptconduit config set --disable-event-log=false and check that PROMPTCONDUIT_EVENT_LOG isn't set to 0.

Events don't reach your account

Events are captured locally but don't show up on your PromptConduit overview.

  1. Check the mode. Mode: Free (local-only) means nothing is sent. Run promptconduit login to sign in, or promptconduit config set --local-only=false if you already have a key.
  2. Read the last error. Under Event Log, Last error gives the HTTP status and reason, and Upload says how many events are waiting to send. A 401 means the key is wrong or revoked: run promptconduit login again.
  3. Check for a key in your environment. A PROMPTCONDUIT_API_KEY exported in your shell profile overrides the config file, while the URL still comes from the file. promptconduit config show warns about it. Unset it, and start a new assistant session so hooks stop inheriting it.
  4. Send now. Waiting events are retried in the background. Once the cause is fixed, send them right away:
bash
promptconduit events flush

events flush --dry-run only counts what's waiting. Events still waiting after 30 days are dropped. promptconduit events --errors shows events the server rejected one by one, and anything dropped.

Cost is missing or wrong

"No AI session cost recorded yet for this workspace"

promptconduit cost prices the newest session in the directory you run it in. Run it in the project your assistant works in, or point it elsewhere:

bash
promptconduit cost --cwd ~/code/my-repo
promptconduit cost history

cost history totals every project, so it shows cost even when one directory has none.

Claude Code sessions with no cost

Claude Code cost is read from each session's transcript. A session started from inside another Claude Code session can run with transcript saving off: its status bar says Transcript saving is off. Hooks still fire, but the cost can't be counted. status warns about it:

output
Warning: 1 Claude Code session(s) are not saving a transcript, so their cost is missing:

Restart that session with transcript saving forced on:

bash
CLAUDE_CODE_FORCE_SESSION_PERSISTENCE=1 claude

A model shows as unpriced

The CLI prices tokens against its rate card. A model that isn't on the card keeps its exact tokens but is marked unpriced and left out of totals. New models are added to the card at promptconduit.dev, which the CLI downloads once a day. To get it now:

bash
promptconduit cost refresh-card

If the model is still unpriced, upgrade the CLI. To fill the gap from LiteLLM's public price list, run promptconduit cost refresh-pricing. It only adds models the card doesn't have. Still missing? Open an issue with the model name.

No cost at all from an old CLI

Old CLI versions recorded events without cost. If --version is far behind the latest release, upgrade (see below). Cost is recorded from then on. Events captured earlier aren't repriced.

Cursor cost looks about twice too high

Cursor events captured before CLI v0.21.0 counted cached tokens twice. Fix them in place:

bash
promptconduit cost reprice --dry-run
promptconduit cost reprice

Sign-in doesn't finish

promptconduit login and init print a URL and a code, then wait at Waiting for authorization.... With no browser on the machine, such as over SSH or in a container, open the URL on any other device and enter the code. The code expires after 15 minutes.

To skip the browser, use an API key from your profile page:

bash
promptconduit config set --api-key-stdin < key.txt

Pass the key on stdin, not as --api-key=…, which leaves it in your shell history.

The CLI is out of date

The CLI upgrades itself once a day. If --version stays behind, check for a release:

bash
promptconduit upgrade --check
  • Auto-upgrade is off. config show lists it. Run promptconduit upgrade by hand, or turn it back on with promptconduit config set --disable-auto-update=false.
  • The install directory isn't writable. upgrade fails with is not writable, usually after an install with sudo. Run sudo promptconduit upgrade, or reinstall to a directory you own with PROMPTCONDUIT_INSTALL_DIR (see Installer options).
  • An older copy runs first. See the second-binary step under No events are captured.

Your agent can't see the PromptConduit tools

  1. Check MCP Server in status. For your assistant it should read Registered.
  2. If not, register it: promptconduit mcp install claude-code or promptconduit mcp install cursor.
  3. If the claude command isn't on your PATH, the CLI can't register itself with Claude Code. It prints the claude mcp add command to run instead.
  4. Start a new agent session. Agents load MCP servers when a session starts.

Read the logs

To seeRun
The CLI's own errors and trace linespromptconduit logs (-f to follow)
Events the server rejected, and dropped eventspromptconduit events --errors
Each request the CLI sends, as it goes outpromptconduit watch
Debug output for one commandadd --debug to it

To record debug lines from your hooks too, until you turn it off:

bash
promptconduit config set --debug-mode=true

Note

Hooks never block your assistant. If capture or sending fails, the hook still tells the assistant to continue, and the failure is logged.

Still stuck

Send the details from the terminal, or open an issue on GitHub:

bash
promptconduit feedback --category bug "cost history is empty after upgrading"

Next steps