mirror of
https://github.com/dtzp555-max/ocm.git
synced 2026-07-19 09:43:37 +00:00
chore: release v0.5.1 and streamline README
This commit is contained in:
@@ -6,15 +6,28 @@
|
||||
|
||||
---
|
||||
|
||||
## What is this?
|
||||
## Quick Start (1 min)
|
||||
|
||||
OCM is a lightweight local dashboard for OpenClaw that helps you:
|
||||
```bash
|
||||
# Install
|
||||
git clone https://github.com/dtzp555-max/ocm.git
|
||||
cd ocm
|
||||
|
||||
- **Manage sub-agents fast** (create with a wizard, switch models inline)
|
||||
- **Run OpenClaw commands inside the app** via a built-in CLI terminal
|
||||
- **Stop hunting for CLI flags / docs** with curated command presets + favorites
|
||||
# Update (existing clone)
|
||||
git pull --ff-only
|
||||
|
||||
Everything ships as **a single `.js` file** with zero npm dependencies — just Node.js 18+.
|
||||
# Run (no npm install needed)
|
||||
bash start.sh # macOS / Linux
|
||||
start.bat # Windows
|
||||
```
|
||||
|
||||
Open [http://localhost:3333](http://localhost:3333).
|
||||
|
||||
## Why OCM
|
||||
|
||||
- **Single-file + zero dependency**: one `openclaw-manager.js`, no build step
|
||||
- **Fast daily operations**: agent/model/auth/cron/backup in one local UI
|
||||
- **Built-in terminal**: run `openclaw` commands with streaming output and presets
|
||||
|
||||
## Screenshots
|
||||
|
||||
@@ -28,6 +41,14 @@ View all agents (main + sub-agents) at a glance. Each card shows model, group bi
|
||||
|
||||

|
||||
|
||||
### Built-in CLI Terminal
|
||||
Run any openclaw command with real-time streaming output. The terminal panel sits at the bottom of the page and expands on demand.
|
||||
|
||||

|
||||
|
||||
<details>
|
||||
<summary>More screenshots</summary>
|
||||
|
||||
### New Subagent Wizard
|
||||
4-step guided wizard to create a sub-agent: basic info → model → personality & memory → confirm. Fully bilingual.
|
||||
|
||||
@@ -48,11 +69,6 @@ View, add, enable/disable, and manually trigger openclaw-related cron tasks. Int
|
||||
|
||||

|
||||
|
||||
### Built-in CLI Terminal
|
||||
Run any openclaw command with real-time streaming output. The terminal panel sits at the bottom of the page and expands on demand.
|
||||
|
||||

|
||||
|
||||
Preset command menu with built-in commands and your personal favorites — one click to run.
|
||||
|
||||

|
||||
@@ -60,42 +76,23 @@ Preset command menu with built-in commands and your personal favorites — one c
|
||||
Command output streams in real-time. Star frequently used commands for quick access, or use the Manage button to organize favorites.
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
## Features
|
||||
|
||||
- **Agent Management** — Create sub-agents (with wizard), switch models inline, browse & edit workspace files, delete with auto-backup
|
||||
- **Model Selection** — Change global primary model, edit fallback chain
|
||||
- **Auth Guide** — Step-by-step instructions for configuring each provider (Anthropic, OpenAI, DeepSeek, Google, GitHub Copilot, etc.)
|
||||
- **Token Usage Stats** — Parse `gateway.log` for token usage, view cost breakdown by model and day
|
||||
- **Cron Job Management** — View, add, enable/disable, and trigger openclaw-related cron tasks
|
||||
- **Workspace File Browser** — Browse all agent workspace files, read-only by default, editable on demand
|
||||
- **Backup & Rollback** — Auto-backup before every write, one-click restore from any snapshot
|
||||
- **NAS Backup** — SFTP/rsync backup to NAS with legacy SSH cipher compatibility
|
||||
- **Built-in CLI Terminal** — Run openclaw commands with real-time streaming output, presets, tab completion
|
||||
- **Health Badge** — Auto-run `openclaw doctor` and show warnings in the header
|
||||
- **Bilingual UI** — English / 中文, switchable at runtime
|
||||
- **Cross-platform** — macOS / Linux / Windows
|
||||
- **Agents & Workspace** — Create sub-agents, switch models inline, and browse/edit workspace files
|
||||
- **Models & Auth** — Manage primary/fallback models and follow provider auth guides
|
||||
- **Ops Panel** — Restart gateway, view logs, run health checks, and switch OpenClaw directory
|
||||
- **Stats & Cron** — Token/cost stats from `gateway.log` plus cron task management
|
||||
- **Backups** — Local backup/rollback and NAS backup (SFTP/rsync)
|
||||
- **Built-in CLI** — Real-time command terminal with presets, favorites, and tab completion
|
||||
|
||||
## Requirements
|
||||
|
||||
- Node.js >= 18 ([download](https://nodejs.org/))
|
||||
- A working [OpenClaw](https://github.com/anthropics/openclaw) installation
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
git clone https://github.com/dtzp555-max/ocm.git
|
||||
cd ocm
|
||||
# No npm install needed
|
||||
|
||||
# macOS / Linux
|
||||
bash start.sh
|
||||
|
||||
# Windows
|
||||
start.bat
|
||||
```
|
||||
|
||||
Then open http://localhost:3333 in your browser.
|
||||
Install/update/run commands are in **Quick Start (1 min)** above.
|
||||
|
||||
### First Run
|
||||
|
||||
@@ -176,13 +173,40 @@ MIT
|
||||
|
||||
OpenClaw Manager 是一个零依赖的本地 Web 管理界面,用于可视化管理 [OpenClaw](https://github.com/anthropics/openclaw) AI 智能体。所有代码合并在一个 `.js` 文件中,只需要 Node.js 18+,不需要 `npm install`。
|
||||
|
||||
### 1 分钟上手
|
||||
|
||||
```bash
|
||||
# 首次安装
|
||||
git clone https://github.com/dtzp555-max/ocm.git
|
||||
cd ocm
|
||||
|
||||
# 已安装后更新
|
||||
git pull --ff-only
|
||||
|
||||
# 运行(无需 npm install)
|
||||
bash start.sh # macOS / Linux
|
||||
start.bat # Windows
|
||||
```
|
||||
|
||||
访问 [http://localhost:3333](http://localhost:3333)。
|
||||
|
||||
### 界面预览
|
||||
|
||||
#### 模式选择
|
||||

|
||||
|
||||
#### Agent 管理 & 新建向导
|
||||
#### Agent 管理
|
||||

|
||||
|
||||
#### 内置 CLI 终端
|
||||
底部终端面板,支持实时流式输出、预设命令、收藏夹、Tab 补全。
|
||||
|
||||

|
||||
|
||||
<details>
|
||||
<summary>更多截图</summary>
|
||||
|
||||
#### 新建向导
|
||||

|
||||
|
||||
#### 模型选择 & 操作菜单
|
||||
@@ -194,42 +218,20 @@ OpenClaw Manager 是一个零依赖的本地 Web 管理界面,用于可视化
|
||||
#### Cron 定时任务
|
||||

|
||||
|
||||
#### 内置 CLI 终端
|
||||
底部终端面板,支持实时流式输出、预设命令、收藏夹、Tab 补全。
|
||||
|
||||

|
||||

|
||||

|
||||
</details>
|
||||
|
||||
### 功能一览
|
||||
|
||||
- **Agent 管理** — 新建子智能体(含向导)、内联切换模型、查看/编辑工作区文件、删除(自动备份)
|
||||
- **模型选择** — 修改全局主模型、编辑 Fallback 链
|
||||
- **认证引导** — 各 Provider 分步操作指引 + 一键复制 CLI 命令
|
||||
- **Token 用量统计** — 解析网关日志,按模型/天汇总 Token 和费用
|
||||
- **Cron 任务管理** — 查看、添加、启用/禁用、手动触发 openclaw 相关定时任务
|
||||
- **Workspace 文件浏览器** — 查看所有工作区文件,默认只读,可切换编辑
|
||||
- **备份 & 回滚** — 每次写入前自动备份,一键回滚
|
||||
- **NAS 备份** — SFTP/rsync 远程备份,兼容老设备 SSH 加密
|
||||
- **内置 CLI 终端** — 实时流式输出、预设命令、Tab 补全
|
||||
- **健康检查** — 自动运行 `openclaw doctor`,Header 显示状态徽章
|
||||
- **中英双语** — 运行时随时切换
|
||||
- **跨平台** — macOS / Linux / Windows
|
||||
- **Agent 与 Workspace** — 新建子智能体、内联切换模型、浏览/编辑工作区文件
|
||||
- **模型与认证** — 管理主模型/Fallback 链,按引导完成各 Provider 认证
|
||||
- **运维操作面板** — 重启网关、查看日志、健康检查、切换 OpenClaw 目录
|
||||
- **统计与计划任务** — 从 `gateway.log` 汇总 Token/费用,并管理 Cron 任务
|
||||
- **备份能力** — 本地备份回滚 + NAS 远程备份(SFTP/rsync)
|
||||
- **内置 CLI 终端** — 实时输出、预设命令、收藏、Tab 补全
|
||||
|
||||
### 快速开始
|
||||
|
||||
```bash
|
||||
git clone https://github.com/dtzp555-max/ocm.git
|
||||
cd ocm
|
||||
|
||||
# macOS / Linux
|
||||
bash start.sh
|
||||
|
||||
# Windows
|
||||
start.bat
|
||||
```
|
||||
|
||||
访问 http://localhost:3333
|
||||
安装/更新/运行命令见上方 **1 分钟上手**。
|
||||
|
||||
### 首次运行
|
||||
|
||||
|
||||
Reference in New Issue
Block a user