🚀 MCP · Live Claude Code · Codex · Cursor · CI pipelines · your apps

Every calculator on /tools is also a decision engine your workflow can call.

The same deterministic engines behind the web calculators run as a Model Context Protocol server. Ask cost questions inside Claude Code, Codex, ChatGPT, Cursor or Perplexity; wire them into CI, Streamlit apps and nightly jobs over REST. Six enterprise jobs below - each one something you can run today.

122decision engines exposed
8first-class workflow tools
0LLM calls at runtime - deterministic, auditable
v1.17.0live server version
https://mcp.aicost.ai/mcp

Six jobs, end to end

Each rail is a real workflow: the pain, the exact chain of engines and platform capabilities, the outcome you walk away with, and the one-liner to run it.

Legend: registry engine workflow tool platform capability quality gate your system
🔎

See where every AI dollar goes

One invoice line per vendor; no idea which team, product, or agent spent it.

A platform lead asks Claude, in the middle of standup:
"Break down last month's AI spend across our three products and flag anything growing faster than usage."
Your bills / usage export Ledger ingest (file inbox / LiteLLM pull) business-bill-diagnose analyze_workload_portfolio observability-cost
Outcome

Spend attributed to workload and team, leakage and concentration flagged, and the cost of keeping that attribution running priced honestly.

In Claude Code

claude mcp add --transport http aicost https://mcp.aicost.ai/mcp # then just ask: "diagnose this AI bill" and paste the numbers
📉

Optimize and reduce - without double counting

Routing 45% plus caching 30% is not 75%. Vendor decks sum levers that overlap.

An AI engineer, before the quarterly cost review:
"Stack routing, caching, batching and token reduction on our support workload. Give me the REAL combined number and the gateway config to deploy it."
multi-model-router prompt-cache-roi batch-vs-realtime eval-benchmark-cost stack-savings policy_patch -> LiteLLM / Cloudflare export
Outcome

A stacked-savings number that survives finance review, the eval budget that proves quality held, and an executable gateway config - not a slide.

Every engine returns

"policy_patch": { "compiled": { "target": "litellm", "config": { ... } } }
📈

Plan and forecast in ranges, not points

Teams that forecast cloud within 1-3% miss AI by 2-3x. Agentic spend compounds.

FP&A, building next year's plan:
"Model this workload at 1x / 10x / 100x, re-forecast the plan year with the agentic share compounding, and size the reserve."
estimate_llm_workload_cost scale-projection agentic-variance-reserve budget-planner
Outcome

A range forecast with a breach month, a 20-40% reserve sized to your agentic mix, and alert thresholds instead of hard stops.

REST, from any script

POST /v1/run-batch Authorization: Bearer aicost_sk_... {"runs":[{"engine_id":"aicost.scale-projection","inputs":{...}}]}

Enforce it dynamically - caps that actually fire

AICost CostWall

A budget in a spreadsheet stops nothing. One runaway agent loop can burn a five-figure day.

The same policy, now live in the request path and in CI:
"Soft-cap downgrades to the economy tier, hard cap blocks at the daily limit, and every PR that raises cost per task fails the build."
cost-firewall Firewall proxy: 429 rate / routed_to_economy / 402 hard cap / 403 kill switch CI/CD cost gate (/v1/run in the pipeline) Hourly anomaly + budget alerts
Outcome

Four enforcement tiers proven on live traffic, cost regressions caught pre-merge, and alerts before the bill becomes a surprise.

What a blocked call returns

HTTP 402 { "error": "daily_hard_cap", "resets_at": "..." }
📒

Audit it in the ledger - showback that holds up

AICost CostProof

Forecasts nobody reconciles are theater. Finance wants actuals, attribution, and an export their tooling reads.

Month-end, without a data pull request to engineering:
"Show forecast vs actual per workload, attribution coverage, and give me the FOCUS export for the FinOps platform."
aicost_ledger_actual (MySQL, per-tenant metering) Forecast-vs-actual reconcile (accuracy % reported on /v1/status) FOCUS 1.x CSV export Hash-chained audit trail (aicost_mcp_audit)
Outcome

Showback by tenant and workload, forecast accuracy you can quote, an open-standard export, and an audit trail where a silently altered row is a detected security event - not a shrug.

The buyer's uptime question

GET /v1/status -> { ledger: { staleness_h, attribution_coverage_pct, forecast_accuracy } }
🛡️

Continuous governance - beyond the assessment PDF

Every consultancy sells a point-in-time assessment. It is stale the week a model, a price, or a rule changes.

The AICostAdvisory difference, running as engines:
"Keep our AI inventory, per-route eligibility, and governance cost current - and re-issue the evidence whenever anything moves."
msp-client-ai-exposure-audit Model eligibility: 6 gates, per ROUTE not per model compliance-cost jurisdiction-risk-scorer Policy wizard -> gateway export + hash-chained evidence
Outcome

A governance posture that re-computes itself: same engines the assessment used, callable nightly from your own automation, with tamper-evident history. The PDF becomes a snapshot of a living system.

Deterministic by design

No LLM at runtime. Same inputs, same outputs, every run - auditable.

Assessment PDFs go stale. Engines do not.

Every consultancy can hand you a governance assessment. Ours is different because the assessment IS the engine chain above: the day a model, a price, a route certification or a rule changes, you re-run it - from your own automation, on your schedule - and the hash-chained audit trail proves nothing was quietly edited in between. That is the continuous-governance claim behind AICostAdvisory.com, delivered as infrastructure instead of a deliverable.

Mapped to how your team already works

Every audience runs the same engines in a different order. The full chain catalog powers this page, the web calculators, and the MCP server from one source of truth.

Developers & AI Engineers 3 ready-made chains Price the feature before you build it
Enterprise FinOps / CFO 3 ready-made chains A forecast with teeth (range, not a point)
MSPs (MSPCost.com) 3 ready-made chains Stop the leak before invoices ship
Healthcare (HealthITCost.com) 4 ready-made chains Ambient scribe: cost per encounter vs time returned
Governance & Advisory (AICostAdvisory.com) 3 ready-made chains AI Cost & Governance Assessment
VC / PE Diligence 1 ready-made chain Cost-claim diligence in a deal window
SMB & Solo Builders 1 ready-made chain Pick the builder stack without overbuying
Consumers & Prosumers 1 ready-made chain Stop paying for three assistants

The productized layers on these rails

The engines model and decide for free. When the workload is live, two of the rails above become products: the wall that enforces, and the ledger that proves. Names and claims mirror the pricing page - one source for every price.

AICost CostWall

Blocks the waste, lets the work through. Budgets, daily caps, spike anomaly, kill switch - enforced in your gateway.

Runs on: Enforce it dynamically - caps that actually fire See plans →
AICost CostProof

Prove it. Persistent ledger, modeled vs actual, realized savings.

Runs on: Audit it in the ledger - showback that holds up See plans →
AICost Scale

The cloud bill under the model bill, too. AWS CUR, Azure and BigQuery ingest, attribution by feature, customer and team, and a CI/CD cost gate that fails the build over budget.

Runs on: See where every AI dollar goes See plans →

Deploy into the gateway you already run

We are the vendor-neutral decision layer that runs BEFORE the routing layer: decide which models are permitted, what they cost, and what the caps are - then export that as configuration into whichever gateway your team already operates. Policy engines emit an executable policy_patch; anything a target cannot express natively is preserved under x_aicost_policy so nothing is silently dropped. Actuals flow back through the LiteLLM connector, the billing file-inbox, or your FOCUS 1.x export. Comparing them first? The router-compare engine holds the verified capability and pricing capture.

LiteLLM Self-hosted gateway native policy export actuals pull

policy_patch compiles to model_list, fallbacks, budgets, cache and retry config. The Ledger pulls spend back from its database, so forecast-vs-actual closes automatically.

Cloudflare AI Gateway Edge gateway native policy export

policy_patch compiles to gateway config: caching, rate limits, fallback order. Their edge guardrails and DLP run in front; our caps and routing policy ride in the same config.

Portkey Gateway (open source) native policy export

Policy export to gateway config with guardrails at every tier on their side; our eligibility gates decide WHICH models the config may contain.

Kong Enterprise API gateway native policy export

Policy export for teams already standardized on Kong: budgets and caps expressed as gateway plugins alongside existing API governance.

OpenRouter Gateway + router

We run BEFORE it: eligibility and budget policy decide the permitted model set; OpenRouter moves the traffic. Billing exports drop into the file-inbox for Ledger reconcile.

Vercel AI Gateway Gateway

Routing rules and budgets configured from our policy output; pass-through billing exports feed the Ledger the same way.

Helicone Gateway + observability

Their traces answer WHAT happened per request; our envelope answers WHAT IT SHOULD COST and why. Cost exports reconcile into the Ledger.

Not Diamond Router only

A routing brain that sits on top of an existing gateway. We qualify the model set it is allowed to route across before it ever picks.

Use it today - four doors, one fleet

Dual auth on one header: OAuth for humans in assistants, bearer keys for apps and pipelines. Nothing is degraded by using a key.

🤖 Claude Code / Desktop

claude mcp add --transport http \ aicost https://mcp.aicost.ai/mcp # sign in with OAuth, or use your key

⌨️ Codex CLI / IDE (~/.codex/config.toml)

[mcp_servers.aicost] url = "https://mcp.aicost.ai/mcp" bearer_token_env_var = "AICOST_API_KEY" # then /mcp in a session to verify

🐍 Your app (Python, Node, anything)

POST https://mcp.aicost.ai/mcp Authorization: Bearer aicost_sk_... Accept: application/json, text/event-stream

🔁 CI / nightly jobs (REST)

POST /v1/run-batch {"runs":[{"engine_id":"aicost.cost-firewall", "inputs":{...}}]}

🗂️ Browse the catalog first

GET https://mcp.aicost.ai/v1/engines GET https://mcp.aicost.ai/v1/health

Ready to run this against your numbers?

Get a key, connect an assistant, or book a session where we chain the right engines for your stack and hand you the gateway config to deploy.

Read the MCP docs → Book a Solution Session