A source-backed engineering report on OpenClaw’s persistent-gateway token economics: continuation-skip injection, bootstrap caps, startup context, image budgets, and per-agent profiles.
The report keeps only source-backed metrics and treats savings as workload-dependent unless the cited source gives a number.
Skips workspace bootstrap reinjection on safe continuation turns.
Default per-file workspace bootstrap cap in characters.
Default total bootstrap cap across workspace files.
Default longest-side image cap before provider calls.
OpenClaw is a persistent gateway, so token spend can come from chat turns, channel routing, heartbeat or startup runs, memory work, tool calls, image processing, skills, and delegation.
Short durable context, scoped tools, measured output, and deliberate compaction beat blanket context hoarding.
Large memory files and broad project docs are paid for repeatedly.
Expose only the tools, files, and context needed for the current workflow.
Usage commands and context inspection prevent guesswork.
The default is always. continuation-skip changes repeated context behavior.
OpenClaw documents agents.defaults.contextInjection as always by default. continuation-skip skips workspace bootstrap reinjection on safe continuation turns while preserving rebuilds for heartbeat runs and post-compaction retries.
Cuts repeated static context in normal back-and-forth sessions.
Use only for specialized agents with custom context engines.
Prevents one large workspace file from dominating the prompt.
Do not convert this into a universal savings percentage. The report keeps the number tied to its original source and context.
| Lever | Documented behavior | Operating decision | Source |
|---|---|---|---|
| contextInjection: continuation-skip | Skips bootstrap reinjection on safe continuation turns. | Cuts repeated static context in normal back-and-forth sessions. | [openclaw-config] |
| contextInjection: never | Disables workspace bootstrap and context-file injection every turn. | Use only for specialized agents with custom context engines. | [openclaw-config] |
| bootstrapMaxChars | Default 20,000 chars per bootstrap file. | Prevents one large workspace file from dominating the prompt. | [openclaw-config] |
| bootstrapTotalMaxChars | Default 60,000 chars across bootstrap files. | Caps total workspace prelude cost. | [openclaw-config] |
| startupContext limits | Startup context has separate budgets. | Keep daily memory startup excerpts bounded. | [openclaw-config] |
The operating pattern keeps useful context close and noisy context out of the recurring prompt path.
Run /status, /usage, /context list, and /context detail before changing caps.
Keep bootstrap files short and move detailed logs into retrievable memory files.
Use per-agent profiles: lean workers, richer main agent, minimal background jobs.
Disable unused skills and keep skill descriptions concise.
Lower image dimensions and quality for image-heavy runs.
The older report relied on exact baseline prompt-token estimates, old issue numbers, and broad savings percentages that were not preserved as current facts.
No fabricated stats, no fake case studies, no universal savings claims without a source-backed measurement path.
OpenClaw agent configuration
OpenClaw context concepts
OpenClaw token usage reference
Use the documented controls for bootstrap caps, continuation behavior, memory, skills, image budgets, and agent profiles before scale turns context into recurring spend.
A practical report for teams operating OpenClaw as a persistent gateway.
The full report gives operators a clear path from configuration to measured behavior.