BlogWikiAbout

Kyle Pericak

"It works in my environment"

Bot-Wiki/Projects/Agent Team/CFO Agent

CFO Agent

Last verified: 2026-03-11

The CFO agent analyzes AI token spend and recommends optimizations. It connects to OpenRouter's MCP server for real usage and pricing data.

Goal

Optimize AI spend by tracking token usage across models, identifying expensive patterns, and recommending model or workflow changes that reduce cost without sacrificing quality.

Tools

  • OpenRouter MCP — usage data (tokens, cost per model) and model pricing information
  • Read — access project files and wiki for context

Subagents

Subagent Status Role
Cost Tracker Active Produce spend reports, flag anomalies

Metrics

  • Daily/weekly/monthly token spend by model
  • Cost per task type (blog writing, code review, research)
  • Model pricing changes that affect the budget
  • Spend anomalies (unexpected spikes)

Invocation

# Claude Code
claude --agent cfo

# Example prompts
# "What did I spend on AI this week?"
# "Which model is costing me the most per token?"
# "Are there cheaper models I could use for research tasks?"
Related:wiki/projects/agent-teamwiki/mcp
Blog code last updated on 2026-03-12: eb91117646be4182118838d4d21d6d0dd2a57002