> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemoclaw/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemoclaw/_mcp/server.

# Understand OpenClaw Context Compaction

> How NemoClaw bounds OpenClaw context compaction for managed inference routes.

NemoClaw configures safeguard compaction for OpenClaw sandboxes that use its managed `inference.local` route, except for Local Ollama routes.
The safeguard bounds each compaction attempt while leaving summarization behavior under OpenClaw's control.

## Compaction Attempt Limit

Each automatic or explicitly requested compaction attempt is limited to 120 seconds.
OpenClaw reports progress while the attempt runs.

After a successful attempt, OpenClaw rotates the active transcript while preserving the most recent turn.

## Compaction Results

The time limit prevents an individual attempt from running indefinitely.
It does not guarantee that compaction succeeds or reduces the active context.

OpenClaw owns the summarization behavior and decides whether the compacted transcript satisfies its requirements.

## When the Setting Applies

NemoClaw generates the safeguard setting when it builds or recreates the sandbox image.
Recreate the sandbox when you need a new image to incorporate changed build-time settings.

For model context-window and output-token limits, refer to [Configure Model Limits](../inference/manage-inference/configure-model-limits).