Skip to content

Raycast Extension

The ctok Raycast extension gives you instant access to token estimation and prompt refinement from the Raycast launcher.

Install

  1. Open Raycast
  2. Search Store → search ctok
  3. Click Install

Or install from source:

Terminal window
cd apps/raycast
npm install
ray build
# Open Raycast → Extensions → Import Extension → select apps/raycast/

Requirements

  • macOS (Raycast is macOS-only)
  • ctok CLI on PATH (npm i -g ctok)

Commands

CommandDescription
Check Token CountEstimate tokens for a typed or pasted prompt
Refine PromptRun the 7-pass refiner and show the improved version
Check ClipboardInstantly estimate tokens for whatever is on the clipboard
Scan ProjectScan a directory and show token footprint
HistoryBrowse recent estimates

Preferences

Set in Raycast Preferences → Extensions → ctok:

PreferenceDescription
Default modelModel used for cost calculation
PlanClaude plan for quota estimates
ctok pathOverride the path to the ctok binary if not on PATH