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.
Install OpenClaw declaratively with nix-openclaw — a batteries-included Home Manager module.
home-manager switch --rollbacktext```bash} mkdir -p ~/code/openclaw-local # Copy templates/agent-first/flake.nix from the nix-openclaw repo ```
See the nix-openclaw README for full module options and examples.
When
OPENCLAW_NIX_MODE=1You can also set it manually:
bashexport OPENCLAW_NIX_MODE=1
On macOS, the GUI app does not automatically inherit shell environment variables. Enable Nix mode via defaults instead:
bashdefaults write ai.openclaw.mac openclaw.nixMode -bool true
OpenClaw reads JSON5 config from
OPENCLAW_CONFIG_PATHOPENCLAW_STATE_DIR| Variable | Default |
|---|---|
text OPENCLAW_HOME | text HOMEtext USERPROFILEtext os.homedir() |
text OPENCLAW_STATE_DIR | text ~/.openclaw |
text OPENCLAW_CONFIG_PATH | text $OPENCLAW_STATE_DIR/openclaw.json |
The launchd/systemd gateway service auto-discovers Nix-profile binaries so plugins and tools that shell out to
nixNIX_PROFILESNIX_PROFILES~/.nix-profile/binThis applies to both macOS launchd and Linux systemd service environments.
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine