I Built an Open-Source CLI to Compare LLM API Costs in Your Terminal (npx, Zero Install)
Dev.to AI
•
Generative AI
NLP
If you've ever had to compare costs between GPT-4o, Claude Sonnet, and Gemini before committing to a model, you know the pain: browser tabs, manual math, outdated blog posts. I built llm-costs - a zero-install CLI that does it instantly. The Problem Every time I start a new project using LLMs, I go through the same ritual: Open Anthropic pricing page Open OpenAI pricing page Open Google AI pricing page Try to compare apples to oranges with different tokenizers Do math in my head (or a spreadsheet) Realize the blog post I was referencing is 6 months out of date There had to be a better way.