cli-serve
Skill này làm gì
Skill này chỉ cách chạy máy chủ OmniRoute từ dòng lệnh. Skill dành cho quản trị viên muốn khởi động, dừng hoặc khởi động lại máy chủ và đặt các tùy chọn cơ bản.
Khi nào nên dùng
- ✓Khi người dùng muốn khởi động hoặc dừng máy chủ OmniRoute.
- ✓Khi người dùng muốn máy chủ chạy nền hoặc tự phục hồi nếu nó dừng.
- ✓Khi người dùng muốn mở bảng điều khiển OmniRoute từ terminal.
Liên kết skill
https://github.com/cheaper-inference/OmniRoute/blob/release/v3.8.53/skills/cli-serve/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Khởi động máy chủ OmniRoute của tôi ở chế độ nền trên cổng 8080 và mở bảng điều khiển.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill liệt kê các lệnh serve, stop, restart và dashboard. Lệnh serve nhận các tùy chọn cho cổng, chế độ nền, ghi nhật ký, tự phục hồi, chế độ không giao diện (headless) và biểu tượng khay hệ thống.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Overview
Start, stop, and restart the OmniRoute server from the CLI. Manage daemon mode, port configuration, auto-recovery, system tray integration, and the dashboard open shortcut.
Quick install
npm install -g omniroute # or: npx omniroute
omniroute --version
Subcommands
dashboard
Flags:
--url--port <port>--tui
Example:
omniroute dashboard
restart
Flags:
--port <port>
Example:
omniroute restart
serve
Flags:
--port <port>--no-open--daemon--log--no-recovery--max-restarts <n>--headless--tray--no-tray--ready-timeout <ms>--tls-cert <path>--tls-key <path>
Example:
omniroute serve
stop
Flags:
--port <port>
Example:
omniroute stop
<!-- skill:custom-start -->
<!-- Aggregated from: omniroute-cli (setup + index), omniroute-cli-admin (lifecycle/setup/backup/tunnel) -->
Setup
The omniroute binary ships with the OmniRoute server. It is both the server launcher and a full management CLI with 250+ commands across 39 groups.
Install
npm install -g omniroute # npm registry
# or: use the binary bundled with the desktop app
Requires Node.js ≥22.22.2 or ≥24.
Verify:
omniroute --version # prints installed version
omniroute --help # full command tree
Connection
Every CLI command that talks to the server reads two values:
| Source | Variable / Flag |
|---|---|
| Base URL | OMNIROUTE_BASE_URL or --base-url |
| API key | OMNIROUTE_API_KEY or --api-key |
Default base URL: http://localhost:20128
export OMNIROUTE_BASE_URL="http://localhost:20128"
export OMNIROUTE_API_KEY="sk-..." # from Dashboard → API Manager
For a remote server:
export OMNIROUTE_BASE_URL="https://your-server.com"
Global flags
| Flag | Description |
|---|---|
--base-url <url> |
Override server URL for this invocation |
--api-key <key> |
Override API key for this invocation |
--output <format> |
Output format: table (default), json, jsonl, csv |
--json |
Shorthand for --output json |
--non-interactive |
Disable prompts — for CI / shell scripts |
--no-open |
Don't auto-open the browser on start |
--port <n> |
Override default port 20128 |
--help, -h |
Show help for the current command |
--version, -v |
Print the installed version |
Output formats
All listing commands support --output:
omniroute combo list # human-readable table
omniroute combo list --output json # JSON array
omniroute combo list --output jsonl # one JSON object per line
omniroute combo list --output csv # CSV with header row
Quick start: one-shot server + provider setup
# 1. Start server
omniroute
# 2. (First run) interactive setup wizard
omniroute setup
# 3. Verify everything is healthy
omniroute doctor
CLI capability skills
| Capability | Skill |
|---|---|
| Backup & restore | https://raw.githubusercontent.com/diegosouzapw/OmniRoute/main/skills/cli-backup-sync/SKILL.md |
| Provider & key management | https://raw.githubusercontent.com/diegosouzapw/OmniRoute/main/skills/cli-providers/SKILL.md |
Cloud agents (omniroute cloud …) |
https://raw.githubusercontent.com/diegosouzapw/OmniRoute/main/skills/cli-backup-sync/SKILL.md |
| Evals & benchmarking | https://raw.githubusercontent.com/diegosouzapw/OmniRoute/main/skills/cli-eval/SKILL.md |
Errors
Connection refused→ server not running; runomnirouteoromniroute serve401 Unauthorized→
Câu hỏi thường gặp
Tôi cần cài gì trước?
Skill nói cần cài gói npm omniroute và dùng Node.js phiên bản 22 trở lên.
Máy chủ có chạy nền được không?
Có. Lệnh serve có tùy chọn daemon để chạy nền.
Lệnh dashboard có mở bảng điều khiển cho tôi không?
Có. Lệnh dashboard có thể mở bảng điều khiển, và có tùy chọn URL cùng tùy chọn giao diện terminal.
Chi tiết
Mô tả gốc của tác giả
Start, stop, and restart the OmniRoute server from the CLI. Manage daemon mode, port configuration, auto-recovery, system tray integration, and the dashboard open shortcut.
Độ phổ biến
- Sao GitHub
- 84k
- Vị trí xếp hạng
- #1413
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
cli-a2a
84kChạy công cụ dòng lệnh OmniRoute cho các tác vụ giữa các agent, giúp bạn gửi công việc, xem lịch sử tác vụ và kiểm thử skill.
cli-backup-sync
84kChạy sao lưu dữ liệu OmniRoute từ dòng lệnh, gồm bản chụp, đồng bộ đám mây, lịch sao lưu và khôi phục từ file lưu trữ.
cli-batches
84kGửi các tác vụ AI hàng loạt từ dòng lệnh, theo dõi tiến độ và lưu kết quả hoặc lỗi, kể cả cho các pipeline CI.
cli-chat
84kGửi yêu cầu trò chuyện đến các model AI từ dòng lệnh, với câu trả lời theo luồng, system prompt và phiên tương tác.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.