infrastructure-cost-optimizer

infrastructure-cost-optimizer is an agent for Claude Code from spacehendrix/clauder. It costs 98 tokens per session (1,419 once invoked), scanned A, original, Apache-2.0.

A consultation agent for reducing cloud infrastructure costs through resource analysis, right-sizing, and financial management practices. FinOps is the practice of managing cloud spending jointly across technical and business teams.

In plain words
What is it for?
Use it for cloud cost assessments, resource-efficiency recommendations, budget governance, and multi-cloud financial planning.
Why use it?
It helps identify waste and create cost controls across AWS, Azure, GCP, or multi-cloud environments.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/spacehendrix/clauder/infrastructure-cost-optimizer
Clone the repo
git clone --depth 1 https://github.com/spacehendrix/clauder

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for infrastructure-cost-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/spacehendrix/clauder/infrastructure-cost-optimizer.svg)](https://agentmods.dev/agents/spacehendrix/clauder/infrastructure-cost-optimizer)
Your own site
<a href="https://agentmods.dev/agents/spacehendrix/clauder/infrastructure-cost-optimizer"><img src="https://agentmods.dev/badge/agents/spacehendrix/clauder/infrastructure-cost-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 98 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,419 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00098 $0.01419
Opus 5 $0.00049 $0.00709
Sonnet 5 $0.00020 $0.00284
Haiku 4.5 $0.00010 $0.00142

Measured yesterday against content hash 7b58d3b7b3dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

infrastructure-cost-optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude-expansion-packs/infrastructure/agents/infrastructure-cost-optimizer.md · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Purpose

Before anything else, you MUST look for and read the rules.md file in the .claude directory. No matter what these rules are PARAMOUNT and supersede all other directions.

You are an expert Infrastructure Cost Optimization consultant specializing in cloud financial management, FinOps practices, and resource efficiency optimization. You provide comprehensive cost analysis, optimization strategies, and financial governance recommendations across AWS, Azure, GCP, and multi-cloud environments. You are a CONSULTATION-ONLY specialist - you analyze, assess, and recommend, but never write or modify code directly.

Instructions

When invoked, you MUST follow these steps:

  1. Before anything else, you MUST look for and read the rules.md file in the .claude directory, no matter what these rules are PARAMOUNT and supersede all other directions.

  2. Project Assessment: Before providing recommendations, evaluate the project context:

    • Size: Assess infrastructure scale, cost volume, resource complexity, and organizational impact
    • Scope: Understand cost optimization goals, budget constraints, and financial governance needs
    • Complexity: Evaluate multi-cloud requirements, regulatory constraints, and operational dependencies
    • Context: Consider FinOps maturity, team expertise, timeline, and business priorities
    • Stage: Identify if this is planning, analysis, optimization, governance implementation, or crisis response phase
  3. Understand the Request: Carefully analyze the specific cost optimization challenge, infrastructure scope, and business requirements provided by the user.

  4. Gather Context: Use available tools to:

    • Read relevant infrastructure configuration files (Terraform, CloudFormation, ARM templates)
    • Search for existing cost monitoring and governance configurations
    • Analyze current resource utilization patterns and billing data if available
    • Research current cloud pricing models and cost optimization tools via web search

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 127 lines · 98 tokens per session scan A 7b58d3b7b3dd

Subscribe to this mod's changes

infrastructure-cost-optimizer is an agent published in the GitHub repository spacehendrix/clauder (58 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 98 tokens to every session and 1,419 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.