{"_id":"@binbalenci/aicap","name":"@binbalenci/aicap","dist-tags":{"latest":"0.5.0"},"versions":{"0.5.0":{"name":"@binbalenci/aicap","version":"0.5.0","description":"Track AI subscription usage across GitHub Copilot and Claude","type":"module","bin":{"aicap":"dist/index.js"},"repository":{"type":"git","url":"git+https://github.com/binbalenci/aicap.git"},"homepage":"https://github.com/binbalenci/aicap","keywords":["cli","ai","github-copilot","claude","usage","terminal"],"scripts":{"build":"tsc","dev":"tsx src/index.ts"},"engines":{"node":">=20.0.0"},"dependencies":{"@clack/prompts":"^0.9.0","chalk":"^5.4.0","commander":"^13.0.0"},"devDependencies":{"@types/node":"^22.0.0","tsx":"^4.0.0","typescript":"^5.7.0"},"gitHead":"6f6c032382a505bc87848a12eea7bdda1e0d6cce","_id":"@binbalenci/aicap@0.5.0","bugs":{"url":"https://github.com/binbalenci/aicap/issues"},"_nodeVersion":"22.15.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-6D3TWwsXwmFiUx5+r3scMvqWWL0dmEb9k2P3t4btJSvX7vMw6IRs7gzzuFpdZdMoUmBPaJ4gpErGKj2M19lKAA==","shasum":"67f0fd666dcfd3a621e40edd7ebf9c55c915b33b","tarball":"https://registry.npmjs.org/@binbalenci/aicap/-/aicap-0.5.0.tgz","fileCount":22,"unpackedSize":724228,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDrpL3IRADsmEls6duYTD8cjRb/u/4JbSZ2qXgmV/e/JQIhAKbJPxmwPXD1JA2WfTFLzlavVVLfInone38ezGwZUF9P"}]},"_npmUser":{"name":"binbalenci","email":"baobinh.ams1013@gmail.com"},"directories":{},"maintainers":[{"name":"binbalenci","email":"baobinh.ams1013@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/aicap_0.5.0_1775600320960_0.41233822803627973"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-07T22:18:40.834Z","0.5.0":"2026-04-07T22:18:41.211Z","modified":"2026-04-07T22:18:41.442Z"},"maintainers":[{"name":"binbalenci","email":"baobinh.ams1013@gmail.com"}],"description":"Track AI subscription usage across GitHub Copilot and Claude","homepage":"https://github.com/binbalenci/aicap","keywords":["cli","ai","github-copilot","claude","usage","terminal"],"repository":{"type":"git","url":"git+https://github.com/binbalenci/aicap.git"},"bugs":{"url":"https://github.com/binbalenci/aicap/issues"},"readme":"# aicap\n\nTrack your AI subscription usage across GitHub Copilot and Claude — directly in the terminal.\n\n![demo](media/demo.png)\n\n## Requirements\n\n- Node.js 20+\n- macOS (Claude usage tracking reads from the macOS Keychain)\n- A GitHub Personal Access Token for Copilot tracking\n- [Claude Code CLI](https://claude.ai/code) logged in for Claude tracking\n\n## Install\n\n```bash\nnpm install -g @binbalenci/aicap\n```\n\n## Quick Start\n\n```bash\naicap config   # set up your subscriptions\naicap          # show usage\n```\n\n## Commands\n\n| Command | Description |\n|---|---|\n| `aicap` | Show usage for all configured sources |\n| `aicap config` | Interactive setup |\n| `aicap --json` | Machine-readable JSON output |\n| `aicap -v` | Show version |\n| `aicap --help` | Show help |\n\n## GitHub Setup\n\nYou need a GitHub Personal Access Token (classic) with the **`read:user`** scope.\n\n1. Go to [github.com/settings/tokens](https://github.com/settings/tokens) → **Generate new token (classic)**\n2. Select the `read:user` scope\n3. Copy the token and paste it when running `aicap config`\n\n## Claude Setup\n\nClaude usage tracking uses the token stored by the Claude Code CLI. Make sure you're logged in before running `aicap config`:\n\n```bash\nclaude login\n```\n\nOnce logged in, `aicap` will find the token automatically — no manual steps needed.\n\n> Claude usage tracking is experimental and macOS only.\n\n## Config\n\nConfiguration is stored at `~/.config/aicap/config.json`. Run `aicap config` at any time to update your settings.\n\n## Privacy & Data\n\n- **Nothing leaves your machine** except the API calls to GitHub and Anthropic made directly from your terminal with your own credentials.\n- Your GitHub token and settings are stored locally at `~/.config/aicap/config.json`, readable only by your user account.\n- No analytics, no telemetry, no third-party services.\n\n## Roadmap\n\n- **More sources** — Cursor, Windsurf, and other AI tools as their usage APIs become available\n- **iTerm2 status bar** — always-visible usage indicator in your terminal window\n- **Starship module** — show usage inline in your shell prompt\n- **Watch mode** — live-refreshing display without re-running the command\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-5530e053e1f2900aa63c1502527ce31e"}