Haze 4b9ab69b9b fix(setup): auto-redirect to setup when no API keys are configured
If setup was previously completed but no provider API keys were saved
(due to the legacy bug where validation didn't persist keys), the app
now detects this on startup and redirects to the setup wizard so the
user can re-enter their key with the fixed save flow.
4b9ab69b9b · 2026-02-06 03:27:32 +08:00
24 Commits

ClawX

Graphical AI Assistant based on OpenClaw

ClawX is a modern desktop application that provides a beautiful graphical interface for OpenClaw, making AI assistants accessible to everyone without command-line knowledge.

Features

  • 🎯 Zero CLI Required - Complete all installation, configuration, and usage through GUI
  • 🎨 Modern UI - Beautiful, intuitive desktop application interface
  • 📦 Ready to Use - Pre-installed skill bundles, ready immediately
  • 🖥️ Cross-Platform - Unified experience on macOS / Windows / Linux
  • 🔄 Seamless Integration - Fully compatible with OpenClaw ecosystem

Tech Stack

  • Runtime: Electron 33+
  • Frontend: React 19 + TypeScript
  • UI Components: shadcn/ui + Tailwind CSS
  • State Management: Zustand
  • Build Tools: Vite + electron-builder
  • Testing: Vitest + Playwright

Development

Prerequisites

  • Node.js 22+
  • pnpm (recommended) or npm

Setup

# Clone the repository
git clone https://github.com/clawx/clawx.git
cd clawx

# Install dependencies
pnpm install

# Start development server
pnpm dev

Available Commands

# Development
pnpm dev           # Start development server with hot reload
pnpm build         # Build for production

# Testing
pnpm test          # Run unit tests
pnpm test:e2e      # Run E2E tests
pnpm test:coverage # Generate coverage report

# Code Quality
pnpm lint          # Run ESLint
pnpm lint:fix      # Fix linting issues
pnpm typecheck     # TypeScript type checking

# Packaging
pnpm package       # Package for current platform
pnpm package:mac   # Package for macOS
pnpm package:win   # Package for Windows
pnpm package:linux # Package for Linux

Project Structure

clawx/
├── electron/           # Electron main process
│   ├── main/          # Main process entry and handlers
│   ├── gateway/       # Gateway process management
│   ├── preload/       # Preload scripts
│   └── utils/         # Utilities
├── src/               # React renderer process
│   ├── components/    # React components
│   ├── pages/         # Page components
│   ├── stores/        # Zustand state stores
│   ├── hooks/         # Custom React hooks
│   ├── types/         # TypeScript types
│   └── styles/        # Global styles
├── resources/         # Static resources
├── tests/             # Test files
└── build_process/     # Build documentation

Architecture

ClawX follows a dual-port architecture:

  • Port 23333: ClawX GUI (default interface)
  • Port 18789: OpenClaw Gateway (native management)
┌─────────────────────────────────┐
│         ClawX App               │
│  ┌───────────────────────────┐  │
│  │ Electron Main Process     │  │
│  │ - Window management       │  │
│  │ - Gateway lifecycle       │  │
│  │ - System integration      │  │
│  └───────────────────────────┘  │
│  ┌───────────────────────────┐  │
│  │ React Renderer Process    │  │
│  │ - Modern UI               │  │
│  │ - WebSocket communication │  │
│  └───────────────────────────┘  │
└───────────────┬─────────────────┘
                │ WebSocket (JSON-RPC)
                ▼
┌─────────────────────────────────┐
│      OpenClaw Gateway           │
│ - Message channel management    │
│ - AI Agent runtime              │
│ - Skills/plugins system         │
└─────────────────────────────────┘

License

MIT

Description
All in one OpenClaw For Desktop
Readme 17 MiB