Skip to main content
Last updated on

Troubleshooting

Common issues when integrating the OpenBox plugin with OpenClaw, organized by symptom.

Plugin not loading

Symptom: No [openbox] plugin loaded message in OpenClaw logs. Tool calls proceed without governance.

Possible causes:

  1. Plugin not installed. Run openclaw plugins install . from the plugin directory.

  2. Gateway not restarted. Run openclaw gateway restart after installing or updating the plugin.

  3. Missing required config. Both openboxUrl and openboxApiKey must be set in the plugin config. If either is missing, the plugin logs [openbox] Missing openboxUrl or openboxApiKey in plugin config and does not register hooks. Check your openclaw.json and .env file.

  4. Plugin not enabled. Ensure "enabled": true is set in the plugin entry:

    {
    "plugins": {
    "entries": {
    "openbox": {
    "enabled": true,
    "config": { ... }
    }
    }
    }
    }
  5. Build not run. The plugin needs to be compiled before installation. Run npm run build in the plugin directory, then reinstall and restart the gateway.

Gateway not starting

Symptom: The LLM gateway health check (curl http://127.0.0.1:18919/health) fails or times out.

Possible causes:

  1. Missing llmBaseUrl or llmApiKey. The gateway only starts if both are configured. If you only want tool governance without LLM guardrails, this is expected — the gateway does not need to run.

  2. Port conflict. Another process is using port 18919. Either stop the conflicting process or change the port via the gatewayPort config option. Remember to update your model provider's baseUrl to match the new port.

  3. Gateway already started. If the plugin was loaded by multiple subsystems, the gateway may have already started. Check for [openbox] LLM gateway started on http://127.0.0.1:18919/v1 in earlier log output. The plugin prevents duplicate gateway starts.

No events appearing in the dashboard

Symptom: The agent runs and tool calls execute, but no sessions or activities appear in the OpenBox dashboard.

Possible causes:

  1. Wrong openboxUrl. Verify the URL matches your OpenBox Core instance. Check for typos and ensure the URL is reachable from your machine.

  2. Invalid API key. Check that your openboxApiKey starts with obx_live_ or obx_test_ and is active. Generate a new key in the OpenBox dashboard under Settings > API Keys if needed.

  3. Network issue. The plugin fails open on network errors, so tool calls will succeed even if Core is unreachable. Check logs for [openbox] evaluate failed (fail-open) or [openbox] session registration failed — these indicate the plugin is trying to reach Core but failing.

  4. Session not registered. The session is registered on the first governance evaluation, not at session_start. If the agent exits before making any tool calls, no session appears in the dashboard.

LLM requests bypassing guardrails

Symptom: LLM calls work but guardrails (PII detection, content filtering) are not being applied. No guardrail events in the dashboard.

Possible causes:

  1. Model provider baseUrl not pointing to gateway. This is the most common cause. Your model provider in openclaw.json must point to http://127.0.0.1:18919/v1 (or your configured gateway port). If it still points directly to the LLM provider URL (e.g. https://api.openai.com/v1), requests bypass the gateway entirely.

  2. Gateway not running. Check the health endpoint and logs. See Gateway not starting.

  3. Guardrails not configured. Guardrails are configured in the OpenBox dashboard, not in the plugin config. Ensure you have active guardrail rules for the types you want to enforce.

Tools executing despite having a block policy

Symptom: You have a policy that should block a tool, but the tool executes anyway.

Possible causes:

  1. Fail-open in effect. If Core is unreachable, the plugin allows all actions. Check logs for [openbox] evaluate failed (fail-open) — this means the governance check failed and the tool was allowed to proceed.

  2. Policy not matching. The policy may not match the exact tool name or parameters being sent. Check the dashboard for the governance event to see what was sent to Core and how the policy evaluated it.

  3. Policy not active. Verify the policy is active in the OpenBox dashboard. Newly created policies take effect immediately — no restart needed.

Gateway returning errors for LLM requests

Symptom: LLM calls through the gateway return error responses.

Possible causes:

  1. Wrong llmBaseUrl. The gateway forwards requests to this URL after governance evaluation. Verify it is correct (e.g. https://api.openai.com/v1).

  2. Invalid llmApiKey. The gateway uses this key when forwarding to the LLM provider. Check it is valid and has sufficient quota.

  3. Unsupported route. The gateway only supports POST requests to /v1/chat/completions and /v1/responses. Requests to other paths return a 404 error.

  4. Request body parsing error. The gateway expects a valid JSON request body. If the body is malformed, the gateway returns a 500 error. Check logs for [openbox] llm_gateway error.

Session shows as failed in dashboard

Symptom: The session appears in the dashboard with a WorkflowFailed status.

This is expected when the agent ends with an error. The plugin captures the agent result on agent_end and reports WorkflowFailed if event.success is false. Check the agent logs for the underlying error.

Log messages reference

Log messageMeaning
[openbox] plugin loadedPlugin initialized and hooks registered
[openbox] LLM gateway started on ...Gateway is listening
[openbox] session registered verdict=...Session registered with Core
[openbox] tool=X verdict=Y reason="Z" ms=NTool call evaluated
[openbox] llm_input verdict=...LLM inference start reported
[openbox] llm_output verdict=... spans=NLLM inference end reported
[openbox] llm_gateway verdict=... reason="..." ms=NGateway guardrails evaluated
[openbox] llm_gateway applying guardrails redactionSensitive content was redacted
[openbox] evaluate failed (fail-open): ...Core unreachable, tool allowed
[openbox] session registration failed: ...Could not register session with Core
[openbox] session close failed: ...Could not report session end to Core
[openbox] LLM gateway server error: ...Gateway server error (port conflict, etc.)
[openbox] Missing openboxUrl or openboxApiKey ...Required config missing