360 Secure SkillHub
360 安全技能中心

Secret Manager

提供 secret-manager CLI:借助 libsecret/GNOME Keyring 安全保存 API 密钥,将其注入 OpenClaw 的 auth-profiles.json,传播到 systemd 用户环境,并重启 Distrobox 容器内的 OpenClaw Gateway 服务;路径可用环境变量覆盖。

分类:安全
jswortz
jswortz
热度 50.49
最近更新 2026-05-18 12:00:49

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jswortz/secret-manager
兼容性
OpenClaw 专属
联网要求
不联网
数据出网
数据不出本机
Metadata
name
secret-manager
description
Manage API keys securely via GNOME Keyring and inject them into OpenClaw config.
homepage
https://github.com/openclaw/skills
metadata
{"clawdbot":{"emoji":"🔐","requires":{"bins":["secret-tool","systemctl","python3"]},"install":[{"id":"bash","kind":"bash","bin":"secret-manager.sh","label":"Install Secret Manager (bash)"}]}}

Secret Manager

A secure way to manage API keys for OpenClaw using the system keyring (GNOME Keyring / libsecret).

This skill provides a secret-manager CLI that:

  1. Stores API keys securely using secret-tool.
  2. Injects them into your auth-profiles.json.
  3. Propagates them to systemd user environment.
  4. Restarts the OpenClaw Gateway service inside your Distrobox container.

Installation

Ensure you have the dependencies:

  • Debian/Ubuntu: sudo apt install libsecret-tools
  • Fedora: sudo dnf install libsecret
  • Arch: sudo pacman -S libsecret

Copy the script to your path or run it directly.

Configuration

The script uses default paths that work for most OpenClaw installations, but you can override them with environment variables:

Variable Description Default
OPENCLAW_CONTAINER Name of the Distrobox container clawdbot
OPENCLAW_HOME Path to OpenClaw config directory ~/.openclaw
SECRETS_ENV_FILE Path to an optional .env file to source ~/.config/openclaw/secrets.env

Usage

List all configured keys:

secret-manager list

Set a key (interactive prompt):

secret-manager OPENAI_API_KEY
# (Paste key when prompted)

Set a key (direct):

secret-manager DISCORD_BOT_TOKEN "my-token-value"

Supported Keys:

  • OPENAI_API_KEY
  • GEMINI_API_KEY
  • DISCORD_BOT_TOKEN
  • GATEWAY_AUTH_TOKEN
  • OLLAMA_API_KEY
  • GIPHY_API_KEY
  • GOOGLE_PLACES_API_KEY
  • LINKEDIN_LI_AT
  • LINKEDIN_JSESSIONID