← Back to Product Feed

Hacker News Show HN: Cost.dev (YC W21) – making agents cost-aware and cheaper to call

A specialized CLI that integrates with coding agents and IDEs to provide accurate, local, and token-efficient cloud cost estimates and FinOps policy enforcement for IaC, shifting cost visibility left.

29
Traction Score
15
Discussions
Jun 5, 2026
Launch Date
View Origin Link

Product Positioning & Context

AI Executive Synthesis
A specialized CLI that integrates with coding agents and IDEs to provide accurate, local, and token-efficient cloud cost estimates and FinOps policy enforcement for IaC, shifting cost visibility left.
Cost.dev addresses the critical need for cost optimization and accuracy in agent-driven infrastructure-as-code (IaC) workflows. By offloading deterministic tasks like price fetching and static analysis to a local CLI, it drastically reduces LLM token usage (up to 79%) and API costs (up to 67%). This approach mitigates the LLM's unreliability for precise financial data and policy enforcement, establishing a verifiable "rule layer." The market implication is a clear demand for specialized tools that augment LLM capabilities by providing factual, cost-aware context, enabling FinOps "shift left" for agent-generated IaC. This product validates the trend of hybrid AI-human-tool workflows where LLMs handle natural language, and deterministic systems ensure accuracy and cost control.
We launched Infracost on HN five years ago (https://news.ycombinator.com/item?id=26064588) where our CLI generated cost estimates for infra-as-code, e.g. "this Terraform PR adds $400/mo". The idea was to shift cloud costs (FinOps) left, so engineers get visibility of costs before deployment and make better decisions.Earlier this year we started seeing agent traffic in our logs and it looked like coding agents were calling our CLI. But that CLI wasn't designed with coding agents in mind. We went down a philosophical rabbit hole to see if a CLI is even needed anymore given that Claude, Copilot et al. already follow best practices. Ultimately we decided to create a new CLI from the ground up with coding agents in mind for two reasons:1. We optimized the CLI for agent callers and cut Claude's output token usage by up to 79% and API cost by up to 67% versus a bare-Claude baseline. We wrote a blog documenting our lessons on optimizing user token usage when designing a CLI, e.g. using predicate flags so the agent doesn't compose jq | python | wc pipelines, output format that strips JSON's redundant field names. The blog is here: https://www.infracost.io/resources/blog/we-cut-claude-s-toke...2. With cloud costs, precision matters. Telling a coding agent "make this Terraform cost-optimized" can be expensive and lossy. You burn tokens loading code and policy context into every conversation. Your agent could make up a price and you wouldn't know because it's difficult to verify that across the ~10M price points that AWS, Azure and Google have. The CLI runs static analysis on the code, uses the latest prices from cloud vendors, and passes that context to the coding agent.So that's what we're launching today - Cost.dev: https://cost.dev/.- It runs locally. Your code never leaves your machine, you get a fast feedback loop, and you're not burning API calls per character when you want to fetch prices.- The CLI does the deterministic work. Fetching price points, scanning the code, validating fixes. The coding agent does the natural-language part. You don't have to trust the LLM to remember the rules, and can verify it called the right CLI command.- It provides a consistent rule layer across every tool you use. Get cost estimates in your IDE and your coding agent with a single install. We support Claude Code, GitHub Copilot, Cursor, Windsurf, OpenAI Codex, Gemini CLI, as well as IDEs like VS Code and JetBrainsBefore we keep building more in that direction, I want to sanity-check with HN: is "agents writing IaC in prod" actually a thing yet, or am I betting on a future that's still a year out? I know software developers are using coding agents heavily, but are platform/infra folks doing that for prod too? Also, if you have any feedback on Cost.dev, I'd love to hear it!
Infracost CLI cost estimates infra-as-code Terraform PR cloud costs FinOps shift left

Related Ecosystem & Alternatives

Discover adjacent products, open-source repositories, and developer tools sharing similar technical architecture.

Deep-Dive FAQs

What is Cost.dev (YC W21) – making agents cost-aware and cheaper to call?
Cost.dev (YC W21) – making agents cost-aware and cheaper to call is analyzed by our AI as: A specialized CLI that integrates with coding agents and IDEs to provide accurate, local, and token-efficient cloud cost estimates and FinOps policy enforcement for IaC, shifting cost visibility left.. It focuses on Cost.dev addresses the critical need for cost optimization and accuracy in agent-driven infrastructure-as-code (IaC) workflows. By offloading deter...
Where did Cost.dev (YC W21) – making agents cost-aware and cheaper to call originate?
Data for Cost.dev (YC W21) – making agents cost-aware and cheaper to call was aggregated directly from the Hacker News community ecosystem, representing raw developer and early-adopter sentiment.
When was Cost.dev (YC W21) – making agents cost-aware and cheaper to call publicly launched?
The initial public indexing or launch date for Cost.dev (YC W21) – making agents cost-aware and cheaper to call within our tracked developer communities was recorded on June 5, 2026.
How popular is Cost.dev (YC W21) – making agents cost-aware and cheaper to call?
Cost.dev (YC W21) – making agents cost-aware and cheaper to call has achieved measurable traction, logging over 29 traction score and facilitating 15 recorded discussions or engagements.
Which technical categories define Cost.dev (YC W21) – making agents cost-aware and cheaper to call?
Based on metadata extraction, Cost.dev (YC W21) – making agents cost-aware and cheaper to call is categorized under topics such as: Infracost, CLI, cost estimates, infra-as-code.
What are some commercial alternatives to Cost.dev (YC W21) – making agents cost-aware and cheaper to call?
Our semantic intelligence engine identifies potential commercial alternatives in the SaaS space, such as Light Flip , which offers overlapping value propositions.
How does the creator describe Cost.dev (YC W21) – making agents cost-aware and cheaper to call?
The original author or development team describes the product as follows: "We launched Infracost on HN five years ago (https://news.ycombinator.com/item?id=26064588) where our CLI generated cost estimates for infra-as-code, e.g. "this Terraform PR adds $400/mo". The idea ..."

Community Voice & Feedback

dezsirazvan • Jun 5, 2026
[flagged]
sanreds • Jun 5, 2026
[dead]
winphoto • Jun 5, 2026
[flagged]
songting591 • Jun 5, 2026
[flagged]
lavaman131 • Jun 5, 2026
This is an interesting approach. I think people still underestimate how quickly token limits and context bloat become the bottleneck when you start running agents in production loops. Seems very relevant topic also given the environment. Will check it out
sid_ships • Jun 5, 2026
[flagged]
jing09928 • Jun 5, 2026
The interesting bit is making cloud cost a first-class constraint for the agent loop, not just a post-hoc report. I'd be curious how you handle confidence/uncertainty in estimates, since a wrong cheap-looking recommendation can be worse than no estimate in infra PRs.
5701652400 • Jun 4, 2026
why would anyone need 10,000 runs a month? do people modify their infrastructure 10,000 times a month?
5701652400 • Jun 4, 2026
I don't know how they can justify 250 USD / month bill. let alone 1000 USD / month.
zuzululu • Jun 4, 2026
Not really seeing the point I just use openrouter if I'm penny pinching

Discovery Source

Hacker News Hacker News

Aggregated via automated community intelligence tracking.

Tech Stack Dependencies

No direct open-source NPM package mentions detected in the product documentation.

Media Tractions & Mentions

No mainstream media stories specifically mentioning this product name have been intercepted yet.

Deep Research & Science

No direct peer-reviewed scientific literature matched with this product's architecture.