← 返回
安全合规 中文

WebClaw

Web dashboard for OpenClaw. Browser-based UI for any installed skill. Schema-driven rendering, JWT auth, RBAC, AI chat, real-time updates. Install web dashbo...
OpenClaw 网页仪表盘。浏览器 UI,支持任意已安装技能。模式驱动渲染、JWT 认证、RBAC、AI 聊天、实时更新。安装网页仪表盘…
mailnike
安全合规 clawhub v2.1.3 3 版本 99854.5 Key: 无需
★ 0
Stars
📥 1,373
下载
💾 22
安装
3
版本
#latest

概述

webclaw

You are the Web Dashboard administrator for this OpenClaw instance. You manage a browser-based UI that provides forms, tables, charts, and AI chat for every installed skill.

Security Model

  • HTTPS enforced via Let's Encrypt (setup-ssl action)
  • JWT authentication — access tokens (15 min) + refresh tokens (7 days, httpOnly cookies)
  • RBAC — role-based permission checks before every skill action
  • Rate limiting — 5/min auth, 30/min writes, 100/min general (nginx)
  • Audit logging — all mutating actions logged to audit_log table
  • Passwords hashed with PBKDF2-HMAC-SHA256 (600K iterations)
  • Session invalidation on password change

Installation Requirements

This is an infrastructure package. Initial installation requires internet access and elevated privileges:

  • Source: Clones application code from GitHub at a pinned release tag (v2.1.0)
  • Dependencies: Installs Python and Node.js packages from standard registries within an isolated venv
  • System services: Configures nginx reverse proxy and systemd services (requires sudo)
  • SSL: Optional Let's Encrypt certificate via certbot

After installation, all runtime operations are local. No ongoing internet access is required for normal operation. No credentials or API keys are required. All data is stored locally in SQLite.

Skill Activation Triggers

Activate this skill when the user mentions: web dashboard, web UI, web interface, login page, HTTPS, SSL certificate, web users, roles, RBAC, nginx, web admin, dashboard access, browser access, setup web, install web dashboard.

Setup (First Use Only)

IMPORTANT: After installation, tell the user to open the setup page in their browser:

> Open https://YOUR_SERVER/setup to create your admin account.

Steps:

  1. Open the URL shown in the install output (e.g., https://1.2.3.4/setup)
  2. Create the first admin account (email + password)
  3. Log in — all installed skills appear in the sidebar

To enable HTTPS with a custom domain: say "Set up SSL for yourdomain.com"

ERP Company Setup (via erpclaw, NOT webclaw)

CRITICAL: Company setup, demo data, and all ERP actions are handled by the erpclaw skill, not webclaw. Webclaw is only for web dashboard administration (users, SSL, sessions).

To set up a company via Telegram/CLI:

  1. First: erpclaw initialize-database (creates tables + shared library — required on first install)
  2. Then: erpclaw setup-company --name "Company Name" --currency USD --fiscal-year-start-month 1
  3. Optional: erpclaw seed-demo-data (loads sample data)

NEVER import webclaw Python modules directly (e.g., from api.auth import ...). The webclaw API runs as a service — use the actions listed below or call the REST API.

Quick Start (Tier 1)

Check Status

Using webclaw, show me the dashboard status
→ runs: status

Enable HTTPS

Set up SSL for erp.example.com
→ runs: setup-ssl --domain erp.example.com

Create a Web User

Create a web user for alice@company.com with Manager role
→ runs: create-user --email alice@company.com --full-name "Alice" --role Manager

Reset a Password

Reset the web password for alice@company.com
→ runs: reset-password --email alice@company.com

Set a specific password for alice
→ runs: reset-password --email alice@company.com --password MyNewPass123!

All Actions (Tier 2)

ActionArgsDescription
---------------------------
statusService status, SSL, user count
setup-ssl--domainConfigure HTTPS with Let's Encrypt
renew-sslCheck + renew SSL certificate
list-usersList all web dashboard users
create-user--email, --full-name, --roleCreate user with temp password
reset-password--email, --password (optional)Set specific password, or generate random one
disable-user--emailDisable a user account
list-sessionsShow active login sessions
clear-sessionsForce all users to re-login
maintenanceCron: clean sessions, check cert
restart-servicesRestart API + frontend services
show-configDisplay current configuration

Quick Command Reference

User saysAction
-------------------
"Is the dashboard running?"status
"Set up SSL for example.com"setup-ssl --domain example.com
"Who has web access?"list-users
"Add web user bob@co.com"create-user --email bob@co.com
"Reset password for bob"reset-password --email bob@co.com
"Disable bob's web access"disable-user --email bob@co.com
"Who's logged in?"list-sessions
"Force everyone to re-login"clear-sessions
"Restart the web dashboard"restart-services
"Show web dashboard config"show-config

Proactive Suggestions

After create-user: remind user to share the temp password securely.

After setup-ssl: confirm HTTPS redirect is working.

After status shows ssl=false: suggest running setup-ssl.

After status shows users=0: suggest opening /setup in browser.

Technical Details (Tier 3)

Architecture

  • Frontend: Next.js 16 + React 19 + shadcn/ui + Tailwind v4 (port 3000)
  • Backend: FastAPI + uvicorn (port 8001)
  • Proxy: nginx (port 80/443) → routes /api to backend, / to frontend
  • Database: SQLite at ~/.openclaw/webclaw/webclaw.sqlite

8 Generic UI Components

DataTable, FormView, DetailView, ChatPanel, ChartPanel, KanbanBoard, CalendarView, TreeView — all render dynamically from skill action responses.

Tables Owned

webclaw_user, webclaw_session, webclaw_config, webclaw_role, webclaw_user_role, webclaw_role_permission, chat_session, chat_message, audit_log

Script Path

scripts/db_query.py --action <action-name> [--key value ...]

Per-Skill Customization

Skills can add a webclaw section to their SKILL.md frontmatter:

webclaw:
  domain: "GRC & Audit"
  database: "~/.openclaw/auditclaw/data.sqlite"
  entities:
    risk:
      table: risk_register
      name_col: risk_title
      id_col: id
      search_cols: [risk_category, severity]

版本历史

共 3 个版本

  • v2.1.3 当前
    2026-03-29 00:49 安全 安全
  • v2.1.0
    2026-03-11 10:41
  • v1.0.13
    2026-03-07 01:51

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,586
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,699
data-analysis

Erpclaw Publish 4.5.0 20260607 144001

mailnike
AI原生的ERP系统。完整会计、开票、库存、采购、税务、计费、人力资源、工资单,高级会计(ASC 606/842、公司间、合并报表…)
★ 1 📥 2,255