Install, generate a key, and create your first prompt.
PromptMetrics ships as a single Node binary. Pick a path, set API_KEY_SALT, and you're running.
# 1. Install + start
$ npm install -g promptmetrics
$ export API_KEY_SALT=$(openssl rand -hex 32)
$ promptmetrics-server # listening on :3000
# 2. Mint a key (workspace=default, scopes=read,write)
$ node $(npm root -g)/promptmetrics/dist/scripts/generate-api-key.js \
--workspace default read,write
# → pm_a91f0b3c… (store this once)
# 3. Create a prompt
$ promptmetrics create-prompt --file welcome.json
✓ welcome · v1.0.0 · committed 7a3fe2c