config
remoteclaw config
Config helpers for non-interactive edits in remoteclaw.json: get/set/unset/validate
values by path and print the active config file. Run without a subcommand to
open the configure wizard (same as remoteclaw configure).
Examples
remoteclaw config fileremoteclaw config get browser.executablePathremoteclaw config set browser.executablePath "/usr/bin/google-chrome"remoteclaw config set agents.defaults.heartbeat.every "2h"remoteclaw config set agents.list[0].tools.exec.node "node-id-or-name"remoteclaw config set channels.discord.token --ref-provider default --ref-source env --ref-id DISCORD_BOT_TOKENremoteclaw config set secrets.providers.vaultfile --provider-source file --provider-path /etc/remoteclaw/secrets.json --provider-mode jsonremoteclaw config unset plugins.entries.brave.config.webSearch.apiKeyremoteclaw config set channels.discord.token --ref-provider default --ref-source env --ref-id DISCORD_BOT_TOKEN --dry-runremoteclaw config validateremoteclaw config validate --jsonPaths
Paths use dot or bracket notation:
remoteclaw config get agents.defaults.workspaceremoteclaw config get agents.list[0].idUse the agent list index to target a specific agent:
remoteclaw config get agents.listremoteclaw config set agents.list[1].tools.exec.node "node-id-or-name"Values
Values are parsed as JSON5 when possible; otherwise they are treated as strings.
Use --strict-json to require JSON5 parsing. --json remains supported as a legacy alias.
remoteclaw config set agents.defaults.heartbeat.every "0m"remoteclaw config set gateway.port 19001 --strict-jsonremoteclaw config set channels.whatsapp.groups '["*"]' --strict-jsonconfig set modes
remoteclaw config set supports four assignment styles:
- Value mode:
remoteclaw config set <path> <value> - SecretRef builder mode:
remoteclaw config set channels.discord.token \ --ref-provider default \ --ref-source env \ --ref-id DISCORD_BOT_TOKEN- Provider builder mode (
secrets.providers.<alias>path only):
remoteclaw config set secrets.providers.vault \ --provider-source exec \ --provider-command /usr/local/bin/remoteclaw-vault \ --provider-arg read \ --provider-arg openai/api-key \ --provider-timeout-ms 5000- Batch mode (
--batch-jsonor--batch-file):
remoteclaw config set --batch-json '[ { "path": "secrets.providers.default", "provider": { "source": "env" } }, { "path": "channels.discord.token", "ref": { "source": "env", "provider": "default", "id": "DISCORD_BOT_TOKEN" } }]'remoteclaw config set --batch-file ./config-set.batch.json --dry-runBatch parsing always uses the batch payload (--batch-json/--batch-file) as the source of truth.
--strict-json / --json do not change batch parsing behavior.
JSON path/value mode remains supported for both SecretRefs and providers:
remoteclaw config set channels.discord.token \ '{"source":"env","provider":"default","id":"DISCORD_BOT_TOKEN"}' \ --strict-json
remoteclaw config set secrets.providers.vaultfile \ '{"source":"file","path":"/etc/remoteclaw/secrets.json","mode":"json"}' \ --strict-jsonProvider Builder Flags
Provider builder targets must use secrets.providers.<alias> as the path.
Common flags:
--provider-source <env|file|exec>--provider-timeout-ms <ms>(file,exec)
Env provider (--provider-source env):
--provider-allowlist <ENV_VAR>(repeatable)
File provider (--provider-source file):
--provider-path <path>(required)--provider-mode <singleValue|json>--provider-max-bytes <bytes>
Exec provider (--provider-source exec):
--provider-command <path>(required)--provider-arg <arg>(repeatable)--provider-no-output-timeout-ms <ms>--provider-max-output-bytes <bytes>--provider-json-only--provider-env <KEY=VALUE>(repeatable)--provider-pass-env <ENV_VAR>(repeatable)--provider-trusted-dir <path>(repeatable)--provider-allow-insecure-path--provider-allow-symlink-command
Hardened exec provider example:
remoteclaw config set secrets.providers.vault \ --provider-source exec \ --provider-command /usr/local/bin/remoteclaw-vault \ --provider-arg read \ --provider-arg openai/api-key \ --provider-json-only \ --provider-pass-env VAULT_TOKEN \ --provider-trusted-dir /usr/local/bin \ --provider-timeout-ms 5000Dry run
Use --dry-run to validate changes without writing remoteclaw.json.
remoteclaw config set channels.discord.token \ --ref-provider default \ --ref-source env \ --ref-id DISCORD_BOT_TOKEN \ --dry-run
remoteclaw config set channels.discord.token \ --ref-provider default \ --ref-source env \ --ref-id DISCORD_BOT_TOKEN \ --dry-run \ --json
remoteclaw config set channels.discord.token \ --ref-provider vault \ --ref-source exec \ --ref-id discord/token \ --dry-run \ --allow-execDry-run behavior:
- Builder mode: runs SecretRef resolvability checks for changed refs/providers.
- JSON mode (
--strict-json,--json, or batch mode): runs schema validation plus SecretRef resolvability checks. - Exec SecretRef checks are skipped by default during dry-run to avoid command side effects.
- Use
--allow-execwith--dry-runto opt in to exec SecretRef checks (this may execute provider commands). --allow-execis dry-run only and errors if used without--dry-run.
--dry-run --json prints a machine-readable report:
ok: whether dry-run passedoperations: number of assignments evaluatedchecks: whether schema/resolvability checks ranchecks.resolvabilityComplete: whether resolvability checks ran to completion (false when exec refs are skipped)refsChecked: number of refs actually resolved during dry-runskippedExecRefs: number of exec refs skipped because--allow-execwas not seterrors: structured schema/resolvability failures whenok=false
JSON Output Shape
{ ok: boolean, operations: number, configPath: string, inputModes: ["value" | "json" | "builder", ...], checks: { schema: boolean, resolvability: boolean, resolvabilityComplete: boolean, }, refsChecked: number, skippedExecRefs: number, errors?: [ { kind: "schema" | "resolvability", message: string, ref?: string, // present for resolvability errors }, ],}Success example:
{ "ok": true, "operations": 1, "configPath": "~/.remoteclaw/remoteclaw.json", "inputModes": ["builder"], "checks": { "schema": false, "resolvability": true, "resolvabilityComplete": true }, "refsChecked": 1, "skippedExecRefs": 0}Failure example:
{ "ok": false, "operations": 1, "configPath": "~/.remoteclaw/remoteclaw.json", "inputModes": ["builder"], "checks": { "schema": false, "resolvability": true, "resolvabilityComplete": true }, "refsChecked": 1, "skippedExecRefs": 0, "errors": [ { "kind": "resolvability", "message": "Error: Environment variable \"MISSING_TEST_SECRET\" is not set.", "ref": "env:default:MISSING_TEST_SECRET" } ]}If dry-run fails:
config schema validation failed: your post-change config shape is invalid; fix path/value or provider/ref object shape.SecretRef assignment(s) could not be resolved: referenced provider/ref currently cannot resolve (missing env var, invalid file pointer, exec provider failure, or provider/source mismatch).Dry run note: skipped <n> exec SecretRef resolvability check(s): dry-run skipped exec refs; rerun with--allow-execif you need exec resolvability validation.- For batch mode, fix failing entries and rerun
--dry-runbefore writing.
Subcommands
config file: Print the active config file path (resolved fromREMOTECLAW_CONFIG_PATHor default location).
Restart the gateway after edits.
Validate
Validate the current config against the active schema without starting the gateway.
remoteclaw config validateremoteclaw config validate --json