Skip to main content
OpenClaw can send trace data to BenchGen through the plugin package @benchgen/benchgen-openclaw. This integration captures:
  • One trace per message the agent handles
  • Model calls and tool executions, nested inside that trace
  • A startup handshake trace, tagged benchgen-setup, used to verify the setup

Prerequisites

  • OpenClaw gateway version 2026.7.1 or newer. Older builds skip plugins that require a newer plugin API.
  • Plugin 0.2.0 or newer, for the startup handshake.
  • BenchGen agent credentials — public key, secret key, and endpoint, from the Observability card on the agent’s Overview tab.

1. Command line

1

Install the plugin and restart the gateway

2

Configure the plugin

This command prompts for your public key, secret key, and endpoint, validates that the keys reach BenchGen, enables the plugin, and writes plugin-scoped config to plugins.entries.benchgen.
3

Restart the gateway and check status

Enabled: yes and Status: loaded mean the plugin is running. Now verify.

2. Setup prompt

On the Observability card, open the Ask your agent tab, click Copy setup prompt, and paste it into a session with the agent that runs your gateway. The prompt already contains your public key and endpoint; it tells the agent to install the plugin, write the config, and restart the gateway — so the agent’s tool profile has to allow shell execution.
The secret key is not in the prompt, deliberately — a prompt goes into chat history and usually into a model provider’s logs. The agent will ask for it separately.
Then check the result yourself at Verify. An agent reporting success is not the same as a trace arriving.
Your copy has real values where the placeholders are.

3. Advanced configuration (manual JSON)

Use this only when you need explicit checked-in or templated plugin configuration, or when your only access is the Control UI’s raw config editor (SettingsAdvancedSettingsRaw). Add this to your OpenClaw config, at the root level:
Both enabled flags have to be true — the outer one loads the plugin, the inner one turns on streaming. benchgen is the plugin’s manifest id, not its npm package name. Environment variable fallbacks are also supported:
  • BENCHGEN_PUBLIC_KEY
  • BENCHGEN_SECRET_KEY
  • BENCHGEN_BASE_URL
Omit publicKey, secretKey and baseUrl from the config to fall back to them. Restart the gateway after editing.
Back up openclaw.json first. OpenClaw refuses to start on an invalid config — an unknown plugin id or a wrong type stops the gateway, and the Control UI goes down with it.

Verify

Every time the plugin starts with valid configuration it sends one trace of its own:
Look for it in the Logs tab of the Control UI, and on your agent’s Traces tab as benchgen.plugin.connected, tagged benchgen-setup. The Observability card flips from Waiting for first trace to Traces arriving when it lands, with no page reload. Wrong credentials fail loudly rather than silently:
Streaming stays subscribed either way — a rejected handshake never stops the plugin.
On OpenClaw 2026.7.2 a config edit hot-reloads: the logs show config change detected followed by a fresh handshake, no restart. Only new plugin code needs a restart.
These traces accumulate, since a config edit counts as a start. Filter the Traces tab by tag benchgen-setup to isolate them, or to scan past them. Then send your agent a few ordinary messages. Those produce the real traces.

Configuration reference

Setting all three variables on the container skips the wizard entirely. Values in openclaw.json always win over their environment fallback.

Troubleshooting

No handshake trace after restarting? Read the gateway logs — each line rules out a different cause: Gateway will not start after editing config. Unknown keys, wrong types, and invalid values all block startup, and the Control UI is unavailable while the gateway is down. Restore openclaw.json.bak through your hosting panel. The agent says it worked but nothing changed. Treat any claim without visible tool output as unverified — the handshake trace is the only proof that does not depend on the agent’s word. The handshake arrived, but real turns produce no traces. Credentials and transport are fine. The plugin maps OpenClaw’s diagnostics events, so confirm diagnostics are enabled and that traffic is reaching this gateway.

Upgrade the plugin

From the Control UI, send it as Run: openclaw plugins update benchgen. Restart the gateway afterwards to load the new code. plugins install refuses to overwrite a plugin that is already present — use update, or --force.
Last modified on August 10, 2026