Track AI usage costs automatically in a spreadsheet

Logs how many tokens your AI agent uses each run and calculates the estimated cost in Google Sheets.

How the work actually flows

A straight line.

Pattern: Sequence (1)

flowchart TD trig>"ai agent run finishes"]:::trig s0["pull token usage data"]:::svc s1[("record token counts")]:::store s2["calculate estimated cost"]:::task trig --> s0 s0 --> s1 s1 --> s2 out[/"running log of ai spend"/]:::out pay{{"visibility into ai costs"}}:::pay s2 --> out out --> pay classDef task fill:#e7f6fe,stroke:#34b8f0,color:#2c2a29 classDef svc fill:#f6f8fa,stroke:#7c8795,color:#2c2a29 classDef mi fill:#e7f6fe,stroke:#0079a8,color:#2c2a29,stroke-width:2px classDef human fill:#fff,stroke:#0079a8,color:#0079a8 classDef store fill:#f6f8fa,stroke:#0079a8,color:#2c2a29 classDef trig fill:#00a4eb,stroke:#0079a8,color:#fff,font-weight:bold classDef trigtime fill:#00a4eb,stroke:#0079a8,color:#fff,font-weight:bold classDef trigdata fill:#8ad4f5,stroke:#0079a8,color:#06314c,font-weight:bold classDef gate fill:#fff,stroke:#e8a23d,color:#6b4708,font-weight:bold classDef out fill:#1f9d6b,stroke:#167a53,color:#fff,font-weight:bold classDef pay fill:#06314c,stroke:#021f33,color:#fff
Starts itA stepAn outside serviceA record or sheetResultPayoff
Build size
Advanced

A larger build with multiple systems, AI reasoning, and custom rules.

Business functions
AI Agents & Autonomous SystemsSpreadsheet & Database Ops
Connects
Google SheetsOpenAIGoogle GeminiAnthropic

The problem it solves

You're running AI agents that call OpenAI, Google, or Anthropic behind the scenes, but you have no easy way to see how much each run actually costs. Token usage isn't obvious from a normal invoice, so costs can creep up without warning. Tracking this by hand for every execution isn't realistic.

Who it fits

Businesses running AI agents who want visibility into their ongoing AI costs.

How it works

  1. Runs automatically after your AI agent finishes a task
  2. Pulls the token usage data from that execution
  3. Records the token counts in Google Sheets
  4. Calculates the estimated dollar cost using built-in formulas
What you get

AI spend you can see at a glance

You get a running log of exactly what your AI tools are costing you, updated automatically after every run.

What you get

A running spreadsheet log of AI token usage and estimated costs per run.

What you need

A Google Sheets account and API access to your AI provider, such as OpenAI, Google, or Anthropic.

We can build this. But should you?

The hard question is not how to build it. It is whether this is the right thing to build first.

That is what a Fractional Chief AI Officer figures out with you, before anyone writes a line of code.

Let's Talk Strategy

Related automations

Back to the AI Playbook