docs / quick-start
Quickstart
Install the CLI, connect Claude Code or Cursor, and see your first captured event and what it cost.
This takes about two minutes. By the end, a prompt you send is recorded on your machine with its cost. If you sign in, the same event shows up on your PromptConduit account too.
Before you begin
- macOS or Linux, or Windows with Git Bash, MSYS2, Cygwin or WSL. The installer is a Bash script.
- Claude Code or Cursor, installed and used at least once on this machine.
- Optional: a browser, to sign in with Google or GitHub. Signing in creates a free account. You can skip it and stay local-only.
Step 1: Install the CLI
curl -fsSL https://promptconduit.dev/install | bash
The script downloads the latest release for your OS and CPU into /usr/local/bin.
It asks for your password only when it can't write there. It ends by printing
Installation complete! and the next command to run.
Check that your shell finds it:
promptconduit --version
Step 2: Run the setup wizard
init sets PromptConduit up for the assistants it finds on this machine. Choose how
you want to run it:
promptconduit init
The wizard asks whether to sync to the cloud or stay local-only. For cloud sync it opens your browser to sign in and saves an API key. Then it lists the assistants it detected, installs their hooks, and registers the PromptConduit MCP server with Claude Code and Cursor.
promptconduit init --local-only
No account and no sign-in. Events and cost stay on your machine. You can sign in later with
promptconduit login.
Over SSH, in a container or in CI, create an API key on your profile page, save it to a file, and pass it on stdin:
promptconduit init --api-key-stdin --yes < key.txt
--yes installs hooks for every assistant it detects. Name them instead with
--tools claude-code,cursor. To sign in from another device, run
promptconduit login --no-browser, which prints the sign-in URL instead of opening
it.
The wizard ends with a summary like this one:
Setup complete! ================ Mode: Local-only (Free) Tools: claude-code Next steps: • Restart your AI tools to activate hooks • Run `promptconduit status` to verify installation
Note
Run from a terminal, the installer starts this wizard itself. If you finished it there, go on
to step 3. Without a terminal (CI, a container without -t), the installer skips
it, so run init yourself.
Step 3: Send one prompt
Hooks load when a session starts. Quit any open Claude Code session, or reload the Cursor window (Developer: Reload Window in the command palette). Then open a project and send any prompt, for example "list the files in this repo".
Step 4: Confirm the event and its cost
In the same project directory, ask for this session's cost:
promptconduit cost
AI session cost — claude-code (exact)
Total: $0.0140 USD
claude-sonnet-5-5 $0.0140 in 2000 · out 1000 · cache-read 0 · cache-write 0
Signals: cache-hit 0% · input-share 100% · tier standard
cache-miss cost share 29%
Your numbers will differ. Until a session has run in this directory, it prints
No AI session cost recorded yet for this workspace. To see each event as it was
captured:
promptconduit events -n 5
21:53:30 Stop claude-code 8a269916 1.6KB cost,env,trace
Each line is one hook event: the time, the event name, the assistant, the start of the session id, the size, and what was added to it (cost, environment, timing).
If you signed in, check that the event was sent:
promptconduit status
Under Event Log, the sent count goes up within a few seconds of each
prompt. Your sessions then appear on your
PromptConduit overview.
Tip
Ask your assistant directly. In a new Claude Code or Cursor session, try "what has this session
cost?". The MCP server that init registered answers it.
Nothing showing up? promptconduit status says whether each assistant has hooks. When
sending fails, it shows the last error and how many events are waiting to send. They're retried
in the background.