AI FinOps & Code Spend

Meet Code Spend.
Follow the AI cost of the work.

Trace routed model usage to a repository, branch, ticket or development session. Give finance and engineering a shared view of the AI spend behind delivery.

A number with a useful backstory

One repository.
One issue. A budget conversation.

A typical development team

Start with the team’s work.

The team’s payments repository has $1,436.78 in recorded estimated AI spend. Three work items contribute to that total. Now you have somewhere useful to look.

Finance & engineering

What did AI cost
on this ticket?

Watch the work come into focus: the repository, the issue, its estimated AI cost, and the allowance around it.

  1. Filter the payments repository.
  2. Select a work item and review its recorded usage.
  3. Review an allowance around the same issue.

Accountability starts with context

Follow the spend.
Find the calls.

Review daily token activity and recorded estimated cost. Select a work item or day, then open the matching request logs with the same time and repository scope.

  • Separate input and output tokens
  • See requests without work-item attribution
  • Inspect callers and policy evidence with the right permissions
Watch the attribution workflow

Budget the unit of work

A shared allowance
for a shared effort.

Repository budgets pool matching attributed usage across callers for a UTC month. Issue budgets pool matching issue usage across callers over time.

  • Wildcard defaults such as PAY-* apply per matching issue
  • Specific issue budgets override matching defaults
  • Warnings and blocking use configured thresholds
Watch the budget workflow

Finance / the next decision

How do we budget
the work?

A repository pool and a per-issue default solve different problems. See the current editors make that distinction clear.

  1. Review repository and issue allowances.
  2. Draft a wildcard default such as PAY-*.
  3. Leave room for a specific issue override.

Useful to finance. Honest about coverage.

A better cost conversation
starts with better evidence.

Know what is priced

Model rates are recorded with requests. Missing prices stay unpriced, with accounting gaps visible. Supported automatic price sources and manual offline prices both have a place.

Keep attribution separate from content

Client-supplied repository and work-item labels do not require prompt capture. Viewing captured content remains a separate permission and policy decision.

Preserve the historical estimate

Later rate changes do not reprice historical requests. Recorded costs reflect the rates and usage available when the request ran.

Keep finance controls close to usage

Existing user, group and service-account allowances can apply alongside repository and issue budgets. Group allowances apply to each member; they are not shared group pools.

Questions, answered

The details matter.

Does AI Warden discover my Git branch automatically?

The current release uses context sent by the client on model requests: repository, branch, work-item ID, session and optional PR reference. Automatic branch detection and editor prompts are planned enhancements. A ticket number written only in a prompt does not create attribution.

Is this a GitHub or Jira integration?

Code Spend accepts namespaced work-item identifiers, including GitHub issue IDs and Jira keys. It does not need to fetch a ticket or read a repository to report that supplied context. GitHub Copilot model discovery is a separate connector capability.

What happens when a budget is reached?

New requests with matching attribution are blocked when the configured threshold is reached. Repository allowances reset monthly in UTC; issue allowances have no monthly reset. Requests already in flight can add spend, so the allowance is not a promise of a precise invoice ceiling. Missing or different labels do not consume that target’s code allowance.

Do the dollar amounts match my provider invoice?

They are estimates from recorded token usage and configured model prices. Missing pricing or usage can understate spend. Taxes, non-token fees and discounts not represented in the rate are excluded; provider invoices remain authoritative.

Does this measure the ROI of generated code?

It gives you the recorded AI usage behind the context supplied by the client. That is useful input to delivery and investment decisions. It does not verify code provenance, measure productivity or prove a business outcome.

Can finance review costs without reading prompts?

Yes. Finance access and request-log content access use different permissions. Tracking attribution does not enable content capture or recover content that was never captured.

More than the number

Follow the cost
into the conversation.

The same work context connects model usage to the prompts and responses around a feature. Review the AI exchange behind the cost for engineering, audit and IP questions.

Explore the evidence trail →

Let’s make it concrete

Bring finance and engineering
into the same conversation.

Walk through a repository, an issue and the budget choices around them.

Swiss-built · Hosted solution · Vendor agnostic