Prerequisites checklist
- Node.js 18+ installed on your system.
oncall-cliinstalled globally (npm install -g oncall-cli).- Valid API key from OnCall Web Studio.
oncall.yamlpresent in the project root (after runningoncall init).
oncall: 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 oncall-cli. - Check global bin:
npm bin -gand ensure that directory is on your shellPATH. - Reinstall if needed:
npm install -g oncall-cli.
- Confirm install:
API key / authentication issues
Symptoms may include:- CLI printing an error that
API_KEYis missing or empty. - WebSocket connection closing immediately after start.
-
Open
~/.oncall/configand ensure it contains: -
If the file doesn’t exist or
API_KEYis empty: -
Re‑run your command under OnCall (e.g.,
oncall npm run dev).
Missing oncall.yaml in project
Symptoms:
- CLI can’t infer project identity (
id,window_id). - Cluster lookups return nothing for this directory.
oncall.yaml with sensible defaults. Use the same id across related services.
Cluster server not reachable
Symptoms:- CLI unable to register/fetch project metadata from
ONCALL_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 (single service), you can ignore this and still debug that one service.
WebSocket connection errors to backend
Symptoms (from CLI output):- Messages like “Web Socket connection error, please retry”.
- Chat pane shows “AI Chat not connected”.
- Confirm network connectivity to the backend endpoint configured in
WEB_SOCKET_URL(default:wss://api.oncall.build/v2/ws). - Ensure your
API_KEYis valid and not expired/revoked. - Re‑run with a simple, short‑lived command (e.g.,
oncall node -e "console.log('test')"), to rule out local script issues.
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
oncall.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
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 OnCall.
- Verify you’re running the command prefixed with
oncall, not inside an already‑running OnCall shell. - If output is extremely large, remember that:
- Logs are truncated to fit terminal width.
- Scrolling uses
↑/↓when the Logs pane is focused.
- The command you ran (with arguments),
- A snippet of the error output,
- Contents of
~/.oncall/config(redacted API key) andoncall.yaml(redacted sensitive description if needed), and share them with your support/debugging channel so OnCall can be diagnosed more easily.