@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.1or newer. Older builds skip plugins that require a newer plugin API. - Plugin
0.2.0or 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
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. Then check the result yourself at Verify. An agent reporting success is not the same as a trace arriving.What the prompt says
What the prompt says
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 (Settings → Advanced → Settings → Raw). Add this to your OpenClaw config, at the root level: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_KEYBENCHGEN_SECRET_KEYBENCHGEN_BASE_URL
publicKey, secretKey and baseUrl from the config to fall back to them. Restart the gateway after editing.
Verify
Every time the plugin starts with valid configuration it sends one trace of its own: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:
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
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.