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:
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.
- Check the hooks. In
status, underTool Installations, your assistant should readInstalled. If it doesn't, runpromptconduit install claude-codeorpromptconduit install cursor. - Start a new session. An assistant reads its hooks when a session starts. Quit and restart Claude Code, or reload the Cursor window.
- Look for a second binary. If
statusprintsWarning: multiple promptconduit binaries on PATH, your hooks and your shell may run different versions. Remove the one it names, then runinstallagain so the hooks point at the binary you keep. - Check the event log is on.
statusshowsEvent Log: enabled. If it's off, runpromptconduit config set --disable-event-log=falseand check thatPROMPTCONDUIT_EVENT_LOGisn't set to0.
Events don't reach your account
Events are captured locally but don't show up on your PromptConduit overview.
- Check the mode.
Mode: Free (local-only)means nothing is sent. Runpromptconduit loginto sign in, orpromptconduit config set --local-only=falseif you already have a key. - Read the last error. Under
Event Log,Last errorgives the HTTP status and reason, andUploadsays how many events are waiting to send. A401means the key is wrong or revoked: runpromptconduit loginagain. - Check for a key in your environment. A
PROMPTCONDUIT_API_KEYexported in your shell profile overrides the config file, while the URL still comes from the file.promptconduit config showwarns about it. Unset it, and start a new assistant session so hooks stop inheriting it. - Send now. Waiting events are retried in the background. Once the cause is fixed, send them right away:
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:
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:
Warning: 1 Claude Code session(s) are not saving a transcript, so their cost is missing:
Restart that session with transcript saving forced on:
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:
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:
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:
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:
promptconduit upgrade --check
- Auto-upgrade is off.
config showlists it. Runpromptconduit upgradeby hand, or turn it back on withpromptconduit config set --disable-auto-update=false. - The install directory isn't writable.
upgradefails withis not writable, usually after an install withsudo. Runsudo promptconduit upgrade, or reinstall to a directory you own withPROMPTCONDUIT_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
- Check
MCP Serverinstatus. For your assistant it should readRegistered. - If not, register it:
promptconduit mcp install claude-codeorpromptconduit mcp install cursor. -
If the
claudecommand isn't on yourPATH, the CLI can't register itself with Claude Code. It prints theclaude mcp addcommand to run instead. - Start a new agent session. Agents load MCP servers when a session starts.
Read the logs
| To see | Run |
|---|---|
| The CLI's own errors and trace lines | promptconduit logs (-f to follow) |
| Events the server rejected, and dropped events | promptconduit events --errors |
| Each request the CLI sends, as it goes out | promptconduit watch |
| Debug output for one command | add --debug to it |
To record debug lines from your hooks too, until you turn it off:
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:
promptconduit feedback --category bug "cost history is empty after upgrading"