Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
This page defines the strict contract enforced by
openclaw secrets applyIf a target does not match these rules, apply fails before mutating configuration.
openclaw secrets apply --from <plan.json>targetsjson5{ version: 1, protocolVersion: 1, targets: [ { type: "models.providers.apiKey", path: "models.providers.openai.apiKey", pathSegments: ["models", "providers", "openai", "apiKey"], providerId: "openai", ref: { source: "env", provider: "default", id: "OPENAI_API_KEY" }, }, { type: "auth-profiles.api_key.key", path: "profiles.openai:default.key", pathSegments: ["profiles", "openai:default", "key"], agentId: "main", ref: { source: "env", provider: "default", id: "OPENAI_API_KEY" }, }, ], }
Plan targets are accepted for supported credential paths in:
General rule:
target.typetarget.pathCompatibility aliases remain accepted for existing plans:
models.providers.apiKeyskills.entries.apiKeychannels.googlechat.serviceAccountEach target is validated with all of the following:
typepathpathSegmentspath__proto__prototypeconstructorproviderIdaccountIdauth-profiles.jsonagentIdauth-profiles.jsonauthProfileProviderIf a target fails validation, apply exits with an error like:
textInvalid plan target path for models.providers.apiKey: models.providers.openai.baseUrl
No writes are committed for an invalid plan.
--dry-run--allow-exec--allow-execauth-profiles.jsonkeyReftokenRefsecrets applyopenclaw.jsonauth-profiles.jsonbash# Validate plan without writes openclaw secrets apply --from /tmp/openclaw-secrets-plan.json --dry-run # Then apply for real openclaw secrets apply --from /tmp/openclaw-secrets-plan.json # For exec-containing plans, opt in explicitly in both modes openclaw secrets apply --from /tmp/openclaw-secrets-plan.json --dry-run --allow-exec openclaw secrets apply --from /tmp/openclaw-secrets-plan.json --allow-exec
If apply fails with an invalid target path message, regenerate the plan with
openclaw secrets configure© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine