Prerequisites
- Node.js v24.16 or later, or v26.1 or later. Node.js v25 isn’t supported.
- OpenClaw
2026.9.8or later. - A CoreWeave Forge account and API key.
- An Agent Lens project (
[YOUR-TEAM]/[YOUR-PROJECT]) to receive traces.
Install the plugin
Complete the following steps to install the plugin, register it with the OpenClaw gateway, and confirm that traces reach your Agent Lens project.1
Install the package
This plugin is separate from the
weave-openclaw plugin documented in the Weave guide. Its plugin ID is forge, and its config entry and status command use that name. If you installed weave-openclaw, disable and uninstall it before you install this plugin, so the two don’t send duplicate traces. Move your settings from plugins.entries.weave to plugins.entries.forge and replace weave with forge in plugins.allow. The configuration fields and credentials are unchanged.2
Set your API key
Replace OpenClaw also loads
[YOUR-API-KEY] with your API key, and then export it:WANDB_API_KEY from ~/.openclaw/.env. See the configuration reference for other ways to supply the key.3
Add the plugin to your gateway config
The default config location is Set
~/.openclaw/openclaw.json (JSON5, which allows comments and trailing commas). Run openclaw onboard to scaffold one if you don’t have it yet.
Update [YOUR-TEAM] and [YOUR-PROJECT] for your project.hooks.allowConversationAccess to true so OpenClaw runs the plugin’s content-bearing hooks, llm_input and agent_end. Without it, model-call spans have no prompt text or system instructions. Trace structure, tool calls, and token and cost totals still come through diagnostic events.OpenClaw’s top-level diagnostics.enabled setting is true by default. Setting it to false turns off the diagnostic events the plugin relies on, so no traces are sent.4
Restart the gateway and verify
Restart the OpenClaw gateway:Then run
/forge status in any OpenClaw chat surface. When the plugin reports running, it’s active. Traces appear in your Agent Lens project at https://forge.coreweave.com/agent-lens/[YOUR-TEAM]/[YOUR-PROJECT] within a few seconds of your first agent run. The dashboard line in the status output links to the same project in Weave, which shares the trace data.View OpenClaw traces in Agent Lens
Once the plugin is active, each agent session produces a trace you can inspect in the Agent Lens UI. After running at least one agent session, open your project in the Agent Lens UI:- Navigate to CoreWeave Forge, select Agent Lens from the product menu, and then select your project in the project selector at the top of the side menu.
- In the side menu, select Conversations.
- Select the Conversations tab to view all agent conversations saved for your project.
- Select a conversation to inspect the full conversation tree.
Configuration reference
This section is the full configuration reference for theforge plugin entry in openclaw.json.
Only entity and project are required. The plugin looks for an API key in this order:
- The
apiKeyfield in the plugin config, as aSecretRefobject or a literal string. For security purposes, we do not recommend using literal strings. - The
WANDB_API_KEYenvironment variable, which OpenClaw also loads from~/.openclaw/.env. - A
~/.netrcentry forapi.wandb.ai, populated bywandb login.
env SecretRef works without extra setup. A file or exec SecretRef requires a matching secrets.providers entry in your gateway config. See OpenClaw secrets management.
captureContent is true by default. When captureContent is true, the plugin also emits input and output messages, tool arguments, and tool results following the gen_ai.input.messages and gen_ai.output.messages payload shape. The plugin stamps subagents, compaction events, loop detection, retry attempts, and context sizing as additional attributes and span events.
Set captureContent to false to turn off capture for compliance or retention policies.
Troubleshooting
If traces aren’t reaching Agent Lens or content fields are empty, use the following sections to diagnose the most common causes. The gateway log is the terminal output from the process runningopenclaw, or your process manager’s log stream if you daemonized it.
Plugin loaded but no spans show up
- Run
/forge status. If lifecycle isdisabled,config-error, ornot-started, the plugin didn’t activate. Check the gateway log forforge: entity is required,forge: project is required, orforge: init failed. - Check you haven’t set
diagnostics.enabled: falsein the gateway config. This field should betrue. - Confirm the entity and project match the Agent Lens project you’re inspecting.
/forge statusshould printproject=[YOUR-TEAM]/[YOUR-PROJECT]. - Confirm the auth source.
/forge statusshould printauth=.... If it saysWANDB_API_KEY envbut you set the key in a different environment variable, the plugin is reading the wrong key.
Spans land but input text is empty
Look in the gateway log for:plugins.entries.forge.hooks.allowConversationAccess: true in your config and restart the gateway. Span structure and cost and usage data come through diagnostic events, not hooks, so those keep working even when allowConversationAccess is false.