TypeScript-based 1Panel operations skill for OpenClaw.
- Resource monitoring: current node metrics, dashboard metrics, top CPU and memory processes, monitor history, GPU history
- Website inspection: website list and detail, Nginx config reads, domain reads, HTTPS config reads, SSL certificate reads, website log reads
- Application inspection: app catalog reads, installed app status checks, service reads, port and connection info reads
- Container inspection: container list, status, inspect, stats, and log reads
- Log inspection: operation logs, login logs, system log file list, generic log file reads
- Cronjob inspection: cronjob list and detail, next-run preview, execution records, record log reads
- Task center inspection: task center records and executing count
- Node inspection: node list, simple node list, node options, and node status reads
- Future write operations reserved: module-grouped mutation definitions are already reserved for create, update, delete, restart, and other managed actions
1Panel-skills/
โโโ SKILL.md # Skill instructions for OpenClaw
โโโ README.md # English README
โโโ README.zh-CN.md # Chinese README
โโโ openclaw.plugin.json # Plugin metadata
โโโ plugin.ts # OpenClaw plugin entry (TypeScript source)
โโโ package.json # Node package metadata
โโโ tsconfig.json # TypeScript typecheck config
โโโ tsconfig.build.json # TypeScript build config
โโโ agents/
โ โโโ openai.yaml # UI metadata
โโโ dist/ # Prebuilt runtime files used by OpenClaw and CLI
โ โโโ plugin.js
โ โโโ scripts/
โ โโโ cli.js
โ โโโ client.js
โ โโโ index.js
โ โโโ modules/
โโโ references/
โ โโโ module-groups.md # Module overview and API notes
โโโ scripts/
โโโ cli.ts # Local CLI entry
โโโ client.ts # Signed 1Panel API client
โโโ index.ts # Module registry
โโโ types.ts # Shared types
โโโ modules/
โโโ monitoring.ts
โโโ websites.ts
โโโ apps.ts
โโโ containers.ts
โโโ logs.ts
โโโ cronjobs.ts
โโโ task-center.ts
โโโ nodes.ts
General-purpose 1Panel operations skill for OpenClaw. The current implementation focuses on inspection and status-check interfaces while keeping grouped mutation endpoints reserved for future expansion.
| Module | Scope |
|---|---|
monitoring |
Dashboard metrics, current node status, top processes, monitor history, GPU history |
websites |
Website list/detail, config reads, HTTPS reads, certificate reads, website log reads |
apps |
App catalog reads, installed app status checks, service reads, port and connection info |
containers |
Container list, status, inspect, stats, and log reads |
logs |
Operation logs, login logs, system log files, generic log reads |
cronjobs |
Cronjob list/detail, next-run preview, records, record logs, script options |
task-center |
Task center record reads and executing count |
nodes |
Node list, node options, simple list, and node status |
- Node.js 18 or newer recommended
- A reachable 1Panel instance
- A valid 1Panel API key
- Log in to 1Panel.
- Open Settings -> API Interface.
- Enable the API interface.
- Copy the API key.
- Add your client IP or allow all for testing:
- IPv4:
0.0.0.0/0 - IPv6:
::/0
- IPv4:
1Panel API authentication requires:
1Panel-Timestamp1Panel-Token = md5("1panel" + API_KEY + TIMESTAMP)
Recommended local install:
mkdir -p ~/.openclaw/skills
ln -s /path/to/1Panel-skills ~/.openclaw/skills/openclaw-1panelThe repository already includes prebuilt runtime files under dist/, so normal use does not require rebuilding before loading the skill.
export ONEPANEL_BASE_URL="http://192.168.1.2:9999"
export ONEPANEL_API_KEY="YOUR_1PANEL_API_KEY"
export ONEPANEL_TIMEOUT_MS="30000"
export ONEPANEL_SKIP_TLS_VERIFY="false"List supported modules:
node dist/scripts/cli.js modulesList actions in one module:
node dist/scripts/cli.js actions monitoringSend a raw signed request:
node dist/scripts/cli.js request GET /api/v2/dashboard/base/osRun a grouped module action:
node dist/scripts/cli.js run monitoring getCurrentNode
node dist/scripts/cli.js run websites searchWebsites --input-json '{"page":1,"pageSize":20}'Print the current auth headers:
node dist/scripts/cli.js signThis repository exposes two runtime entrypoints:
dist/plugin.js: OpenClaw plugin entrydist/scripts/cli.js: signed CLI for direct local execution
The plugin metadata is defined in openclaw.plugin.json, and the package exports the compiled plugin entry through package.json.
Install dependencies:
npm installTypecheck:
npm run typecheckRebuild only after changing TypeScript source files:
npm run build- Do not commit real API keys into version control.
- If you receive
{"code":401,"message":"API ๆฅๅฃๅฏ้ฅ้่ฏฏ"}, first verify the copied key and confirm the 1Panel API settings were saved. - If you receive an IP-related auth error, verify the whitelist and the actual outbound IP of the OpenClaw runtime.
- Some node-related endpoints may require 1Panel Pro or XPack.
MIT