跳到正文
TakoAPI
返回技能列表

secret-manager

由 jswortz 提供

Coding Agents & IDEs
997下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Manage API keys securely via GNOME Keyring and inject them into OpenClaw config.

描述

该技能的功能

CLI tool that stores API keys in GNOME Keyring via libsecret and syncs them to OpenClaw config files and the systemd user environment. Supports keys for OpenAI, Gemini, Discord, GIPHY, Google Places, LinkedIn, and Ollama. Restarts the OpenClaw Gateway inside a Distrobox container after updates.

Keeps credentials in the OS keyring rather than plaintext config files, reducing the risk of accidental exposure via dotfiles or version control.

何时使用

  • Storing an OpenAI API key without hardcoding it in config files
  • Rotating a Discord bot token across all OpenClaw services at once
  • Listing all currently configured API keys from the command line
  • Setting up a fresh OpenClaw installation with all required credentials
  • Propagating a new Gemini API key to the running gateway without manual restarts

示例工作流

输入

User asks: add my OpenAI API key to OpenClaw

智能体
  1. 1

    Run 'secret-manager list' to check existing keys

  2. 2

    Run 'secret-manager OPENAI_API_KEY' and prompt user to paste the key

  3. 3

    Script stores the key in GNOME Keyring via secret-tool

  4. 4

    Script injects the key into auth-profiles.json and propagates it to systemd user environment

  5. 5

    Script restarts the OpenClaw Gateway service inside the Distrobox container

输出

OPENAI_API_KEY stored in system keyring and active in the running OpenClaw Gateway

前置要求

  • libsecret-tools system package (apt install libsecret-tools / dnf install libsecret / pacman -S libsecret)
  • API keys for each service to be configured (e.g. OPENAI_API_KEY, GEMINI_API_KEY, DISCORD_BOT_TOKEN)
  • GNOME Keyring running (standard on GNOME-based Linux desktops)

安装

clawhub install jswortz/secret-manager

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接