Skip to content

1MoreBuild/howvibe

Repository files navigation

howvibe

Track AI coding tool token usage and costs from the command line.

Install

Requirements:

  • Node.js >= 20

Install from npm:

npm i -g howvibe@latest
howvibe --version

Install from source (local dev):

npm ci
npm run build
npm link
howvibe --version

Quick Start

Show today usage:

howvibe today

Show grouped daily usage in a date range:

howvibe daily --since 2026-03-01 --until 2026-03-07

Show grouped monthly usage:

howvibe monthly

Machine-readable output:

howvibe today --json
howvibe monthly --plain

Common Sync Commands

Enable cross-machine sync (GitHub Gist):

howvibe sync enable

Disable sync:

howvibe sync disable

Check sync state and remote machine coverage:

howvibe sync status

Audit synced data in GitHub:

# first get gist id from "howvibe sync status"
gh gist view <gist-id>
# or open in browser:
https://gist.github.com/<gist-id>

Non-interactive mode (no prompts/login flow):

howvibe --no-input sync enable

Notes:

  • sync enable may open GitHub login if gh auth token is unavailable.
  • In --no-input mode, you must already have a valid GitHub token from gh auth login --web --scopes gist.
  • gh CLI is required for sync.
  • Sync storage uses only your private GitHub Gist plus local cache under ~/.howvibe/sync (no third-party sync backend).
  • Uploaded snapshots contain daily provider/model token and cost aggregates only.
  • Prompts, responses, and source files are never uploaded by sync.
  • Query commands (today, daily, monthly) always print a sync status line in human-readable output.
  • --json and --plain include sync_meta for scripting.

CLI Usage

howvibe [options] [command]

Commands:
  today
  daily
  monthly
  sync enable
  sync disable
  sync status

Global options:

  • --json: JSON output
  • --plain: line-based plain text output (TSV)
  • -q, --quiet: suppress non-essential output
  • --no-input: disable prompts/login flow
  • --no-color: disable colored output
  • --provider <name>: claude-code, codex, cursor, openrouter
  • --source <source>: auto, web, cli, oauth
  • --since <YYYY-MM-DD>
  • --until <YYYY-MM-DD>

Version update reminder:

  • howvibe checks npm latest version periodically and prints a reminder when a newer version is available.
  • install update with npm i -g howvibe@latest

Providers and Sources

Supported source matrix:

  • claude-code: cli
  • codex: cli
  • cursor: web, oauth
  • openrouter: web, oauth

Use --source auto (default) to let howvibe choose all compatible providers.

Environment Variables

  • HOWVIBE_SOURCE
  • CURSOR_SESSION_TOKEN
  • OPENROUTER_MANAGEMENT_KEY
  • CLAUDE_ORGANIZATION_UUID
  • CLAUDE_CONFIG_DIR
  • CODEX_HOME

Releasing

See release guide:

About

CLI tool to track AI coding tool token usage and costs (Claude Code, Codex, Cursor, OpenRouter)

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors