---
title: "Install, upgrade and uninstall — PromptConduit docs"
description: Install the PromptConduit CLI on macOS, Linux or Windows, pin a version or install directory, keep it updated, and remove it cleanly.
image: "https://promptconduit.dev/og-image.png"
---

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

# Install, upgrade and uninstall

Install the PromptConduit CLI on macOS, Linux or Windows, keep it current, and remove it cleanly.

The CLI is a single binary for amd64 and arm64. It has no runtime dependencies and needs no account. New to PromptConduit? The [Quickstart](https://promptconduit.dev/docs/quick-start) covers install and setup in four steps.

## Install

**macOS:**

<!-- docs-test: skip: the macOS install path; CI runs the Linux tab's identical command -->
```bash
curl -fsSL https://promptconduit.dev/install | bash
```

**Linux:**

```bash
curl -fsSL https://promptconduit.dev/install | bash
```

This works the same in WSL. Install the CLI inside WSL if your assistant runs there.

**Windows:**

The installer is a Bash script. Run it from Git Bash, MSYS2 or Cygwin. It downloads `promptconduit.exe`.

<!-- docs-test: skip: Windows path: needs Git Bash, MSYS2 or Cygwin -->
```bash
curl -fsSL https://promptconduit.dev/install | bash
```

Or download the Windows `.zip` from the [releases page](https://github.com/promptconduit/cli/releases) and put `promptconduit.exe` on your `PATH`.

The script picks the release for your OS and CPU, installs it to `/usr/local/bin`, and asks for your password only if it can't write there. If another `promptconduit` comes earlier on your `PATH`, it warns you, because your shell would keep running the old one.

Then set it up:

<!-- docs-test: ci-runs: "promptconduit init --local-only --tools claude-code --yes" -->
```bash
promptconduit init
```

> [!NOTE]
> Run from a terminal, the installer starts `init` itself when it finishes. If you completed it there, you're set up. Without a terminal (CI, a container without `-t`), it skips the wizard, so run `init` as above.

### Installer options

Set these before `bash` to pin a version or choose another directory, for example one you can write to without `sudo`:

<!-- docs-test: skip: installs a pinned older version over the one CI tests -->
```bash
curl -fsSL https://promptconduit.dev/install | PROMPTCONDUIT_VERSION=0.43.1 PROMPTCONDUIT_INSTALL_DIR="$HOME/.local/bin" bash
```

<!-- vale off -->

| Variable | Default | Description |
| --- | --- | --- |
| `PROMPTCONDUIT_VERSION` | `latest` | Version to install, for example `0.42.1` or `v0.42.1`. |
| `PROMPTCONDUIT_INSTALL_DIR` | `/usr/local/bin` | Directory to install the binary into. The installer uses sudo when it can't write there. |

<!-- vale on -->

Without the script, download any version's archive from the [releases page](https://github.com/promptconduit/cli/releases) and put the binary on your `PATH`.

### From source

Building from source needs Go 1.21 or later.

<!-- docs-test: skip: builds the CLI from source with Go; the CLI repo's CI runs the same build -->
```bash
git clone https://github.com/promptconduit/cli.git
cd cli
make build
make install
```

## Upgrade

The CLI keeps itself current. Once a day, when you run a command such as `status`, it checks GitHub for a newer release and upgrades in the background. The next command you run prints a one-time notice.

To upgrade now, or only check:

<!-- docs-test: skip: replaces the installed binary in place -->
```bash
promptconduit upgrade --check
promptconduit upgrade
```

`upgrade` replaces the binary in place. Hooks keep working because they call the same path.

To turn automatic upgrades off:

```bash
promptconduit config set --disable-auto-update=true
```

This also stops the daily rate-card refresh. For one shell only, set `PROMPTCONDUIT_AUTO_UPDATE=0` instead.

Check which version you run:

```bash
promptconduit --version
```

## Uninstall

Remove the hooks first, so your assistants don't try to call a binary that's gone. Repeat for each assistant you installed:

```bash
promptconduit uninstall claude-code
promptconduit uninstall cursor
```

Each `uninstall` also removes the PromptConduit MCP server from that assistant. `promptconduit status` shows what's still installed.

Then delete the binary and, if you want, your local data:

<!-- docs-test: skip: deletes the binary and all local data -->
```bash
sudo rm "$(command -v promptconduit)"
rm -rf ~/.promptconduit ~/.config/promptconduit
```

> [!WARNING]
> `~/.promptconduit` holds your captured events and local cost history. `~/.config/promptconduit` holds your API key and settings. Deleting them can't be undone. Anything you synced stays on your PromptConduit account.

If you installed the editor extension, remove it from the Extensions view in Cursor or VS Code.

## Next steps

-   [Quickstart](https://promptconduit.dev/docs/quick-start): set up hooks and see your first event.
-   [Editor extension](https://promptconduit.dev/docs/editor-extension): live cost in the Cursor or VS Code status bar.
-   [Configuration](https://promptconduit.dev/docs/configuration): every setting, environment variable and file the CLI uses.

```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": "Install, upgrade and uninstall",
      "item": "https://promptconduit.dev/docs/installation"
    }
  ]
}
```
