/** * Settings Page * Application configuration */ import { Sun, Moon, Monitor, RefreshCw, Terminal, ExternalLink, Key, Download, } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Label } from '@/components/ui/label'; import { Switch } from '@/components/ui/switch'; import { Separator } from '@/components/ui/separator'; import { Badge } from '@/components/ui/badge'; import { useSettingsStore } from '@/stores/settings'; import { useGatewayStore } from '@/stores/gateway'; import { useUpdateStore } from '@/stores/update'; import { ProvidersSettings } from '@/components/settings/ProvidersSettings'; import { UpdateSettings } from '@/components/settings/UpdateSettings'; export function Settings() { const { theme, setTheme, gatewayAutoStart, setGatewayAutoStart, autoCheckUpdate, setAutoCheckUpdate, autoDownloadUpdate, setAutoDownloadUpdate, devModeUnlocked, } = useSettingsStore(); const { status: gatewayStatus, restart: restartGateway } = useGatewayStore(); const currentVersion = useUpdateStore((state) => state.currentVersion); // Open developer console const openDevConsole = () => { window.electron.openExternal('http://localhost:18789'); }; return (
Configure your ClawX experience
Port: {gatewayStatus.port}
Start Gateway when ClawX launches
Check for updates on startup
Download updates in the background
Access the native OpenClaw management interface
Opens http://localhost:18789 in your browser
ClawX - Graphical AI Assistant
Based on OpenClaw
Version {currentVersion}