Prerequisites checklist
- Node.js 20+ installed on your system.
@openbug/cliinstalled globally (npm install -g @openbug/cli).- Valid API key from OpenBug Web Studio.
openbug.yamlpresent in the project root (automatically created after running first script usingdebugas a prefix).
🛑 ERROR: debug: command not found
- Cause: Global npm bin directory not on your
PATH, or install didn’t succeed. - Fix:
- Confirm install:
npm list -g --depth=0 | grep @openbug/cli - Check global bin:
npm bin -gand ensure that directory is on your shellPATH. - Reinstall if needed:
npm install -g @openbug/cli
- Confirm install:
🛑 ERROR: API key / authentication issues
Note: Ensure your API key is active in the OpenBug Web Studio. Symptoms may include:- CLI printing an error that
API_KEYis missing or empty. - WebSocket connection closing immediately after start.
-
Open
~/.openbug/configand ensure it contains: -
If the file doesn’t exist or
API_KEYis empty: -
Re-run your command under OnCall (e.g.,
debug npm run dev).
🛑 ERROR: Missing openbug.yaml in project
Symptoms:- CLI can’t infer project identity (
id,window_id). - Cluster lookups return nothing for this directory.
openbug.yaml with sensible defaults. Use the same id as mentioned above across related services.
🛑 ERROR: Cluster server not reachable
Symptoms:- CLI unable to register/fetch project metadata from
OPENBUG_CLUSTER_URL. - Architecture sent to backend only includes the current service.
- Ensure
oncall clusteris running in another terminal on the same machine. - Default URL is
ws://127.0.0.1:4466. If you overrideONCALL_CLUSTER_URL, confirm host/port. - If cluster isn’t needed, you can ignore this and still debug that one service.
🛑 ERROR: Access denied for tools
Symptoms:- AI responses indicating it cannot access logs or code for this service.
- Tool calls returning messages like “No Access to execute X”.
-
Open the service’s
openbug.yamland verify: -
For production environments, it’s expected that
code_availablemay befalse. In that case:- AI can still work with logs (if
logs_available: true). - Code tools will not be used for that service.
- AI can still work with logs (if
🛑 ERROR: Logs not appearing in the UI
Symptoms:- Command runs but Logs pane stays empty or incomplete.
- Confirm the command actually produces stdout/stderr when run without openbug.
- Verify you’re running the command prefixed with
debug, not inside an already-running OpenBug shell.
If these checks don’t resolve your issue, capture the command you ran, the error output, and redacted config files to share with your support channel.