/** * 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 (

Settings

Configure your ClawX experience

{/* Appearance */} Appearance Customize the look and feel
{/* AI Providers */} AI Providers Configure your AI model providers and API keys {/* Gateway */} Gateway OpenClaw Gateway settings

Port: {gatewayStatus.port}

{gatewayStatus.state}

Start Gateway when ClawX launches

{/* Updates */} Updates Keep ClawX up to date

Check for updates on startup

Download updates in the background

{/* Developer */} {devModeUnlocked && ( Developer Advanced options for developers

Access the native OpenClaw management interface

Opens http://localhost:18789 in your browser

)} {/* About */} About

ClawX - Graphical AI Assistant

Based on OpenClaw

Version {currentVersion}

); } export default Settings;