← Reports
Report preview
Buy report
01/00·Title
Agentic Coding Economics · Engineering Research · June 2026

OpenClaw Token Optimization: Bootstrap Budgets and Gateway Cost

Chander Dhall
Chander Dhall Builder • Leader • Speaker

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.

Snapshot

The highest-value controls are visible in the docs.

The report keeps only source-backed metrics and treats savings as workload-dependent unless the cited source gives a number.

Source-backedcontinuation-skip

Skips workspace bootstrap reinjection on safe continuation turns.

Source-backed20,000

Default per-file workspace bootstrap cap in characters.

Source-backed60,000

Default total bootstrap cap across workspace files.

Source-backed1200 px

Default longest-side image cap before provider calls.

Cost Surface

Token waste usually comes from repeated context, not one bad prompt.

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.

Decision Rule

Short durable context, scoped tools, measured output, and deliberate compaction beat blanket context hoarding.

Risk

Always-on instructions

Large memory files and broad project docs are paid for repeatedly.

Control

Scoped surfaces

Expose only the tools, files, and context needed for the current workflow.

Discipline

Measure first

Usage commands and context inspection prevent guesswork.

Primary Lever

Context Injection Is the Primary Switch

The default is always. continuation-skip changes repeated context behavior.

What changes

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.

Controls

The practical levers are small enough to operate.

contextInjection: continuation-skip

Skips bootstrap reinjection on safe continuation turns.

Cuts repeated static context in normal back-and-forth sessions.

contextInjection: never

Disables workspace bootstrap and context-file injection every turn.

Use only for specialized agents with custom context engines.

bootstrapMaxChars

Default 20,000 chars per bootstrap file.

Prevents one large workspace file from dominating the prompt.

Source-backed number
60,000

Default total bootstrap cap across workspace files.

Do not convert this into a universal savings percentage. The report keeps the number tied to its original source and context.

Decision Matrix

Controls map to operating decisions.

LeverDocumented behaviorOperating decisionSource
contextInjection: continuation-skipSkips bootstrap reinjection on safe continuation turns.Cuts repeated static context in normal back-and-forth sessions.[openclaw-config]
contextInjection: neverDisables workspace bootstrap and context-file injection every turn.Use only for specialized agents with custom context engines.[openclaw-config]
bootstrapMaxCharsDefault 20,000 chars per bootstrap file.Prevents one large workspace file from dominating the prompt.[openclaw-config]
bootstrapTotalMaxCharsDefault 60,000 chars across bootstrap files.Caps total workspace prelude cost.[openclaw-config]
startupContext limitsStartup context has separate budgets.Keep daily memory startup excerpts bounded.[openclaw-config]
Workflow

Lowest-waste default config

The operating pattern keeps useful context close and noisy context out of the recurring prompt path.

1

Inspect context first

Run /status, /usage, /context list, and /context detail before changing caps.

2

Shorten bootstrap files

Keep bootstrap files short and move detailed logs into retrievable memory files.

3

Use agent profiles

Use per-agent profiles: lean workers, richer main agent, minimal background jobs.

4

Disable unused skills

Disable unused skills and keep skill descriptions concise.

5

Lower image budgets

Lower image dimensions and quality for image-heavy runs.

Integrity

Claims Removed or Downgraded

The older report relied on exact baseline prompt-token estimates, old issue numbers, and broad savings percentages that were not preserved as current facts.

Approval rule

No fabricated stats, no fake case studies, no universal savings claims without a source-backed measurement path.

Source

[openclaw-config]

OpenClaw agent configuration

Source

[openclaw-context]

OpenClaw context concepts

Source

[openclaw-token-use]

OpenClaw token usage reference

Full report · OpenClaw economics

Make context injection a visible cost decision.

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.

© 2026 Chander Dhall Methodworks, LLC. All rights reserved.
Get the complete report

Make the hidden context surface operable.

The full report gives operators a clear path from configuration to measured behavior.

  • Context injection and bootstrap controls
  • Memory, skills, and image-budget guidance
  • Decision matrix for agent profiles