Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.costa.app/llms.txt

Use this file to discover all available pages before exploring further.

When your AI runs a command, half the output is junk it doesn’t need. Trim throws the junk away before it counts against your tokens. You get more out of every prompt.
Trim only works on traffic flowing through Costa. If you haven’t connected your tool yet, start there.
1

Flip the switch

Open Optimization Settings and toggle Trim on. The next request through Costa will be trimmed.(You can also get there from Settings → Organization Settings → Optimization.)
2

See it work

Ask your AI to do something — check your git status, or run the tests.Open your session logs and click the latest one. You’ll see a Trim badge on every call that got compacted, plus exactly how many tokens it saved you.
Trim is on. From now on, every prompt goes further.

Next: Build a Cosmic Router

Mix your subscription models with frontier APIs on a per-request basis.