{"_id":"@aiping.cn/atm-cli","name":"@aiping.cn/atm-cli","dist-tags":{"latest":"26.8.21"},"versions":{"26.8.21":{"name":"@aiping.cn/atm-cli","version":"26.8.21","description":"Cross-platform lightweight token usage scanner for ATM, DeepSeek Harness, Codex, and Claude Code","type":"module","bin":{"atm":"bin/atm.js","atm-usage":"bin/atm.js"},"engines":{"node":">=18"},"scripts":{"test":"node --test"},"keywords":["atm","token","usage","deepseek","dsh","codex","claude"],"repository":{"type":"git","url":"git+https://github.com/QingCheng-AI/ATM.git","directory":"packages/atm-cli"},"bugs":{"url":"https://github.com/QingCheng-AI/ATM/issues"},"homepage":"https://github.com/QingCheng-AI/ATM#readme","license":"MIT","publishConfig":{"access":"public"},"dependencies":{"fzstd":"^0.1.1"},"_id":"@aiping.cn/atm-cli@26.8.21","gitHead":"44e91e75b05dd2b1ff411524523258213aa8e32e","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-7Y/7v4Cdb4KwDrTPCP0sk5TSzvgsySlN7mOXvqazUPrIPRcDyG5qLqNJWGy8UhaVhQNgJ9G/dSX8NflGncCPag==","shasum":"1d14ae2f0aa326cc667303ea288c5ea96e6dcede","tarball":"https://registry.npmjs.org/@aiping.cn/atm-cli/-/atm-cli-26.8.21.tgz","fileCount":5,"unpackedSize":16379,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCXK5ESAE5iXmWtcEPpk31algCj5O8018WPR4rmiLf4pgIhAIs+kDxO65kO4NBPDLIcIX7sGUdOm1JNWAyPX2NVkJG0"}]},"_npmUser":{"name":"aiping.cn","email":"haoruileee@gmail.com"},"directories":{},"maintainers":[{"name":"aiping.cn","email":"haoruileee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/atm-cli_26.8.21_1787302905525_0.49237135915345176"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-21T09:01:45.357Z","26.8.21":"2026-08-21T09:01:45.678Z","modified":"2026-08-21T09:01:45.877Z"},"maintainers":[{"name":"aiping.cn","email":"haoruileee@gmail.com"}],"description":"Cross-platform lightweight token usage scanner for ATM, DeepSeek Harness, Codex, and Claude Code","homepage":"https://github.com/QingCheng-AI/ATM#readme","keywords":["atm","token","usage","deepseek","dsh","codex","claude"],"repository":{"type":"git","url":"git+https://github.com/QingCheng-AI/ATM.git","directory":"packages/atm-cli"},"bugs":{"url":"https://github.com/QingCheng-AI/ATM/issues"},"license":"MIT","readme":"# @aiping.cn/atm-cli\n\nCross-platform lightweight token usage scanner for ATM, DeepSeek Harness (DSH), Codex, and Claude Code.\n\n## Install\n\n```bash\nnpm install -g @aiping.cn/atm-cli\natm usage\n```\n\nOr run it without a global install:\n\n```bash\nnpx @aiping.cn/atm-cli usage --json\n```\n\nThe package is pure Node.js and has no native binary. The same package works on Windows, macOS, and Linux on x64 or ARM64. Node.js 18 or newer is required.\n\n## Commands\n\n```bash\natm usage                         # human-readable totals\natm usage --json                  # machine-readable JSON\natm usage --source dsh            # only DeepSeek Harness sessions\natm usage --since-days 7          # recent usage only\natm usage --watch --interval 60   # rescan every minute\natm usage --no-save --json        # read-only scan without writing a snapshot\n```\n\nThe scanner reads local history only. It does not upload prompts, responses, API keys, or raw conversation content. It only extracts token usage fields from local JSONL/JSONL.zstd records.\n\nBy default, each scan atomically saves the sanitized snapshot to `~/.atm/usage/cli-scan.json`, matching the desktop app's `~/.atm` data root. Set `ATM_HOME` or pass `--save-path` to override it. This file is a CLI snapshot and does not modify the desktop app's SQLite database (`~/.atm/atm.db`).\n\nSupported local sources in this first release:\n\n- DeepSeek Harness: `DSH_HOME/sessions` or `~/.dsh/sessions`\n- Codex: `CODEX_HOME/sessions` or `~/.codex/sessions`\n- Claude Code: `CLAUDE_HOME/projects` or `~/.claude/projects`\n\nFor the desktop dashboard, install ATM from the platform release packages in the main repository. This npm package is intentionally the small CLI scanner.\n","readmeFilename":"README.md","_rev":"1-a30ac5296960b218b987bbed6e0a89e8"}