---
title: "Editor extension — PromptConduit docs"
description: "Live cost in the Cursor or VS Code status bar, and The Loop: what each prompt cost, round-trip by round-trip, and what would have made it cheaper."
image: "https://promptconduit.dev/og-image.png"
---

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

# Editor extension

See each prompt's cost live in Cursor or VS Code, and where the money went, round-trip by round-trip.

The PromptConduit extension reads the event log the CLI writes on your machine, `~/.promptconduit/events.jsonl`. It works with Claude Code and Cursor sessions, needs no account, and doesn't send your code or prompts anywhere. It's open source: [github.com/promptconduit/editor-extension](https://github.com/promptconduit/editor-extension).

## Before you begin

-   Install the CLI and set up hooks. The extension has nothing to show until the CLI records events. See the [Quickstart](https://promptconduit.dev/docs/quick-start).
-   Cursor, or VS Code 1.85 or later.

## Install the extension

**Cursor:**

1.  Open the Extensions view: `⇧⌘X` on macOS, `Ctrl+Shift+X` on Windows and Linux.
2.  Search for **PromptConduit** and select **Install**. Cursor installs it from [Open VSX](https://open-vsx.org/extension/promptconduit/promptconduit).

**VS Code:**

The VS Code Marketplace listing isn't live yet. Until it is, install the VSIX from Open VSX by hand:

1.  Open the [PromptConduit page on Open VSX](https://open-vsx.org/extension/promptconduit/promptconduit) and select **Download**.
2.  Install the file you downloaded:

<!-- docs-test: skip: needs VS Code and the downloaded file -->
```bash
code --install-extension ~/Downloads/promptconduit.promptconduit-*.vsix
```

Or, in the Extensions view, open the **…** menu and choose **Install from VSIX…**.

Then reload the window (**Developer: Reload Window** in the command palette) and send a prompt. The cost appears in the status bar.

> [!NOTE]
> `promptconduit install cursor` also installs a copy of the extension that ships inside the CLI. That copy can be older than the one on Open VSX. If you don't see The Loop after running it, update the extension from the Extensions view. To install hooks without it, add `--no-extension`.

## Read the status bar

The item at the bottom right reads `⚡ <last request> · 🕘 <session>`: what the last request to the model cost, and the session's total so far. It updates as your assistant works. Its tooltip adds this branch's and this pull request's cost.

The extension follows the session in your focused terminal, or the selected agent tab in Cursor. To keep it on one session, run **PromptConduit: Pin Cost Session**.

## Open The Loop

Select the cost in the status bar, or run **PromptConduit: Show The Loop**. The Loop explains one prompt:

-   **The headline:** what the prompt cost, and how much of that was the model re-reading the conversation.
-   **The loop:** one column per round-trip to the model, as tall as the context it read, with the tools it ran in between and each column's cost underneath. It grows live while a prompt runs.
-   **What would have made this cheaper:** the same steps re-priced with fewer round-trips, a fresh session or subagent, or another model. Each links to a short [guide](https://promptconduit.dev/coaching).
-   **Notes:** things that already happened, such as a wait long enough for the prompt cache to expire.
-   **How you've done this before:** this prompt against your past prompts of the same kind, with your cheapest run.
-   **How this session got here:** context size across the whole session, so you can see when to start fresh.

Pick an earlier prompt from the menu at the top. If The Loop looks stale after an update, select the **↻** button in its toolbar (**PromptConduit: Refresh Panel**).

## Let your agent answer

The Loop shows whether the PromptConduit MCP server is registered with this editor's agent: Cursor in Cursor, Claude Code in VS Code. If it isn't, select **Register**, which runs `promptconduit mcp install`. Then you can ask your agent "what did my last prompt cost?" directly. See [AI agents (MCP)](https://promptconduit.dev/docs/agents).

## Restore interrupted sessions

When the editor restarts, it closes its terminals and any Claude Code sessions in them. With `promptconduit.restore.mode` set to `auto`, the default, the extension reopens those sessions in the exact directory they ran in, worktrees included. Sessions still running are never touched. Run **PromptConduit: Restore AI Sessions** to do it by hand.

> [!TIP]
> **Developer: Reload Window** keeps your terminals. Use it instead of quitting the editor when you only need to reload extensions.

## Settings

| Setting | Default | What it does |
| --- | --- | --- |
| `promptconduit.cost.enabled` | `true` | Show the cost item in the status bar. |
| `promptconduit.cost.binaryPath` | empty | Path to the `promptconduit` CLI. Leave empty to find it on your `PATH` and in common install locations. |
| `promptconduit.restore.mode` | `auto` | `auto` reopens interrupted Claude Code sessions after a restart, `prompt` asks first, `off` does nothing. |
| `promptconduit.restore.sinceHours` | `12` | How far back, in hours, to look for interrupted sessions. |
| `promptconduit.cursorTabs.enabled` | `true` | Cursor only: follow the selected agent tab, so the status bar and The Loop switch to that conversation. |

## Commands

Open the command palette and type `PromptConduit`:

| Command | What it does |
| --- | --- |
| `PromptConduit: Show The Loop` | Open The Loop for the current session. |
| `PromptConduit: Pin Cost Session` | Keep the status bar and The Loop on one session. |
| `PromptConduit: Follow Active Cost Session` | Undo a pin: follow the focused terminal or agent tab again. |
| `PromptConduit: Sign In` | Run `promptconduit login` in a terminal, to sync and see team cost. |
| `PromptConduit: Register MCP Server for Your Agent` | Register the MCP server with this editor's agent. |
| `PromptConduit: Invite a Teammate` | Ask for an email address and run `promptconduit team invite` with it. |
| `PromptConduit: Install the CLI` | Install the `promptconduit` CLI, when it's missing. |
| `PromptConduit: Run Setup (promptconduit init)` | Run the setup wizard in a terminal. |
| `PromptConduit: Restore AI Sessions` | Reopen interrupted Claude Code sessions now. |
| `PromptConduit: Refresh Panel` | Reload The Loop's view in place. |
| `PromptConduit: Send Feedback` | Send feedback to the PromptConduit team. |

## Next steps

-   [See what your sessions cost](https://promptconduit.dev/docs/cost): the same numbers from the terminal, by session and by day.
-   [Troubleshooting](https://promptconduit.dev/docs/troubleshooting): what to check when the status bar shows no cost.
-   [AI agents (MCP)](https://promptconduit.dev/docs/agents): every question your agent can answer about cost.

```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": "Editor extension",
      "item": "https://promptconduit.dev/docs/editor-extension"
    }
  ]
}
```
