Plugin Setup
OpenClaw exposes shared setup helpers so plugin setup flows behave like the built-in ones. Main subpaths:openclaw/plugin-sdk/setupopenclaw/plugin-sdk/channel-setupopenclaw/plugin-sdk/secret-input
Channel setup helpers
Useplugin-sdk/channel-setup when a channel plugin needs the standard setup
adapter and setup wizard shapes.
Optional channel plugins
If a channel is installable but not always present, usecreateOptionalChannelSetupSurface(...):
setupAdaptersetupWizard
Shared setup helpers
plugin-sdk/setup re-exports the setup primitives used by bundled channels.
Common helpers:
applySetupAccountConfigPatch(...)createPatchedAccountSetupAdapter(...)createEnvPatchedAccountSetupAdapter(...)createTopLevelChannelDmPolicy(...)setSetupChannelEnabled(...)promptResolvedAllowFrom(...)promptSingleChannelSecretInput(...)
Example: patch channel config in setup
Secret input schema
Useplugin-sdk/secret-input instead of rolling your own secret-input parser.
Provider setup note
Provider-specific onboarding helpers live on provider-focused subpaths:plugin-sdk/provider-authplugin-sdk/provider-onboardplugin-sdk/provider-setupplugin-sdk/self-hosted-provider-setup
Setup guidance
- Keep setup input schemas strict and small.
- Reuse OpenClaw’s allowlist, DM-policy, and secret-input helpers.
- Keep setup-entry modules thin; move behavior into
src/. - Link docs from setup flows when install or auth steps are manual.