-
Notifications
You must be signed in to change notification settings - Fork 371
Bug: /v1/chat/completions endpoint disabled by default — tool calls silently fail #36
Description
Bug Report: OpenClaw HTTP Endpoint Disabled
Description
VisionClaw's OpenClawBridge sends all Gemini tool calls to:
POST http://{openClawHost}:{openClawPort}/v1/chat/completions
However, the OpenClaw gateway has this endpoint disabled by default. First-time users who follow the README setup get silent failures — every tool call returns 404 or Connection refused — with no obvious error message in the app.
Steps to Reproduce
- Install OpenClaw with default settings
- Configure VisionClaw with gateway host + token
- Ask Gemini to perform any action ("Search for coffee shops", etc.)
- Nothing happens — gateway returns 404 on
/v1/chat/completions
Root Cause
OpenClaw requires explicit opt-in in ~/.openclaw/openclaw.json:
{
"gateway": {
"http": {
"endpoints": {
"chatCompletions": { "enabled": true }
}
}
}
}This critical step is not prominently documented in the VisionClaw README.
Fix
-
Add a prominent warning in the README's OpenClaw setup section:
⚠️ You must enablechatCompletionsinopenclaw.jsonor tool calls will fail silently. -
Add a startup health check in
OpenClawBridgethat hits/healthand warns the user if the endpoint returns 404. -
Display a visible UI indicator (red dot / banner) if the gateway is unreachable.
Severity
High — blocks the core agentic functionality for all new users.
See BUGS.md in this repo for full documentation.