8 ms·
Ccusage: A CLI tool for analyzing Claude Code usage from local JSONL files
- thebestmoshe 1y agoI really like how easy it is to run using bunx, pnpx, npx, etc. But does anyone have thoughts on the security aspect. Getting people used to just running code like this that has full access to the system is slightly concerning. On the other hand it’s no different than installing npm packages
- simonw 1y agoMaybe this kind of thing would be better written in Deno? Deno has mechanisms for allow-listing the exact files the process can access - in this case you would want to give it read-only access to the log files in the ~/.claude directory and nothing else.
- ghuntley 1y ago> anyone have thoughts on the security aspect Yes, you need to run these agents in a sandboxed environment when running full AFK [1] yolo. That could be a Docker container or it could be remote developer environment. [1] https://ghuntley.com/ralph https://ghuntley.com/ralph
- extr 1y agoHave been using this for awhile, I'm on the $100/mo Max plan and have been running $600-800/mo in terms of usage, and I'm hardly pushing it to the limits (missing lots of billing windows). It makes me wonder what Anthropic's true margins are. I could believe they are overcharging via the API, Sonnet is $3/$15/Mtok and Opus at an ABSURD $15/$75/Mtok. But to break even for me, that would mean that they're overcharging by a factor 5x-10x, which doesn't seem possible. Is the music going to stop for Claude Code the same way it did for Cursor? I have to imagine every incentive in the world is pushing them to lower inference cost rather than introduce stricter limits, and unlike Cursor they can actually can reach into their stack and do this. But I'm not sure they're capable of miracles. Regardless, I'm bullish Anthropic. Sonnet and Opus don't benchmark as well as O3/Grok4 at pure coding, and aren't as cheap as Kimi K2 for theoretically similar perf, but as any user knows they are top tier at instruction following, highly reliable and predictable, and have a certain intangible theory of mind that is unique to Anthropic.
- wyldfire 1y ago> Sonnet and Opus don't benchmark as well as O3/Grok4 at pure coding Do any of the others have a "claude code" local agent? Seems like a big gap IMO. Though, it should be pretty easy for them to close that gap. I don't usually take too many moral stances but I feel like I can't use Grok. It's bad enough Musk did his Nazi salute but his AI product itself is a Nazi too? It might be good at coding but I really can't stomach using it.
- sothatsit 1y agoFWIW, people report that Grok 4 is not very good at coding, and xAI admit this themselves when they said they will be releasing a separate coding model in "the next few weeks". Also, Google does have Gemini CLI, OpenAI does have Codex CLI, and then there is Aider which can support any model. I think the big difference is that Anthropic's models are the best for this use-case right now, and Anthropic has the Max plan which makes a massive difference to the cost of using Claude Code compared to competitors (although the Gemini CLI has insane free tiers). I'm not sure how this will play out in the future, because it seems to me that Claude Code does not have much of a moat beyond Anthropic having the best coding models right now, and them offering model usage at heavily discounted prices.
- ghuntley 1y ago> people report that Grok 4 is not very good at coding There are agentic models and oracle models. It can be modelled on a four-way quadrant of agent vs oracle and high safety vs low safety. https://ghuntley.com/cars https://ghuntley.com/cars Grok is oracle and low safety.
- theshrike79 1y agoGrok4 is pretty decent at planning and figuring out libraries and APIs. For code it falls down past simple scripts and utilities.
- perfmode 1y agoperhaps there are enough inactive subscribers to compensate for the heavy users.
- 38 1y ago[flagged]
- sevg 1y agoYou’ve pasted this exact comment 13+ times. Could you please stop spamming?
- ryoppippi 1y agoI'm the author of ccusage. Thank you for sharing! Also please refer our website. https://ccusage.com https://ccusage.com