Open-source CLI for syncing local Codex usage metadata to Codextime.
npx codextime@latest preview
npx codextime@latest login
npx codextime@latest sync| Command | Purpose |
|---|---|
codextime preview |
Builds a local summary of what would be uploaded. It does not write to the network. |
codextime login |
Prompts for a Codextime upload token and stores it locally. |
codextime sync |
Uploads verified usage metadata with Authorization: Bearer <token>. |
codextime doctor |
Checks local Codex logs, config, token presence, API reachability, and token validity. |
For automation only:
CODEXTIME_UPLOAD_TOKEN=ctu_live_xxxxx npx codextime@latest syncPrefer codextime login for normal use so tokens are not pasted into shell history.
- token counts
- model names
- timestamps
- session IDs
- optional usage metadata
- estimated API-equivalent cost
- prompts
- responses
- source code
- file contents
- secrets
- environment variables
codextime-tracker is the old package name. It is kept as a temporary migration bridge only. Legacy user ID sync is unverified and stops working after June 17, 2026.
npm install
npm run build
npm test
npm pack --dry-run --jsonThe npm package should contain only dist, examples, package metadata, and public docs.