openclaw/src/cli
Matias Wainsten f29f51569a
fix: propagate config.env.vars to LaunchAgent/systemd service environment (#1735)
When installing the Gateway daemon via LaunchAgent (macOS) or systemd (Linux),
environment variables defined in config.env.vars were not being included in
the service environment. This caused API keys and other env vars configured
in clawdbot.json5 to be unavailable when the Gateway ran as a service.

The fix adds a configEnvVars parameter to buildGatewayInstallPlan() which
merges config.env.vars into the service environment. Service-specific
variables (CLAWDBOT_*, HOME, PATH) take precedence over config env vars.

Fixes the issue where users had to manually edit the LaunchAgent plist
to add environment variables like GOOGLE_API_KEY.
2026-01-25 10:35:55 +00:00
..
browser-cli-actions-input fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
cron-cli fix: clean docker onboarding warnings + preserve agentId casing 2026-01-24 19:07:01 +00:00
daemon-cli fix: propagate config.env.vars to LaunchAgent/systemd service environment (#1735) 2026-01-25 10:35:55 +00:00
gateway-cli fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
node-cli fix: harden bluebubbles short ids and fetch wrapper (#1369) (thanks @tyler6204) 2026-01-21 17:09:15 +00:00
nodes-cli fix: honor tools.exec ask/security in approvals 2026-01-24 04:53:44 +00:00
program fix: signal reactions 2026-01-25 03:24:44 +00:00
acp-cli.ts feat(acp): add interactive client harness 2026-01-18 08:27:37 +00:00
argv.test.ts refactor: streamline routed cli setup 2026-01-19 00:52:31 +00:00
argv.ts CLI: fix Windows gateway startup 2026-01-23 04:47:01 +00:00
banner.ts fix: clean wrapped banner tagline 2026-01-24 01:26:17 +00:00
browser-cli-actions-input.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
browser-cli-actions-observe.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
browser-cli-debug.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
browser-cli-examples.ts feat: add browser snapshot modes 2026-01-15 03:50:57 +00:00
browser-cli-extension.test.ts chore: prep 2026.1.14 npm release 2026-01-15 07:47:18 +00:00
browser-cli-extension.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
browser-cli-inspect.test.ts fix: add browser snapshot default mode (#1336) 2026-01-21 03:03:10 +00:00
browser-cli-inspect.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
browser-cli-manage.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
browser-cli-serve.ts feat: add Chrome extension browser relay 2026-01-15 04:52:28 +00:00
browser-cli-shared.ts fix(browser-cli): rename --profile to --browser-profile to avoid conflict with global --profile flag 2026-01-06 21:54:46 +01:00
browser-cli-state.cookies-storage.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
browser-cli-state.ts refactor: share cli runtime error handling 2026-01-19 00:52:31 +00:00
browser-cli.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
browser-cli.ts docs: unify cli help examples 2026-01-21 04:48:33 +00:00
channel-auth.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
channel-options.ts feat: add tlon channel plugin 2026-01-24 00:25:39 +00:00
channels-cli.ts feat: add beta googlechat channel 2026-01-24 23:30:45 +00:00
cli-utils.ts refactor: share cli runtime error handling 2026-01-19 00:52:31 +00:00
command-format.ts fix: refactor TUI stream assembly (#1202, thanks @aaronveklabs) 2026-01-20 08:36:54 +00:00
command-options.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
config-cli.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
cron-cli.test.ts test: align agent id normalization 2026-01-24 14:36:31 +00:00
cron-cli.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
daemon-cli.coverage.test.ts chore: run format and fix sandbox browser timeouts 2026-01-16 09:18:58 +00:00
daemon-cli.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
deps.ts feat!: move msteams to plugin 2026-01-16 02:59:43 +00:00
devices-cli.ts feat: tableize device/directory outputs 2026-01-21 04:48:33 +00:00
directory-cli.ts fix: address update cli type import 2026-01-21 06:10:27 +00:00
dns-cli.test.ts fix: align cli output tests and help examples 2026-01-21 05:20:31 +00:00
dns-cli.ts feat: tableize device/directory outputs 2026-01-21 04:48:33 +00:00
docs-cli.ts refactor: share cli runtime error handling 2026-01-19 00:52:31 +00:00
exec-approvals-cli.test.ts fix: add diagnostics cache trace config (#1370) (thanks @parubets) 2026-01-21 10:23:30 +00:00
exec-approvals-cli.ts feat: render approvals tables on write 2026-01-21 11:10:03 +00:00
gateway-cli.coverage.test.ts feat: fold gateway service commands into gateway 2026-01-21 17:45:26 +00:00
gateway-cli.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
gateway-rpc.ts fix: suppress spinner in logs --follow mode 2026-01-22 16:58:42 -08:00
gateway.sigterm.test.ts test: speed up test suite 2026-01-23 02:22:02 +00:00
help-format.ts fix: align cli output tests and help examples 2026-01-21 05:20:31 +00:00
hooks-cli.test.ts feat: support plugin-managed hooks 2026-01-18 05:57:05 +00:00
hooks-cli.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
logs-cli.test.ts refactor: harden log stream writes 2026-01-21 03:03:29 +00:00
logs-cli.ts fix: suppress spinner in logs --follow mode 2026-01-22 16:58:42 -08:00
memory-cli.test.ts refactor: streamline routed cli setup 2026-01-19 00:52:31 +00:00
memory-cli.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
models-cli.test.ts ci: stabilize vitest runs 2026-01-18 06:58:54 +00:00
models-cli.ts feat: add models status auth probes 2026-01-23 19:28:55 +00:00
node-cli.ts fix: resolve ci failures 2026-01-18 08:45:29 +00:00
nodes-camera.test.ts chore: rename project to clawdbot 2026-01-04 14:38:51 +00:00
nodes-camera.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
nodes-canvas.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
nodes-canvas.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
nodes-cli.coverage.test.ts feat: tighten exec allowlist gating 2026-01-21 21:45:50 +00:00
nodes-cli.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
nodes-run.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
nodes-screen.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
nodes-screen.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
outbound-send-deps.ts style: oxfmt format 2026-01-17 05:48:56 +00:00
pairing-cli.test.ts fix: align cli output tests and help examples 2026-01-21 05:20:31 +00:00
pairing-cli.ts feat: tableize device/directory outputs 2026-01-21 04:48:33 +00:00
parse-duration.test.ts feat: add models auth commands 2026-01-09 08:13:04 +01:00
parse-duration.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
parse-timeout.ts refactor: centralize cli timeout parsing 2026-01-09 21:29:52 +01:00
plugin-registry.ts CLI: streamline startup paths and env parsing 2026-01-18 23:10:39 +00:00
plugins-cli.ts fix: put plugin descriptions under source 2026-01-23 04:02:42 +00:00
ports.ts fix: harden port listener detection 2026-01-21 18:52:55 +00:00
profile-utils.ts refactor: normalize cli command hints 2026-01-20 07:43:00 +00:00
profile.test.ts refactor: normalize cli command hints 2026-01-20 07:43:00 +00:00
profile.ts refactor: normalize cli command hints 2026-01-20 07:43:00 +00:00
program.force.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
program.nodes-basic.test.ts feat: filter nodes list/status 2026-01-21 04:39:15 +00:00
program.nodes-media.test.ts fix: enforce strict config validation 2026-01-19 03:39:25 +00:00
program.smoke.test.ts fix: signal reactions 2026-01-25 03:24:44 +00:00
program.ts refactor(src): split oversized modules 2026-01-14 01:17:56 +00:00
progress.test.ts feat: add memory indexing progress options 2026-01-18 08:30:04 +00:00
progress.ts feat: add memory indexing progress options 2026-01-18 08:30:04 +00:00
prompt.test.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
prompt.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
route.ts fix: centralize cli command registry 2026-01-19 05:36:09 +00:00
run-main.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
run-main.ts fix: drop unused cli import 2026-01-25 03:42:32 +00:00
sandbox-cli.ts docs: unify cli help examples 2026-01-21 04:48:33 +00:00
security-cli.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
skills-cli.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
skills-cli.ts fix: prefer ~ for home paths in output 2026-01-23 03:44:31 +00:00
system-cli.ts feat: add system cli 2026-01-24 04:03:07 +00:00
tagline.ts Update tagline.ts with a nice reference from an old movie 2026-01-18 00:59:43 +00:00
tui-cli.ts docs(cli): add per-command CLI pages 2026-01-15 06:13:10 +00:00
update-cli.test.ts fix: restart gateway after update by default 2026-01-23 11:50:19 +00:00
update-cli.ts fix: restart gateway after update by default 2026-01-23 11:50:19 +00:00
wait.test.ts chore: migrate to oxlint and oxfmt 2026-01-14 15:02:19 +00:00
wait.ts chore: format to 2-space and bump changelog 2025-11-26 00:53:53 +01:00
webhooks-cli.ts feat: unify hooks installs and webhooks 2026-01-17 07:08:04 +00:00