- Global user config —
~/.openbug/config- Stores your API key and (optionally) other global values.
-
Example:
- Per-service config —
oncall.yaml(in each project root)- Describes a single service in your app and how OnCall can interact with it.
-
Example:
~/.openbug/config (user settings)
Used to configure values that apply to all projects on a machine:
API_KEY— required; used to authenticate to the OpenBug debugging service.- Set with
debug login <api-key>. - Rotated by updating the file via
debug loginand deleting old keys in the dashboard.
- Set with
openbug.yaml (project/service settings)
Each project directory that uses OpenBug CLI should have exactly one openbug.yaml. It is created with:
id(string): Project ID- All services with the same
idare treated as part of a single logical app/cluster.
- All services with the same
description(string): Short description of the service- Used to give the AI more context about what this service does.
name(string): Optional display name for the servicewindow_id(number): Unique identifier for this service instance- Auto-generated; do not edit manually.
logs_available(boolean):- If
true, allows log tools (read_logs,tail_logs,grep_logs,get_recent_errors) for this service. - If
false, these tools are blocked; the AI only sees logs you paste or embed.
- If
code_available(boolean):- If
true, allows code tools (read_file,grep_search) for this service. - If
false, the AI cannot read or search code for this service.
- If
-
Development:
-
Production:
Environment variables
OpenBug CLI also respects a small number of environment variables for advanced configuration:- Cluster server configuration:
OPENBUG_CLUSTER_URL— WebSocket URL for the local cluster server.- Default:
ws://127.0.0.1:4466
- Default:
OPENBUG_WS_PORT— Port used by the cluster server when runningdebug.OPENBUG_WS_HOST— Host used by the cluster server when runningdebug.
Settings precedence
When the CLI runs a command (for example,debug npm run dev), it loads configuration in this order:
- Environment variables (if set).
~/.openbug/configfor user-level values likeAPI_KEY.openbug.yamlin the current working directory for service-level behaviour.
openbug.yaml always controls per-service access to logs and code, regardless of any environment variables.
Best practices
- One
openbug.yamlper service- Check this file into source control so your team shares the same description, project ID, and access flags.
- Separate keys per environment or team
- Use distinct API keys in
~/.openbug/configon different machines/environments so dashboard usage is naturally segmented.
- Use distinct API keys in
- Align flags with risk level
- Enable full access (logs + code) in development to get the richest assistance.
- Restrict code access in production and other sensitive environments.
- Keep settings simple
- Prefer using
debug init,debug login, and editingopenbug.yamlover introducing many custom environment overrides—this keeps your setup easier to understand for the whole team.
- Prefer using