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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gateway-env-injector - 安装完成后,直接呼叫该 Skill 的名称或使用
/gateway-env-injector触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 347 次。
如何安装 Gateway Env Injector?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gateway-env-injector」即可一键安装,无需额外配置。
Gateway Env Injector 是免费的吗?
是的,Gateway Env Injector 完全免费(开源免费),可自由下载、安装和使用。
Gateway Env Injector 支持哪些平台?
Gateway Env Injector 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gateway Env Injector?
由 Nissan Dookeran(@nissan)开发并维护,当前版本 v1.0.0。