> ## Documentation Index
> Fetch the complete documentation index at: https://docs.budecosystem.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cost Optimiser

> Reduce serving cost with the Cost Optimiser presets and cache controls.

**Who:** someone with access to the deployment · text deployments

**Where:** Deployment → Cost Optimiser

The Cost Optimiser lowers the token cost of the traffic your agents send through a deployment. It has four pages: **Savings**, **Optimizations**, **Cache** and **Settings**.

1. Open **Cost Optimiser** → **Optimizations**.
2. Choose a preset.
3. Or switch individual optimisations on and off. They are grouped as *Safe: cannot change your agent's answers* and *Careful: can change your agent's answers*; each card's details explain what it changes and the trade-off.
4. Click **Save** and confirm.

| Preset | What it does |
| - | - |
| **Measure only** | Changes nothing. Shows what you would save. Best for a first look. |
| **Safe savings *(Recommended)*** | Only lossless changes: stable ordering, canonical request bytes, compact tool output. The model reads the same information, so your agent's answers cannot change. |
| **Balanced** | Safe, plus pruning of stale tool output that keeps key literals (ids, paths, numbers) in view. What is pruned cannot be recovered, so this may affect accuracy. |
| **Maximum savings** | Balanced, plus more aggressive query-aware condensation, keeping only the start and end of long tool output, and steering the model toward shorter answers. Accepts an accuracy impact: test before you ship it. |

Examples of *safe* optimisations: reusing identical requests, collapsing simultaneous duplicates, tightening tool-output formatting, fixing tool order, tidying tool definitions, standardising request formatting, compressing stored answers, and replaying identical openings so the provider's prompt cache hits. *Careful* ones include trimming long tool output, trimming tool instructions and asking for shorter answers.

| Page | What it shows |
| - | - |
| **Savings** | What each optimisation saved over a date range you pick: total saved, cost trend, cache hit rate, requests, bytes removed, and what happened to each request. Savings are estimates of serving cost, not your bill. |
| **Optimizations** | The presets and the individual switches above. |
| **Cache** | Browse cached entries and sort by last used or times used. Select entries to **Extend TTL**, **Delete selected** or **Delete all expired**; a row's menu can keep an entry exempt from eviction. |
| **Settings** | **Rules:** *How long answers stay cached*, in hours (longer means more savings and staler answers; most teams start at 24). **Activity log**: a record of changes. **Danger zone**: **Clear cache** empties this deployment's cache. |

> [!TIP]
>
> The prices savings are measured against now live in **Settings → Pricing** on the deployment, not here.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.