Opencode on Autopilot lets you run OpenCode while you sleep, eat, or play with your kids. Set up your tasks, hit start, and come back to completed work. This powerful VS Code extension provides fully automated Opencode on Autopilot task management with intelligent queue processing and auto-resume functionality.
π€ "Queue up 100 tasks Friday evening, wake up Monday with everything done"
- Set It and Forget It: Queue hundreds of tasks and let Opencode on Autopilot work autonomously
- Auto-Resume: Automatically resume processing when usage limits reset - no manual intervention needed
- Sleep Prevention: Keeps your computer awake during processing so work continues overnight
- Smart Queue Management: Process multiple OpenCode tasks automatically with intelligent queueing
- Batch Processing: Handle large workloads efficiently - perfect for weekend or overnight runs
- Dependency Checking: Automatic detection and validation of OpenCode CLI and Python dependencies
- Cross-Platform Support: Works seamlessly on Windows, macOS, and Linux
- IDE Compatibility: Full support for VS Code and Cursor
- Error Recovery: Comprehensive error handling with automatic retry mechanisms
- Health Monitoring: Continuous monitoring of OpenCode process health
- Extensive Settings: Fine-tune every aspect of Opencode on Autopilot behavior
- Configuration Validation: Built-in validation with helpful error messages
- Development Mode: Special features and debugging tools for developers
- Sleep Prevention: Keep your computer awake during long processing sessions
- Interactive Webview: Intuitive interface for managing queues and monitoring progress
- Mobile Web Interface: Complete web-based interface for remote access and control
- Real-time Updates: Live status updates and progress tracking via WebSocket
- History Browser: Browse and filter previous processing runs
- Command Palette: Quick access to all Opencode on Autopilot commands
- QR Code Access: Easy mobile access via QR code scanning
- OpenCode CLI: Install OpenCode from https://opencode.ai or via npm:
npm install -g @opencode/cli - Python 3.9+: Required for process management
- VS Code 1.74.0+ or Cursor: Compatible with VS Code and Cursor
- Clone this repository or download the source code
- Install dependencies:
npm install - Compile the extension:
npm run compile - Install the extension in VS Code
- Cursor: Opencode on Autopilot works seamlessly in Cursor with the same installation process
- Start Opencode on Autopilot: Open Command Palette (
Cmd/Ctrl+Shift+P) βOpencode: Start Opencode on Autopilot - Add Messages: Queue up all your tasks - add 10, 50, or 200+ messages
- Start Processing: Click "Start Processing" and walk away
- Live Your Life: Go eat dinner, play with kids, sleep, or enjoy your weekend
- Return to Completed Work: Opencode on Autopilot handles everything automatically, even through usage limits
| Command | Description |
|---|---|
Opencode: Start Opencode on Autopilot |
Start the Opencode on Autopilot interface and session |
Opencode: Stop Opencode on Autopilot |
Stop Opencode on Autopilot and close the session |
Opencode: Add Message to Queue |
Add a new message to the processing queue |
Opencode: Start Web Interface |
Start the web interface for mobile access |
Opencode: Stop Web Interface |
Stop the web interface server |
Opencode: Show Web Interface QR Code |
Display QR code for easy mobile access |
Opencode on Autopilot offers extensive configuration options. Access settings via File β Preferences β Settings β Extensions β Opencode on Autopilot.
{
"opencodeOnAutopilot.queue.autoMaintenance": true
}{
"opencodeOnAutopilot.session.autoStart": false,
"opencodeOnAutopilot.session.skipPermissions": true,
"opencodeOnAutopilot.session.healthCheckInterval": 30000
}{
"opencodeOnAutopilot.sleepPrevention.enabled": true,
"opencodeOnAutopilot.sleepPrevention.method": "auto"
}{
"opencodeOnAutopilot.history.maxRuns": 20,
"opencodeOnAutopilot.history.autoSave": true,
"opencodeOnAutopilot.history.showInUI": false
}{
"opencodeOnAutopilot.webInterface.useExternalServer": false,
"opencodeOnAutopilot.webInterface.password": ""
}The project includes a robust CI/CD pipeline using GitHub Actions:
- CI: Runs linting, type checking, and tests on every push/PR across Windows, macOS, and Linux.
- Security: Weekly security audits via
npm audit. - Releases: Automated .vsix package generation and GitHub Release creation when a version tag (e.g.,
v0.1.8) is pushed.
# Bump version and tag (Patch/Minor/Major)
npm run version:patch
# Push to trigger release
git push && git push --tagsOpencode on Autopilot follows a modular architecture with clear separation of concerns:
src/
βββ core/ # Core state, types, and configuration
βββ opencode/ # OpenCode CLI integration and communication
βββ queue/ # Queue management and processing
βββ services/ # External services (health, sleep, dependencies)
βββ ui/ # User interface and webview management
βββ utils/ # Shared utilities and logging
- Queue Manager: Handles message queueing, processing, and operations
- OpenCode Integration: Manages OpenCode CLI process and communication
- Dependency Checker: Validates and manages required dependencies
- Configuration System: Comprehensive settings with validation
- Local Processing: All processing happens locally on your machine
- No Data Collection: Opencode on Autopilot doesn't collect or transmit personal data
- Secure Dependencies: Validates OpenCode CLI and Python installations
- Permission Awareness: Uses
--dangerously-skip-permissionsonly in trusted environments
# Clone the repository
git clone https://github.com/Dayclone/opencode-on-autopilot.git
cd opencode-on-autopilot
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Start watch mode for development
npm run watch
# Package for distribution
vsce packageEnable development mode for additional debugging features:
{
"opencodeOnAutopilot.developmentMode": true
}This enables:
- Debug logging and diagnostics
- Configuration validation tools
- Advanced queue operations
- Weekend Warriors: Queue up your entire week's refactoring Friday evening
- Large Refactoring Projects: Process hundreds of files while you sleep
- Batch Code Generation: Generate components, tests, and documentation overnight
- Migration Tasks: Convert frameworks or update dependencies during family time
- Quality Assurance: Run comprehensive code reviews while you're at dinner
- Documentation Generation: Create docs for your entire codebase while you relax
- Converting a React class component codebase to functional components
- Adding TypeScript types to a large JavaScript project
- Generating API documentation from code comments
- Migrating from one testing framework to another
- Adding accessibility features across a web application
Queue Processing: Opencode on Autopilot maintains a persistent queue of messages that can be processed automatically. Each message represents a task or instruction for OpenCode CLI.
Auto-Resume: When OpenCode hits usage limits, Opencode on Autopilot automatically detects this and schedules the queue to resume when limits reset.
Workspace Integration: Each VS Code workspace maintains its own queue and history, allowing you to manage multiple projects independently.
Dependency Management: Opencode on Autopilot automatically checks for and validates all required dependencies (OpenCode CLI, Python) before starting.
Batch Operations: Process multiple related tasks in sequence with consistent context and state management.
Queue Management: Full CRUD operations on queue items - add, edit, remove, duplicate, and reorder messages as needed.
History Tracking: Complete history of all processing runs with filtering and search capabilities.
Cross-Platform: Native support for Windows, macOS, and Linux with platform-specific optimizations.
Contributions are welcome! Feel free to:
- Report bugs or issues
- Suggest new features
- Submit pull requests
- Improve documentation
This project is licensed under the MIT License - see the LICENSE file for details.
Based on Claude Autopilot. Made by Dayclone.
OpenCode CLI Not Found
- Ensure OpenCode CLI is installed:
npm install -g @opencode/cli - Verify installation:
opencode --version - Restart VS Code after installing OpenCode
- Check dependency status in Opencode on Autopilot panel
Python Not Found
- Install Python 3.9 or later
- Ensure Python is in your PATH
- On Windows, check "Add Python to PATH" during installation
Permission Errors
- Opencode on Autopilot uses
--dangerously-skip-permissionsfor automation - Only use in trusted development environments
- Disable if working with sensitive data
- π Bug Reports
- π‘ Feature Requests
- π¬ Discussions
If you find Opencode on Autopilot helpful, consider:
- β Starring the repository
- π Reporting bugs or suggesting features
- π€ Contributing code or documentation
- π¬ Helping others in discussions
Made with β€οΈ for the OpenCode community
Based on Claude Autopilot. Adapted for OpenCode (opencode.ai) - a terminal-based AI coding assistant.
