Skip to content

[Bug]: openclaw gateway install does not capture Nix (Home Manager) PATH entries in LaunchAgent plist #44402

@jerome-benoit

Description

@jerome-benoit

Bug description

openclaw gateway install generates a LaunchAgent plist (~/Library/LaunchAgents/ai.openclaw.gateway.plist) that captures the current shell PATH into the EnvironmentVariables dict. However, paths added by Nix Home Manager (e.g. ~/.nix-profile/bin) are not included in the generated plist, even when they are present in the login shell PATH at the time of running openclaw gateway install --force.

Impact

Skills that depend on binaries installed via Nix Home Manager (e.g. aoe, tmux) are reported as blocked / missing requirements by the gateway, because hasBinary() in shared/config-eval.ts checks process.env.PATH — which comes from the plist.

The shellEnv.enabled: true config option does not help here, as it only imports specific API key env vars, not PATH.

Steps to reproduce

  1. Install binaries via Nix Home Manager (e.g. aoe, tmux) — confirm they are in login shell PATH (/bin/zsh -l -c "which aoe" works)
  2. Run openclaw gateway install --force
  3. Inspect the generated plist: ~/.nix-profile/bin is missing from the PATH value
  4. Skills requiring those binaries show as "blocked - Missing: bin:aoe, bin:tmux"

Expected behavior

The generated plist PATH should include all entries from the login shell PATH, including Nix Home Manager paths.

Environment

  • macOS (arm64), Darwin 25.3.0
  • OpenClaw 2026.3.11
  • Nix Home Manager, binaries in ~/.nix-profile/bin
  • Shell: zsh

Workaround

Manually editing the plist to add ~/.nix-profile/bin to the PATH works until the next openclaw gateway install --force overwrites it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions