Gateway Env Injector
/install gateway-env-injector
Gateway Environment Injector
Bake secrets from 1Password into macOS LaunchAgent plists without leaving plaintext keys on disk. Uses op read to fetch secrets and /usr/libexec/PlistBuddy to inject them directly into the plist's EnvironmentVariables block.
Why This Exists
launchctl setenvdoesn't inject into a plist's ownEnvironmentVariablesblock- Environment variables in
.zshrcaren't available to LaunchAgents - Plaintext key files are a security risk
- 1Password service accounts provide read-only, rotatable access
Usage
bash scripts/inject-gateway-env.sh
Reads each key from 1Password, injects into the gateway plist, then restarts the service.
What It Injects
Configurable list of op://Vault/Item/field references mapped to environment variable names. Modify the script's KEYS array for your setup.
Key Lesson
Changing the Node binary path (even to a symlink) can silently revoke macOS TCC permissions. Always keep the gateway plist locked to the Homebrew Cellar path, not an NVM symlink.
Files
scripts/inject-gateway-env.sh— Injection script with 1Password integration
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gateway-env-injector - After installation, invoke the skill by name or use
/gateway-env-injector - Provide required inputs per the skill's parameter spec and get structured output
What is Gateway Env Injector?
Safely inject API keys from 1Password into macOS LaunchAgent plists using PlistBuddy. Use when running OpenClaw on macOS and storing secrets in 1Password — a... It is an AI Agent Skill for Claude Code / OpenClaw, with 347 downloads so far.
How do I install Gateway Env Injector?
Run "/install gateway-env-injector" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Gateway Env Injector free?
Yes, Gateway Env Injector is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Gateway Env Injector support?
Gateway Env Injector is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Gateway Env Injector?
It is built and maintained by Nissan Dookeran (@nissan); the current version is v1.0.0.