1---2name: commands3description: Skill for the Commands area of Wiki. 786 symbols across 272 files.4---56# Commands78786 symbols | 272 files | Cohesion: 53%910## When to Use1112- Working with code in `AI/`13- Understanding how getActivePluginRegistryKey, runProviderPluginAuthMethod, applyAuthChoiceLoadedPluginProvider work14- Modifying commands-related functionality1516## Key Files1718| File | Symbols |19|------|---------|20| `AI/3-Application/Openclaw-source/src/commands/doctor-config-flow.ts` | scanLegacyToolsBySenderKeys, maybeRepairLegacyToolsBySenderKeys, loadAndMaybeMigrateDoctorConfig, scanList, resolveUserId (+26) |21| `AI/3-Application/Openclaw-source/src/commands/onboard-channels.ts` | formatAccountLabel, promptRemovalAccountId, setupChannels, resolveWorkspaceDir, getVisibleChannelPlugin (+20) |22| `AI/3-Application/Openclaw-source/src/commands/onboard-custom.ts` | isAzureFoundryUrl, isAzureOpenAiUrl, isAzureUrl, transformAzureConfigUrl, resolveVerificationEndpoint (+17) |23| `AI/3-Application/Openclaw-source/src/commands/doctor-state-integrity.ts` | existsFile, ensureDir, dirPermissionHint, countJsonlLines, formatLinuxSdBackedStateDirWarning (+16) |24| `AI/3-Application/Openclaw-source/src/commands/onboard-helpers.ts` | ensureWorkspaceAndSessions, moveToTrash, handleReset, probeGatewayReachable, waitForGatewayReachable (+13) |25| `AI/3-Application/Openclaw-source/src/commands/doctor-legacy-config.ts` | normalizeCompatibilityConfigValues, isRecord, normalizeDmAliases, allowFromEqual, normalizeProvider (+11) |26| `AI/3-Application/Openclaw-source/src/commands/health.ts` | debugHealth, formatDurationParts, resolveHeartbeatSummary, resolveAgentOrder, buildSessionSummary (+10) |27| `AI/3-Application/Openclaw-source/src/commands/agent.acp.test.ts` | withTempHome, createAcpEnabledConfig, mockConfig, mockConfigWithAcpOverrides, writeAcpSessionStore (+9) |28| `AI/3-Application/Openclaw-source/src/commands/onboard-search.ts` | sortSearchProviderOptions, resolveSearchProviderOptions, resolveSearchProviderEntry, hasKeyInEnv, rawKeyValue (+8) |29| `AI/3-Application/Openclaw-source/src/commands/agent.test.ts` | withTempHome, mockConfig, runWithDefaultAgentConfig, runEmbeddedWithTempConfig, writeSessionStoreSeed (+7) |3031## Entry Points3233Start here when exploring this area:3435- **`getActivePluginRegistryKey`** (Function) — `AI/3-Application/Openclaw-source/src/plugins/runtime.ts:93`36- **`runProviderPluginAuthMethod`** (Function) — `AI/3-Application/Openclaw-source/src/plugins/provider-auth-choice.ts:83`37- **`applyAuthChoiceLoadedPluginProvider`** (Function) — `AI/3-Application/Openclaw-source/src/plugins/provider-auth-choice.ts:158`38- **`applyAuthChoicePluginProvider`** (Function) — `AI/3-Application/Openclaw-source/src/plugins/provider-auth-choice.ts:218`39- **`applyDefaultModel`** (Function) — `AI/3-Application/Openclaw-source/src/plugins/provider-auth-choice-helpers.ts:60`4041## Key Symbols4243| Symbol | Type | File | Line |44|--------|------|------|------|45| `CustomApiError` | Class | `AI/3-Application/Openclaw-source/src/commands/onboard-custom.ts` | 143 |46| `getActivePluginRegistryKey` | Function | `AI/3-Application/Openclaw-source/src/plugins/runtime.ts` | 93 |47| `runProviderPluginAuthMethod` | Function | `AI/3-Application/Openclaw-source/src/plugins/provider-auth-choice.ts` | 83 |48| `applyAuthChoiceLoadedPluginProvider` | Function | `AI/3-Application/Openclaw-source/src/plugins/provider-auth-choice.ts` | 158 |49| `applyAuthChoicePluginProvider` | Function | `AI/3-Application/Openclaw-source/src/plugins/provider-auth-choice.ts` | 218 |50| `applyDefaultModel` | Function | `AI/3-Application/Openclaw-source/src/plugins/provider-auth-choice-helpers.ts` | 60 |51| `registerPluginCliCommands` | Function | `AI/3-Application/Openclaw-source/src/plugins/cli.ts` | 10 |52| `generateSlugViaLLM` | Function | `AI/3-Application/Openclaw-source/src/hooks/llm-slug-generator.ts` | 24 |53| `resolveAssistantIdentity` | Function | `AI/3-Application/Openclaw-source/src/gateway/assistant-identity.ts` | 80 |54| `listGatewayAgentsBasic` | Function | `AI/3-Application/Openclaw-source/src/gateway/agent-list.ts` | 49 |55| `isHeartbeatEnabledForAgent` | Function | `AI/3-Application/Openclaw-source/src/infra/heartbeat-summary.ts` | 30 |56| `resolveHeartbeatIntervalMs` | Function | `AI/3-Application/Openclaw-source/src/infra/heartbeat-summary.ts` | 42 |57| `resolveHeartbeatSummaryForAgent` | Function | `AI/3-Application/Openclaw-source/src/infra/heartbeat-summary.ts` | 71 |58| `runHeartbeatOnce` | Function | `AI/3-Application/Openclaw-source/src/infra/heartbeat-runner.ts` | 522 |59| `getAgentLocalStatuses` | Function | `AI/3-Application/Openclaw-source/src/commands/status.agent-local.ts` | 35 |60| `setupInternalHooks` | Function | `AI/3-Application/Openclaw-source/src/commands/onboard-hooks.ts` | 7 |61| `ensureWorkspaceAndSessions` | Function | `AI/3-Application/Openclaw-source/src/commands/onboard-helpers.ts` | 288 |62| `moveToTrash` | Function | `AI/3-Application/Openclaw-source/src/commands/onboard-helpers.ts` | 314 |63| `handleReset` | Function | `AI/3-Application/Openclaw-source/src/commands/onboard-helpers.ts` | 331 |64| `findAgentEntryIndex` | Function | `AI/3-Application/Openclaw-source/src/commands/agents.config.ts` | 37 |6566## Execution Flows6768| Flow | Type | Steps |69|------|------|-------|70| `StartGatewayServer → ApplyAgentDefaults` | cross_community | 6 |71| `StartGatewayServer → IsRecord` | cross_community | 6 |72| `StartGatewayServer → NormalizeConfigIssuePath` | cross_community | 6 |73| `DispatchPreparedSlackMessage → ListAgentEntries` | cross_community | 6 |74| `DispatchPreparedSlackMessage → Trim` | cross_community | 6 |75| `DispatchPreparedSlackMessage → StripNullBytes` | cross_community | 6 |76| `StartGatewayServer → Trim` | cross_community | 5 |77| `StartGatewayServer → SanitizeTerminalText` | cross_community | 5 |78| `DispatchPreparedSlackMessage → NormalizeAvatarValue` | cross_community | 5 |79| `HandlePluginsCommand → NormalizeChannelKey` | cross_community | 5 |8081## Connected Areas8283| Area | Connections |84|------|-------------|85| Scripts | 225 calls |86| Plugins | 75 calls |87| Infra | 75 calls |88| Cli | 64 calls |89| Agents | 62 calls |90| Daemon | 62 calls |91| Config | 42 calls |92| Gateway | 40 calls |9394## How to Explore95961. `gitnexus_context({name: "getActivePluginRegistryKey"})` — see callers and callees972. `gitnexus_query({query: "commands"})` — find related execution flows983. Read key files listed above for implementation details