OpenBug - Your AI-powered CLI Debugger
OpenBug CLI is an intelligent command-line tool that helps you debug your applications in real-time using AI assistance. Run your commands, view logs, and get AI-powered insights all in one interactive terminal interface.
- 🤖 AI-Powered Debugging: Get intelligent assistance while debugging your applications
- 📊 Real-time Log Analysis: View and analyze command output logs in real-time
- 🔍 Code Search: Search through your codebase with AI assistance
- 💬 Interactive Chat: Chat with AI about your debugging issues
- 🚀 Easy Setup: Get started in minutes with simple initialization
npm install -g @openbug/clidebug init -m "Your project description"This will:
- Create a configuration directory at
~/.openbug/ - Generate an
openbug.yamlfile in your project directory - Set up your project for OpenBug
Run any command with OpenBug:
debug npm run dev
debug python app.py
debug node server.jsOpenBug will launch an interactive terminal interface where you can:
- View command logs in real-time
- Chat with AI about debugging issues
- Search your codebase
- Get intelligent suggestions
Start the OpenBug interface for AI chat and service management.
Example:
debugInitialize OpenBug configuration and register your project directory.
Options:
-id <project-id>: Specify a project ID (optional)-m <description>: Project description (required)
Example:
debug init -id my-project -m "Node.js API backend"Start the lightweight local WebSocket server for cluster functionality.
Example:
debug clusterUpdate project configuration for the current directory.
Example:
debug config -id my-project -m "Updated description"Run any command with OpenBug's interactive debugging interface.
Examples:
debug npm run dev
debug python manage.py runserver
debug docker-compose upOpenBug stores its configuration in ~/.openbug/config. You can manually edit this file if needed.
Environment variables:
API_BASE_URL: Backend API URL (example:http://localhost:3000/v2/api)WEB_SOCKET_URL: WebSocket URL (example:ws://localhost:3000/v2/ws)
OpenBug creates an openbug.yaml file in your project directory with metadata:
id: "openbug-service"
description: "Your project description"
name: "Project Name"
window_id: 1234567890
logs_available: true
code_available: trueWEB_SOCKET_URL: WebSocket URL (default:wss://api.oncall.build/v2/ws)OPENBUG_CLUSTER_URL: WebSocket URL for the cluster server (default:ws://127.0.0.1:4466)OPENBUG_WS_PORT: Port for the WebSocket server (default:6111)OPENBUG_WS_HOST: Host for the WebSocket server (default:127.0.0.1)API_BASE_URL: Base URL for the OpenBug API (default:https://api.oncall.build/v2/api)
When using the interactive interface:
Tab: Switch focus between panes↑/↓: Scroll (Keyboard Only)Enter: Send messageCtrl+D: Toggle chat/logs viewCtrl+C: ExitCtrl+R: Reload AI chat
- Node.js 18+
- npm or yarn
For issues, questions, or contributions, please visit the project repository.
MIT