API: Config + Init
Purpose: setup/read runtime config and determine readiness state for dashboard entry.Key Endpoints
GET /api/config/settingsPUT /api/config/settingsGET /api/system/init-statusGET /api/config/env
GET /api/config/settings
Returns persisted settings, resolved OpenClaw config, settings file path, workspace validation, runtime CLI status, and workspace bootstrap details.
PUT /api/config/settings
Updates settings fields (remoteAccessMode, gateway URLs/token, workspacePath, setupCompleted).
Error patterns
400 INVALID_REMOTE_ACCESS_MODE400 NON_LOOPBACK_FORBIDDEN(for non-loopback gateway URL)400for invalid body types
GET /api/system/init-status
Returns readiness and setup checks across database, OpenClaw CLI, gateway, and workspace.
readyrequiresSetupsetupCompletedaccess.mode(local_onlyortailscale_tunnel)- check states/messages for
database,openclaw,gateway,workspace checks.workspace.bootstrapprovides scaffold counts created during init