Cost controls

# Watch every token. Cap every run.

Agent spend is variable by nature, which is exactly why it needs hard edges. Tamtree records what every step costs, rolls it into a ledger, and stops spending when a budget says so — not after the invoice arrives.

-   per-step cost
-   usage ledger
-   budgets
-   kill-switch
-   model routing
-   prompt caching

What you get

## Built into the runtime.

-   ### Cost per step
    
    Every step records its input tokens, output tokens and cost, and the run view updates the running total while it works.
    
-   ### A ledger, not a guess
    
    Step costs roll into a usage ledger, and the dashboard shows spend over time next to the runs that spent it.
    
-   ### Budgets with a kill-switch
    
    When a budget is breached, new runs are refused and runs in flight stop at their next step boundary. It is enforced by the runtime, not by an alert someone has to read.
    
-   ### Model routing
    
    Group models into ordered collections: the first is the default and the rest are failover. Point routine work at a cheaper collection and keep the expensive model for the hard parts.
    
-   ### Waiting costs nothing
    
    A run parked on a human, a schedule or another system holds no compute while it waits, however long that is.
    
-   ### Spend less per call
    
    The stable part of a prompt is marked cacheable where the provider supports it, and long conversations are summarised by a cheaper model before they outgrow the context window.
    

In a run

## A runaway loop, stopped

What cost controls do while a run is actually happening, step by step.

1.  A crew starts looping on a question it cannot answer.
2.  Each turn’s tokens and cost land on the ledger as they happen.
3.  The workspace budget is reached partway through a turn.
4.  The run stops at its next step boundary, and new runs are refused until the budget is raised.
5.  The run view shows exactly which steps spent what, so the fix starts from facts.

Questions

## Cost controls: frequently asked

How does Tamtree track LLM costs?

Every step records its input tokens, output tokens and cost. Step costs roll into a usage ledger, and the dashboard shows spend over time next to the runs that spent it.

What happens when a budget is exceeded?

New runs are refused and runs in flight stop at their next step boundary. It is enforced by the runtime, not by an alert someone has to read.

Can I route routine work to cheaper models?

Yes. Models are grouped into ordered collections, where the first is the default and the rest are failover. Point routine work at a cheaper collection and keep the expensive model for the hard parts.

## Keep exploring

-   [← Previous Knowledge Built-in knowledge bases ground agents on your own documents, and long-term memory carries context across conversations.](https://www.tamtree.io/product/knowledge/)
-   [Next → Pipelines Deterministic workflows for work that should be boring — sync, ETL, billing — on an engine that resumes where it stopped.](https://www.tamtree.io/product/pipelines/)

[All of the product](https://www.tamtree.io/product/)  [How a workflow goes from draft to production](https://www.tamtree.io/how-it-works/)  [Tamtree vs n8n, Zapier and Make](https://www.tamtree.io/blog/tamtree-vs-n8n-zapier-make/)

## Be first in line.

Tamtree is launching soon. Leave an email and we will tell you when early access opens.

NO SPAM · UNSUBSCRIBE IN ONE CLICK
