Skip to content

Latest commit

 

History

History
524 lines (415 loc) · 32 KB

README.md

File metadata and controls

524 lines (415 loc) · 32 KB

NVIDIA NeMo Fabric OpenClaw Adapter

This adapter supports two lifecycle shapes:

  • Managed runtime: Each NeMo Fabric runtime owns an isolated local OpenClaw Gateway. Use this shape for evaluation, benchmark runs using the Harbor framework, and other bounded jobs.
  • Service: One prepared or attached Gateway serves multiple independent NeMo Fabric runtimes. OpenClaw chat channels run beside the NeMo Fabric runtime API and keep their own OpenClaw sessions.

NeMo Fabric-originated invocations use the Gateway's OpenAI-compatible Chat Completions endpoint. Telegram and other channels connect directly to OpenClaw; they do not pass through a NeMo Fabric runtime.

The following diagram shows multiple NeMo Fabric runtimes sharing one OpenClaw Gateway while Telegram uses a separate channel path:

OpenClaw service architecture with multiple NeMo Fabric runtimes and Telegram channels

Install

Install the adapter in every NeMo Fabric environment:

pip install "nemo-fabric[openclaw]"

Managed runtimes and NeMo Fabric-owned services also require the pinned OpenClaw version:

# Requires Node.js >=24.22.1 <25 or >=26.12.1, and npm 11.16+.
npm install --global openclaw@2026.9.34 --allow-scripts=openclaw

An attachment to a caller-owned Gateway does not require a local OpenClaw executable. OpenClaw is not a Python dependency of the adapter. For managed or prepared use, if openclaw is not in PATH, set harness.settings.openclaw_command to the absolute path of the executable. A bare command is resolved through PATH; a relative path containing a directory is resolved from the NeMo Fabric base directory.

Upgrade a Gateway With Retained State

When upgrading a caller-owned Gateway from OpenClaw 2026.9.4, stop the Gateway and run openclaw backup create --verify with the Gateway's existing OPENCLAW_STATE_DIR and OPENCLAW_CONFIG_PATH before upgrading. The backup must include the active config, its include files, and all configured agent directories, including paths outside the state directory. Protect the archive because it can contain credentials.

Before upgrading, check the backup result and manifest for the active config, its include files, and every configured agent directory. For paths marked covered, confirm that the archive contains the data under a parent directory. Fix missing required paths and rerun the backup. Continue with the upgrade after confirming that all required data is backed up.

Before migration, copy every legacy session directory while the Gateway is stopped. Include sessions.json, .jsonl transcripts, and session directories outside OPENCLAW_STATE_DIR. The backup command excludes legacy .jsonl transcripts. Protect these copies and keep them with the verified archive for rollback.

Run openclaw doctor --fix with the 2026.9.34 executable and the same path settings. The command imports legacy sessions.json files and JSONL session data into each agent's SQLite database. Restart the Gateway after the command succeeds. Keep the verified backup for rollback.

Managed runtimes and NeMo Fabric-owned services use temporary state by default. Set runtime.keep_state=true to retain the native Gateway home across restarts.

Configuration

Supported Normalized Configuration

The adapter supports normalized model configuration, replacement system instructions, workspace, skills, tool policy, and MCP servers. Refer to the OpenClaw adapter descriptor for the authoritative field-level contract.

The adapter maps these fields into a generated openclaw.json before starting the Gateway. A non-empty tools.enabled list maps to tools.allow, an empty list maps to a wildcard tools.deny policy, and tools.blocked maps to tools.deny. It uses a generated one-time token, loopback binding, and an isolated OpenClaw state directory. Managed-runtime shutdown stops the Gateway and removes its temporary configuration. Retained native state remains available when runtime.keep_state=true.

OpenClaw connects MCP servers per session when a run starts. A server that cannot be reached is skipped and the run continues with the tools of the remaining servers; OpenClaw retries the server on a later run. After each invocation of a managed runtime, the adapter reads OpenClaw's tools.effective inventory for the session and reports the servers OpenClaw could not use under output.mcp.unavailable_servers (name, transport, and a reason of failed or timed_out). The adapter writes a warning to standard error the first time a server is reported unavailable in a runtime. Error messages are omitted because they can carry credentials, and OpenClaw does not expose an error type. The report reflects the latest attempt, so a recovered server disappears from later results. Reading the inventory runs one OpenClaw CLI command per invocation when MCP servers are configured. Runtimes that connect to a prepared service do not report MCP availability.

For custom providers, set models.<role>.base_url; the adapter generates an OpenClaw custom provider using the openai-completions API adapter, or the OpenClaw request adapter named by models.<role>.api, such as anthropic-messages. Set api_key_env when that provider requires an API key. api requires base_url and is unavailable when attaching to a deployment-owned service.

If that endpoint supports stream_options.include_usage, set models.<role>.settings.supports_usage_in_streaming to true. This maps to the model's native compat.supportsUsageInStreaming setting; it requests usage from the model endpoint, separately from the Gateway's trailing usage chunk. Set it to false for endpoints that reject streaming usage, or omit it to retain OpenClaw's endpoint capability detection. This setting requires base_url and is unavailable when attaching to a deployment-owned service.

OpenClaw 2026.9.4's Chat Completions Gateway can return aggregate usage or fall back to the last model call, and synthesizes zero counters when usage is missing. The response does not identify which source it used. The adapter therefore leaves standard complete usage counters unknown and preserves the reported counters under usage.extensions["nvidia.fabric.openclaw.usage_evidence.v1"].observed, with scope_unverified in gaps. Missing usage adds missing_usage; all-zero observations add zero_unverified. These observations do not establish complete accounting for retries, compaction, child agents, or background work.

Skills

The adapter supports skills.paths, skills.directories, skills.bundled, and skills.duplicates. skills.paths is unchanged: each path must be a folder that holds SKILL.md, and is passed, resolved, to skills.load.extraDirs. The mount, not NeMo Fabric, makes a skill read-only. Each comment in this example names one setup; the whole list is the mixed setup:

skills:
  directories:
    # A folder, read-only: mount it read-only; every skill in it loads.
    - folder: /mnt/team-skills
    # Chosen skills, read-only: mount each skill read-only, one skill entry each.
    - skill: /mnt/release-review
    - skill: /mnt/incident-triage
    # A folder, read-write: skills written into it load at the next start.
    - folder: /mnt/agent-skills
  # Mixed: one list holds any of these; last_wins lets a later entry win.
  duplicates: last_wins
  bundled:
    include: [github, weather]

Skills the agent installs through OpenClaw itself don't go to a directories folder, and are lost at stop until state is kept across restarts (#578); the OpenClaw guide says where they go.

At start, the adapter reads each skill's front matter with OpenClaw's own parser, through the node that runs OpenClaw, and runs openclaw skills list to confirm what loads. Configure Skills describes the fields, the common setups, start checks, the run report, and how OpenClaw differs from other harnesses. The OpenClaw guide covers OpenClaw's skip reasons, what happens when the parser can't run, precedence, and bundled-skill handling.

Harness Settings

Only OpenClaw's default openclaw agent runtime is supported. The following settings are specific to the OpenClaw adapter:

Setting Default Description
openclaw_command openclaw Executable name or path.
agent_id default Selected agent for SDK and managed native clients.
channel_config None OpenClaw-native channels and bindings for a prepared service. Every binding must target agent_id. Managed runtimes reject this setting.
port_range Random available range Inclusive consumer-allocated range with start and end fields; it must span at least 111 ports.
interfaces.dashboard None Serve the Control UI on a managed runtime, with an exact port, optional enabled, and public_origins; refer to the dashboard guide.
interfaces.terminal None Attach the native terminal to the existing Gateway, without a separate port. Refer to the terminal guide.
startup_timeout_seconds 60 One deadline for all of start, from checking the openclaw command to the Gateway becoming ready; at most 75 seconds.
shutdown_timeout_seconds 15 Graceful Gateway shutdown timeout. OpenClaw's descriptor allows 30 seconds for the complete adapter stop. Overrides must leave time for cleanup within that limit. Stop reports an error if the Gateway process is still running after cleanup.
connect_timeout_seconds 10 Local HTTP connection timeout.
read_timeout_seconds None Local HTTP response timeout. When unset, the invocation timeout bounds the response.
agents.defaults.heartbeat.every OpenClaw native default Recurring heartbeat interval with units, such as 30m; 0m disables the recurring cadence but not event-driven turns.
agents.defaults.compaction.memoryFlush.enabled OpenClaw native default Pre-compaction memory flush turn. Compaction itself still runs.
tools.exec.notifyOnExit OpenClaw native default System event and heartbeat when a backgrounded exec process exits.
tools.toolSearch OpenClaw native default Tool search for large tool catalogs.
tools.codeMode OpenClaw native default Code Mode, which can take precedence over tool search and exposes only exec and wait; do not combine it with blocking exec.
tools.web.fetch.ssrfPolicy.allowRfc2544BenchmarkRange OpenClaw native default (blocked) Lets web_fetch, image, and pdf connect to 198.18.0.0/15; set it only behind a fake-IP proxy that owns the range and enforces its own destination policy.
tools.web.fetch.ssrfPolicy.allowIpv6UniqueLocalRange OpenClaw native default (blocked) The same opt-in for fc00::/7.
plugins.bundled.entries.memory-core.config.dreaming.enabled OpenClaw native default Scheduled dreaming in the memory-core plugin.
plugins.bundled, plugins.external None Plugins to turn on or off; refer to Plugins.

The agents and tools settings use OpenClaw's native structure, and plugins maps onto it. The adapter merges only the fields you set into the generated openclaw.json for managed runtimes and prepared services, beside the generated agents.defaults, tools.allow, tools.deny, and adapter-owned plugin entries, without replacing generated keys. Omitting a field preserves the current behavior. harness.settings.tools is separate from the normalized top-level tools.enabled and tools.blocked selectors. Attached Gateways reject these settings. These controls do not stop context compaction or correlate concurrent sessions, and they do not add NeMo Relay support; refer to Native Gateway Controls.

OpenClaw's derived-port mapping uses base_port + 2 for browser control and allocates browser CDP ports from base_port + 11 through base_port + 110. Set port_range when the consumer reserves a port range before configuring NeMo Fabric; the adapter selects a base whose complete derived footprint fits inside that range. The adapter verifies only that base_port and base_port + 2 are available before startup. OpenClaw allocates the CDP ports on demand instead of reserving the complete range, so the adapter cannot guarantee that those ports will still be available when OpenClaw needs them. Keep the configured range reserved for the lifetime of the runtime when using OpenClaw browser features.

With native interfaces enabled, one Gateway owns all four client paths. A small adapter-owned plugin adds the configured instruction for the selected agent through the public before_prompt_build hook while preserving OpenClaw's native prompt and tool guidance. SDK requests omit duplicate instruction injection in that mode; SDK-only and service behavior are preserved. The existing replace mode selects the Fabric instruction without replacing OpenClaw's internal prompt. Model, workspace, tools, MCP, and skill configuration are shared; native responses remain native.

Startup verifies the loaded hook through an authenticated, model-free probe before publishing connection files. Missing, blocked, or mismatched hooks fail with openclaw_shared_configuration_unavailable. The plugin requires both allowConversationAccess and allowPromptInjection: pinned OpenClaw gates before_prompt_build behind both permissions for external plugins.

After readiness, private interfaces/gateway.json discovery references dashboard.token or gateway.token. Terminal selection adds an executable interfaces/terminal and terminal.running marker; the marker is removed first on stop. The launcher uses private client configuration and an environment SecretRef, not token arguments. Terminal attachment currently requires POSIX. Pinned TUI /quit can use a native exit-code-130 fallback while the Gateway stays usable.

Refer to the four-path architecture and repeatable examples. Relay telemetry, ATIF/ATOF export, and native OpenTelemetry are not supported.

With native browser or terminal access enabled, runtime activity is unknown; healthy endpoints can still pass normalized checks. SDK invocation state alone cannot account for native work.

Plugins

harness.settings.plugins.bundled.entries turns plugins that ship with OpenClaw on or off. harness.settings.plugins.external lists prepared plugin folders in paths and their plugins in entries. At start, every entry with enabled: true must be loaded by the Gateway. With runtime.keep_state=true, plugins the agent installs stay after a restart. Refer to Plugins.

Cold Resume

Set runtime.keep_state=true and configure runtime.artifacts to retain the native OpenClaw home. Save runtime.session_ref and pass that reference to select the same conversation after stopping the runtime:

from nemo_fabric import Fabric, RunRequest

fabric = Fabric()
async with await fabric.start_runtime(config, base_dir=base_dir) as runtime:
    reference = runtime.session_ref
    await runtime.invoke(input="Remember the deployment checklist.")

async with await fabric.start_runtime(
    config, base_dir=base_dir, session_ref=reference
) as resumed:
    if resumed.recovery_warnings:
        # Inspect native and external state before acknowledging recovery.
        result = await resumed.invoke(
            request=RunRequest(
                input="Continue after inspection.", acknowledge_recovery=True
            )
        )
    else:
        result = await resumed.invoke(input="Continue the checklist.")

Omitting session_ref creates a fresh conversation, even when storage contains earlier conversations. The saved reference contains the native session UUID and adapter identity. Each replacement receives a new NeMo Fabric runtime ID. The Gateway loads conversation history through supported native session methods. NeMo Fabric sends only the new turn and never replays prior prompts or tool calls.

The retained home preserves native conversations, indexes, installed skills, caches, credentials, and channel state that OpenClaw stores there. Workspace memory files such as MEMORY.md and memory/ remain in the configured workspace. Retain that workspace and any external native directories when replacing a sandbox. Generated configuration and Gateway authentication are recreated for each managed start. Protect and mount the complete retained storage root when replacing a sandbox. The reference must resolve within that storage. Missing sessions, changed native identity, and active native work fail startup. A native conversation reset can invalidate an older reference.

Retained session checks share one authenticated Gateway WebSocket connection per runtime. Model requests continue through the existing Chat Completions endpoint.

When a newly started managed Gateway finds an interrupted turn still marked as running, the adapter asks the Gateway to confirm that no work is active. The same conversation opens with a recovery warning. Connected service runtimes continue to reject sessions marked as active.

An interrupted turn can have unknown external effects. When native history cannot confirm completion, startup returns recovery_warnings and invocation requires acknowledge_recovery=True after inspection. Earlier work is never automatically retried. An invocation whose native completion cannot be confirmed reports failed with session_recovery_required and preserves the available response for inspection.

Gateway HTTP errors, provider failures, and request timeouts also require recovery acknowledgment before the next retained invocation, including within a live runtime. A failed response can follow tool execution or other external effects. Inspect the native session and external state before passing acknowledge_recovery=True.

NeMo Fabric retains known unresolved tool calls in its completion record. A gap in the Gateway's recent history window also requires recovery acknowledgment. New work can confirm completion after acknowledgment when its history remains visible.

Keep native session resets separate from SDK invocations. The adapter checks the native session UUID around history reads and before dispatch. OpenClaw 2026.9.34 has no expected-UUID condition on Chat Completions requests, so a reset after the final check can still redirect a turn. The remaining dispatch race is tracked in #638.

A prepared service keeps the Gateway and retained-state lock until release. Stopping a connected runtime closes that runtime's client. The service continues serving native chat channels. A retained namespace allows one connected runtime at a time. Failed Gateway cleanup retains ownership and can be retried before a replacement starts. Caller-owned attached services reject retained sessions because the current service reference cannot verify a native storage boundary.

With retention enabled, the dashboard token lives at <state_dir>/interfaces/dashboard.token, where state_dir is the retained home supplied by NeMo Fabric. Each managed start rotates the token and removes stale token material, including when the dashboard is disabled. The token is private and removed on stop. To remove retained data, stop all runtimes, release any owned service, then remove the selected retained home and its NeMo Fabric session metadata from the artifact storage.

Gateway Health

Use Fabric.check() with a prepared or attached service handle to observe the Gateway before starting any NeMo Fabric runtimes. Gateway checks use the local SDK and the selected Gateway.

Level Native observation
live GET /healthz returns the expected liveness response.
active Authenticated GET /v1/models returns a valid model inventory.
ready GET /readyz reports native Gateway readiness, including configured channel health.

Requesting ready evaluates live, active, and ready in order under one deadline, stopping at the first nonpassing result. A configured channel failure can fail Gateway readiness while the first two levels pass. Native readiness follows OpenClaw's channel policies and can use cached observations.

Check an owned Gateway with the following code, or pass the handle returned by attach_service():

from nemo_fabric import CheckRequest, Fabric

fabric = Fabric()
async with await fabric.prepare_service(config, base_dir=base_dir) as service:
    report = await fabric.check(
        service=service.handle,
        request=CheckRequest(
            scope="service", service_id=service.service_id, level="ready"
        ),
    )
    print(report.outcome)

Checks can run while connected runtimes are invoking. Timeouts return unknown/probe_timeout. Release during a check returns unknown/observation_changed; checks after release return unknown/service_unavailable.

Runtime Health

Use a Gateway service check before starting runtimes or to monitor a shared Gateway that serves several runtimes. Use a runtime check after starting a runtime to verify the selected agent and Chat Completions endpoint. A Gateway can pass active while a runtime fails active: for example, the Gateway returns a valid model inventory that no longer includes the runtime's selected agent. Both ready checks include configured channel health.

Use runtime-scoped Fabric.check() to check the agent selected by a NeMo Fabric runtime. These checks support owned Gateways and runtimes connected to a prepared or attached service. The SDK uses the same request for local and OpenShell environments; OpenShell forwards the request through fabric-agent-ctl check.

Level Native evidence
live GET /healthz returns the liveness response. An owned Gateway process is running.
active GET /startupz confirms startup; authenticated GET /v1/models includes openclaw/<agent_id>; GET /v1/chat/completions returns the native 405 response with Allow: POST.
ready GET /readyz returns HTTP 200 with ready: true, including configured channel health.

The GET /v1/chat/completions check confirms that the Chat Completions endpoint is enabled. The model inventory can remain available through the Responses API when Chat Completions is disabled. Malformed native responses return unknown/probe_error; a missing selected agent or disabled request endpoint returns failed/endpoint_unavailable. An interface disabled after an invocation failure cannot pass active.

Check a runtime with the following code:

from nemo_fabric import CheckRequest, Fabric

fabric = Fabric()
environment = await fabric.prepare_environment(config, base_dir=base_dir)
try:
    async with await fabric.start_runtime_in(
        config, environment, base_dir=base_dir
    ) as runtime:
        report = await fabric.check(
            environment=environment,
            request=CheckRequest(
                scope="runtime", runtime_id=runtime.runtime_id, level="ready"
            ),
        )
        print(report.outcome)
finally:
    await fabric.release_environment(environment)

Levels run in order under one deadline and stop at the first nonpassing result. A busy runtime can pass; a timeout returns unknown/probe_timeout. Reported runtime activity covers NeMo Fabric invocations. Stop or ownership changes invalidate observations.

Use a NeMo Fabric-Owned Service

prepare_service() maps the normalized FabricConfig to openclaw.json, starts one Gateway, and returns a process-local service handle. Starting a runtime with that service creates a separate NeMo Fabric runtime and OpenClaw session without starting another Gateway.

from nemo_fabric import Fabric

fabric = Fabric()
async with await fabric.prepare_service(config, base_dir=base_dir) as service:
    async with await fabric.start_runtime(
        config,
        base_dir=base_dir,
        service=service,
    ) as runtime:
        result = await runtime.invoke(input="Review the workspace changes.")

service.handle contains sanitized identity and connection information. It never contains the Gateway token or channel credentials. The following example shows a sanitized service handle:

{
  "service_id": "service-...",
  "service_binding": "fabric-service-binding-...",
  "adapter_id": "nvidia.fabric.openclaw",
  "service_type": "openclaw_gateway",
  "ownership": "fabric_owned",
  "connection": {
    "gateway_url": "http://127.0.0.1:18789",
    "agent_id": "default"
  },
  "metadata": {
    "openclaw_version": "2026.9.34"
  }
}

You can start multiple runtimes with the same service. Ephemeral runtimes use their runtime_id as the Chat Completions user. Retained runtimes select a native conversation through an explicit session key. Stop all connected runtimes before releasing the service. NeMo Fabric rejects release while a connected runtime is active.

Service handles use a process-local registry. After the service is released, retained conversations can be opened by a new managed runtime or prepared service using the same storage and saved SessionRef. Service handles cannot be reconstructed after the NeMo Fabric process exits.

Attach to a Caller-Owned Gateway

Use attach_service() when another deployment system starts and supervises the Gateway. Supply an endpoint and the name of an environment variable that contains the Gateway token. Do not put the token value in the reference.

from nemo_fabric import Fabric
from nemo_fabric import ServiceReference

reference = ServiceReference.from_mapping(
    {
        "adapter_id": "nvidia.fabric.openclaw",
        "service_type": "openclaw_gateway",
        "connection": {
            "gateway_url": "https://openclaw.example.com",
            "gateway_token_env": "OPENCLAW_GATEWAY_TOKEN",
            "agent_id": "default",
        },
    }
)

fabric = Fabric()
async with await fabric.attach_service(config, reference) as service:
    async with await fabric.start_runtime(config, service=service) as runtime:
        result = await runtime.invoke(input="Review the workspace changes.")

The attached configuration can contain request-level model sampling and a system instruction. Remove deployment-owned model endpoints, API-key references, tools, MCP servers, skills, the OpenClaw command, channel configuration, port range, startup or shutdown timeouts, and the native agents, tools, and plugins harness settings because NeMo Fabric cannot verify or apply those fields to an existing Gateway. Connection and read timeouts and agent_id remain valid client-side settings. Releasing an attachment closes only NeMo Fabric-owned clients and private connection material; it does not stop the Gateway.

Configure Chat Channels on a Prepared Service

Add OpenClaw-native channels and bindings before calling prepare_service(). NeMo Fabric limits every binding to the one agent selected by agent_id; the pinned OpenClaw version validates the nested channel settings. Use SecretRef values instead of putting credentials directly in FabricConfig.

For example, two Telegram bot accounts can route to the same configured agent:

config.harness.settings["channel_config"] = {
    "channels": {
        "telegram": {
            "defaultAccount": "support",
            "accounts": {
                "support": {
                    "botToken": {
                        "source": "env",
                        "provider": "default",
                        "id": "TELEGRAM_SUPPORT_BOT_TOKEN",
                    },
                    "dmPolicy": "allowlist",
                    "allowFrom": ["tg:123456789"],
                },
                "alerts": {
                    "botToken": {
                        "source": "env",
                        "provider": "default",
                        "id": "TELEGRAM_ALERTS_BOT_TOKEN",
                    },
                    "dmPolicy": "allowlist",
                    "allowFrom": ["tg:123456789"],
                },
            },
        }
    },
    "bindings": [
        {
            "agentId": "default",
            "match": {"channel": "telegram", "accountId": "*"},
        }
    ],
}

The channels and bindings values use OpenClaw field names without a NeMo Fabric-specific Telegram schema. OpenClaw starts the channels with the Gateway. Channel messages create OpenClaw-owned sessions and continue without a NeMo Fabric runtime. NeMo Fabric runtimes connected to the same service use separate sessions through Chat Completions.

A prepared service snapshots this configuration when it starts. Use an attached, caller-owned Gateway when channel configuration must be managed or updated independently of the NeMo Fabric service lifecycle.

Cleanup

The adapter runs the Gateway in an isolated process group, continuously checks its startup endpoint, and forwards SIGINT and SIGTERM on POSIX systems. On Linux, the adapter uses setpriv --pdeathsig SIGTERM when setpriv is available and can run, so that the kernel signals the Gateway after abrupt adapter termination. A sandbox that forbids applying capabilities, such as an OpenShell sandbox, makes setpriv fail; the adapter then starts the Gateway without it. Windows uses a kill-on-close Job Object for the Gateway process tree. Without setpriv, Linux has the same catchable-signal protection as macOS but cannot handle SIGKILL.

Test the Service Lifecycle

Run these commands from the repository root. Install the supported OpenClaw version first as described in Install.

Run the adapter and service tests:

uv run pytest tests/adapters/test_openclaw.py
cargo test -p nemo-fabric-core service_hosts_share_across_runtimes_and_require_ordered_release

Run the code-review example with one Gateway and two NeMo Fabric runtimes:

export NVIDIA_API_KEY="<your-key>"
uv run python -m examples.code_review_agent \
  --variant openclaw \
  --service \
  --runtime-count 2 \
  --input "Review the workspace changes."

For a live Telegram check, export the bot token and supply your numeric Telegram user ID. Telegram is available as soon as the service starts and remains available while the Fabric runtimes run. After their invocations finish, the example keeps only the Gateway service alive for two more minutes:

export TELEGRAM_BOT_TOKEN="<your-token>"

uv run python -m examples.code_review_agent \
  --variant openclaw \
  --service \
  --runtime-count 2 \
  --telegram-token-env TELEGRAM_BOT_TOKEN \
  --telegram-allow-from "<your-numeric-user-id>" \
  --service-duration-seconds 120 \
  --input "Review the workspace changes."

When the example reports that the Telegram channel is active, open a direct chat with the bot, send /start if this is your first interaction, and then send a message. You do not need to wait for the Fabric runtimes to stop. To specifically verify that Telegram is independent of those runtimes, send another message after the example reports that they have stopped and before the displayed service-only interval expires. The command prints its final JSON output after the Gateway and channel stop at the end of that interval.

For Harbor, use managed mode so the Gateway and agent tools share the task workspace, as shown in the calculator example.

Software evidence forwards the version returned by existing startup/service checks; it adds no request. Shared-service runtimes retain the service's original capture time when the reported version is unchanged. The reported service version describes OpenClaw only; it does not establish a complete remote installation inventory. Set FabricConfig.provenance.enabled=false before initialization to skip provenance collection.