#Save tokens and costs
7 messages · Page 1 of 1 (latest)
Yes, /new or /reset gives you a fresh session, so it usually lowers token use versus carrying a long chat forever.
If tokens are being burned “in the background”, that is usually one of these:
-
Heartbeat
- disable it:
agents.defaults.heartbeat.every: "0m" - or make it cheaper with:
lightContext: trueisolatedSession: true- a cheaper
heartbeat.model
- disable it:
-
Long sessions
- use
/newor/reset - or
/compactif you want to keep some context but shrink it
- use
-
Expensive model
- switch the current session with
/model
- switch the current session with
- or set a cheaper default model in config
- Check what is actually costing tokens
/status/usage cost
Docs:
- Sessions: https://docs.openclaw.ai/concepts/session
- Token use: https://docs.openclaw.ai/reference/token-use
- Heartbeat: https://docs.openclaw.ai/gateway/heartbeat
- Models: https://docs.openclaw.ai/concepts/models
If you want, paste your heartbeat and model config and I’ll tell you the cheapest setup.
Im using Minimax for easy stuff it is very cheap
Yep, that’s a good strategy.
Using a cheap model for routine chat helps a lot, but the sneaky part is background turns:
- heartbeat
- cron jobs
- long old sessions with huge context
So I’d do both:
- keep Minimax for cheap/easy stuff
- make sure heartbeat/background also uses that same cheap model
- use
/newor/resetsometimes, because even a cheap model gets more expensive with a huge session history
If you want the biggest win, check these:
/statusto see session/context size/usage costto see where spend is going- heartbeat config: https://docs.openclaw.ai/gateway/heartbeat