🖥️ Dashboard
OpenClaw Dashboard là giao diện web để quản lý và giám sát hệ thống AI Agent của bạn.
Truy cập Dashboard
Mở Dashboard
openclaw dashboard
Hoặc truy cập trực tiếp:
http://127.0.0.1:18789/
Lưu ý về Port
Port mặc định là `18789`. Có thể thay đổi trong config hoặc khi khởi động gateway: ```bash openclaw gateway --port 18800 ```
Các tính năng chính
1. 📊 Status Overview
Trang chủ Dashboard hiển thị:
- Gateway Status: Trạng thái hoạt động
- Uptime: Thời gian chạy
- Connected Channels: Số kênh đang kết nối
- Active Sessions: Số phiên chat đang hoạt động
- API Usage: Thống kê sử dụng API
2. 👥 Pairing Approvals
Quản lý yêu cầu kết nối từ người dùng mới:
Pending Pairing Requests:
┌─────────────────────────────────────┐
│ John Doe │
│ @johndoe │
│ WhatsApp: +84987654321 │
│ │
│ [Approve] [Deny] [Block] │
└─────────────────────────────────────┘
Actions:
- Approve: Cho phép người dùng chat với bot
- Deny: Từ chối yêu cầu (có thể gửi lại)
- Block: Chặn vĩnh viễn
3. 📝 Logs Viewer
Xem logs real-time:
- System logs: Gateway, channels
- Agent logs: AI reasoning, tool calls
- Error logs: Lỗi và cảnh báo
# Lọc logs theo level
openclaw logs --level error
# Lọc theo channel
openclaw logs --filter telegram
4. ⚙️ Settings
Cấu hình hệ thống:
- Gateway Settings: Port, auth, timeout
- Agent Config: Model, workspace, sandbox
- Channel Config: Telegram, WhatsApp, Discord
- Security: Pairing policy, rate limits
5. 📈 Analytics (Beta)
- Message stats: Số tin nhắn theo thời gian
- API costs: Chi phí API ước tính
- User activity: Active users
Authentication
Dashboard hỗ trợ nhiều phương thức xác thực:
Token Authentication (Default)
Gateway token được tạo khi onboard:
{
"gateway": {
"auth": {
"token": "your-generated-token"
}
}
}
Khi truy cập dashboard, cần nhập token này.
Password Authentication
{
"gateway": {
"auth": {
"mode": "password",
"password": "your-secure-password"
}
}
}
Bảo mật
- **KHÔNG** expose dashboard ra public internet - Luôn sử dụng token/password mạnh - Sử dụng VPN hoặc SSH tunnel khi truy cập từ xa
Remote Access
Cách 1: SSH Tunnel (Khuyên dùng)
ssh -L 18789:localhost:18789 user@your-server
Sau đó truy cập http://localhost:18789 trên máy local.
Cách 2: Tailscale Serve
tailscale serve https / http://localhost:18789
Cách 3: Nginx Reverse Proxy
server {
listen 443 ssl;
server_name openclaw.yourdomain.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location / {
proxy_pass http://127.0.0.1:18789;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
# Basic Auth
auth_basic "OpenClaw Dashboard";
auth_basic_user_file /etc/nginx/.htpasswd;
}
}
CLI Alternatives
Mọi thao tác trên Dashboard đều có thể thực hiện qua CLI:
| Dashboard Action | CLI Command |
|---|---|
| View status | openclaw status |
| Health check | openclaw health |
| List pairing requests | openclaw pairing list |
| Approve pairing | openclaw pairing approve <code> |
| View logs | openclaw logs |
| Edit config | openclaw configure |
Troubleshooting
Dashboard không load
# Check gateway status
openclaw gateway status
# Restart gateway
openclaw gateway restart
# Check port availability
lsof -i :18789
"Unauthorized" error
- Kiểm tra token/password
- Clear browser cache
- Kiểm tra config file
WebSocket disconnection
- Kiểm tra firewall
- Kiểm tra proxy settings
- Thử refresh page
Next Steps
- Control UI - Advanced control interface
- Remote Access - Chi tiết về remote access
- Security - Bảo mật dashboard
Cần hỗ trợ? Tham gia Discord