# opencode-mission-control **Repository Path**: hivedark/opencode-mission-control ## Basic Information - **Project Name**: opencode-mission-control - **Description**: opencode可视化任务监控系统 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-13 - **Last Updated**: 2026-03-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OpenCode Mission Control A visual management interface for monitoring OpenCode Server execution status. ## Features - **Dashboard** - Real-time session statistics, weekly trends, and recent sessions - **Session Management** - View, create, delete sessions with detail viewing and prompt sending support - **Scheduled Tasks** - Create and manage scheduled tasks with cron expression configuration - **Agent List** - View available agents and their configurations - **Service Status** - Real-time monitoring of OpenCode Server connection status - **Operation Logs** - Record and view all operation history - **Login Authentication** - Customizable username and password authentication ## Tech Stack - **Backend**: Node.js + Express + TypeScript + SQLite - **Frontend**: Next.js + React + Tailwind CSS + Recharts - **Deployment**: Docker Compose ## Quick Start ### Prerequisites - Node.js 18+ - Docker & Docker Compose ### Start with Docker Compose ```bash # Copy environment configuration cp .env.example .env # Start services docker compose -f compose.yml up -d --build # View logs docker compose -f compose.yml logs -f ``` Access http://localhost:3000 ### Local Development ```bash # Backend cd backend npm install npm run dev # Frontend cd frontend npm install npm run dev ``` ## Configuration ### Environment Variables Configure the following variables in `.env`: | Variable | Default | Description | |----------|---------|-------------| | OPENCODE_HOST | host.docker.internal | OpenCode Server host | | OPENCODE_PORT | 4096 | OpenCode Server port | | AUTH_USERNAME | admin | Login username | | AUTH_PASSWORD | 1q2w3e | Login password | | PORT | 8000 | Backend server port | | CORS_ORIGINS | * | Allowed CORS origins | ## API Endpoints ### Session Management - `GET /api/sessions` - Get session list - `GET /api/sessions/connection` - Get connection status - `POST /api/sessions` - Create new session - `GET /api/sessions/:id` - Get session details - `DELETE /api/sessions/:id` - Delete session - `POST /api/sessions/:id/prompt` - Send prompt - `POST /api/sessions/reconnect` - Reconnect to OpenCode Server ### Scheduled Tasks - `GET /api/scheduled-tasks` - Get task list - `POST /api/scheduled-tasks` - Create new task - `PUT /api/scheduled-tasks/:id` - Update task - `DELETE /api/scheduled-tasks/:id` - Delete task - `POST /api/scheduled-tasks/:id/run` - Run task immediately - `GET /api/scheduled-tasks/:id/logs` - Get task execution logs ### Others - `GET /api/agents` - Get agent list - `GET /api/config` - Get configuration info - `GET /api/config/providers` - Get model provider list - `GET /api/config/project` - Get project info - `GET /api/system-logs` - Get operation logs ## Project Structure ``` . ├── backend/ # Backend service │ ├── src/ │ │ ├── index.ts # Entry point │ │ ├── database.ts # SQLite database │ │ ├── routes/ # API routes │ │ └── services/ # Business logic │ └── package.json ├── frontend/ # Frontend application │ ├── src/ │ │ ├── app/ # Next.js pages │ │ ├── components/ # React components │ │ └── hooks/ # Custom hooks │ └── package.json ├── compose.yml # Docker Compose configuration ├── .env.example # Environment variables template └── AGENTS.md # Agent configuration guide ``` ## Screenshots ### 1. Login Page ![Login](images/0-登陆页面.png) ### 2. Dashboard ![Dashboard](images/1-首页.png) ### 3. Agent List ![Agent List](images/2-Agent列表.png) ### 4. Service Status ![Service Status](images/3-server状态.png) ### 5. Session Management ![Session Management](images/4-会话管理.png) ### 6. Session Details & Send Message ![Session Details](images/5-会话详情及发送消息.png) ### 7. Scheduled Tasks ![Scheduled Tasks](images/6-定时任务.png) ### 8. Task Execution Logs ![Execution Logs](images/7-定时任务执行日志.png) ### 9. Operation Logs ![Operation Logs](images/8-操作日志.png) ## License MIT