---
title: "Troubleshooting — PromptConduit docs"
description: Fix missing events, missing or unpriced cost, Claude Code sessions with transcript saving off, headless sign-in, an out-of-date CLI, and MCP registration.
image: "https://promptconduit.dev/og-image.png"
---

<!-- Markdown copy of https://promptconduit.dev/docs/troubleshooting. Index of every page: https://promptconduit.dev/llms.txt -->

# 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:

<!-- docs-test: ci-runs: "promptconduit init --local-only --tools claude-code --yes > /dev/null\npromptconduit --version\npromptconduit status" -->
```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:

<!-- docs-test: skip: sends queued events to your account -->
```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:

<!-- docs-test: skip: needs a recorded session in ~/code/my-repo -->
```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:

```text title="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:

<!-- docs-test: skip: starts Claude Code -->
```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](https://github.com/promptconduit/cli/issues/new) 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](https://github.com/promptconduit/cli/releases), upgrade (see [below](#out-of-date)). 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:

<!-- docs-test: skip: rewrites the local event log -->
```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](https://app.promptconduit.dev/profile):

<!-- docs-test: skip: needs your API key in key.txt -->
```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:

<!-- docs-test: skip: calls GitHub's releases API, which rate-limits shared CI runners (403) -->
```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](https://promptconduit.dev/docs/installation#installer-options)).
-   **An older copy runs first.** See the second-binary step under [No events are captured](#no-events).

## 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 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:

```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](https://github.com/promptconduit/cli/issues/new):

<!-- docs-test: skip: sends feedback to the PromptConduit team -->
```bash
promptconduit feedback --category bug "cost history is empty after upgrading"
```

## Next steps

-   [See what your sessions cost](https://promptconduit.dev/docs/cost): every way to price a session, a day or a CI run.
-   [Configuration](https://promptconduit.dev/docs/configuration): every setting, environment variable and file the CLI uses.
-   [CLI reference](https://promptconduit.dev/docs/cli-reference): every command and flag.

```json
{
  "@context": "https://schema.org",
  "@type": "SoftwareApplication",
  "@id": "https://promptconduit.dev/#software",
  "name": "PromptConduit",
  "applicationCategory": "DeveloperApplication",
  "operatingSystem": "macOS, Linux, Windows",
  "description": "PromptConduit shows what AI coding costs per developer, repo, and pull request across Claude Code and Cursor. An open-source CLI records every session to a local JSONL file first, with git context and exact cost computed on your machine. Teams sync to see spend across members, models, repos, and clients, with budgets and alerts.",
  "url": "https://promptconduit.dev",
  "installUrl": "https://promptconduit.dev/docs/installation",
  "softwareHelp": {
    "@type": "CreativeWork",
    "url": "https://promptconduit.dev/docs"
  },
  "releaseNotes": "https://promptconduit.dev/changelog",
  "license": "https://opensource.org/licenses/MIT",
  "isAccessibleForFree": true,
  "publisher": {
    "@id": "https://promptconduit.dev/#organization"
  },
  "offers": [
    {
      "@type": "Offer",
      "name": "Free",
      "description": "The full CLI on your machine, and a team of up to 3.",
      "price": "0",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 3,
        "unitText": "members"
      }
    },
    {
      "@type": "Offer",
      "name": "Team",
      "description": "Up to 15 members. One flat price, no seat math.",
      "price": "99",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "99",
        "priceCurrency": "USD",
        "unitCode": "MON",
        "referenceQuantity": {
          "@type": "QuantitativeValue",
          "value": 1,
          "unitCode": "MON"
        }
      },
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 15,
        "unitText": "members"
      }
    },
    {
      "@type": "Offer",
      "name": "Growth",
      "description": "Up to 50 members, for teams and agencies running AI across many repos.",
      "price": "249",
      "priceCurrency": "USD",
      "url": "https://promptconduit.dev/pricing",
      "availability": "https://schema.org/InStock",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "249",
        "priceCurrency": "USD",
        "unitCode": "MON",
        "referenceQuantity": {
          "@type": "QuantitativeValue",
          "value": 1,
          "unitCode": "MON"
        }
      },
      "eligibleQuantity": {
        "@type": "QuantitativeValue",
        "maxValue": 50,
        "unitText": "members"
      }
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "@id": "https://promptconduit.dev/#organization",
  "name": "PromptConduit",
  "url": "https://promptconduit.dev",
  "logo": "https://promptconduit.dev/favicon.svg",
  "email": "hello@promptconduit.dev",
  "contactPoint": {
    "@type": "ContactPoint",
    "contactType": "customer support",
    "email": "hello@promptconduit.dev",
    "url": "https://promptconduit.dev/about"
  },
  "sameAs": [
    "https://github.com/promptconduit/cli",
    "https://github.com/promptconduit/editor-extension",
    "https://twitter.com/promptconduit"
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://promptconduit.dev/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Docs",
      "item": "https://promptconduit.dev/docs"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "Troubleshooting",
      "item": "https://promptconduit.dev/docs/troubleshooting"
    }
  ]
}
```
