@openbug/cli
v0.0.4
Published
**OpenBug - Your AI-powered CLI Debugger**
Downloads
352
Readme
OpenBug CLI
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.
Features
- 🤖 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
Installation
npm install -g @openbug/cliQuick Start
1. Initialize OpenBug
debug 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
2. Login
Get your API key from OpenBug Web Studio and login:
debug login <your-auth-key>3. Start Debugging
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
Commands
debug
Start the OpenBug interface for AI chat and service management.
Example:
debugdebug init [-id <project-id>] -m <description>
Initialize 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"debug login <your-auth-key>
Login to OpenBug using your authentication key from OpenBug Web Studio.
Example:
debug login abc123xyz789debug cluster
Start the lightweight local WebSocket server for cluster functionality.
Example:
debug clusterdebug config [-id <project-id>] -m <description>
Update project configuration for the current directory.
Example:
debug config -id my-project -m "Updated description"debug <command>...
Run any command with OpenBug's interactive debugging interface.
Examples:
debug npm run dev
debug python manage.py runserver
debug docker-compose upConfiguration
OpenBug stores its configuration in ~/.openbug/config. You can manually edit this file if needed:
# OpenBug Configuration File
#
# Place your OpenBug API key here.
# You can get a key from OpenBug Web Studio.
#
API_KEY=your-api-key-here
# Project mappings (stored as JSON)
projects=[]Project Metadata
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: trueEnvironment Variables
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)
Keyboard Shortcuts
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
Requirements
- Node.js 18+
- npm or yarn
Support
For issues, questions, or contributions, please visit:
- Website: https://oncall.build
- Web Studio: https://app.oncall.build
License
MIT
