Secure Key Manager logo

Secure Key Manager

Community
wulaosiji
secure-key-manager

企业级AI Agent密钥管理工具,使用AES-256-GCM加密和PBKDF2HMAC密钥派生(48万轮),支持运行时解密、自动输出脱敏和严格文件权限(0600),替代TOOLS.md中的明文密钥存储。 Use when: "密钥管理", "API key加密", "密钥加密存储", "secure key storage", "API key encryption", "密钥保护", "secret management", "key rotation". 按需解密、内存中不持久化明文、输出自动脱敏,支持密钥轮换和审计。Cross-references: security-hardening, skill-security-audit, security-drill. Built by UniqueClub 🌐 https://uniqueclub.ai

Overview

Publisherwulaosiji
Repositoryskills
Skill namesecure-key-manager
Stars
28
Forks
11
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by wulaosiji on GitHub. Read the source before you install it.

Installation

Install the Secure Key Manager AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/wulaosiji/skills/tree/main/secure-key-manager
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wulaosiji/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/secure-key-manager .claude/skills/secure-key-manager
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Secure Key Manager in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Secure Key Manager on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Secure Key Manager is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Secure Key Manager

AES-256-GCM encrypted key storage for AI agents.

When to Use

Use this skill when:

  • Storing API keys or secrets that should not be in plaintext
  • Migrating from hardcoded keys in TOOLS.md to encrypted storage
  • Implementing output sanitization to prevent accidental key leakage
  • Rotating compromised keys in a secure vault

Do NOT use this skill if:

  • You are deploying general security controls → use security-hardening
  • You need to audit existing skills → use skill-security-audit
  • Keys need to be shared across many team members (use enterprise vaults)

Typical triggers:

  • 「加密存储API Key」「密钥管理」「安全存储密码」
  • "encrypt my API keys", "secure vault", "key manager"
  • 「API密钥加密」「secret storage」「key rotation」
  • "敏感信息存储", "API密钥安全", "password vault"

Workflow

遵循六步推进法(探查→约束→证据→执行→验证→交付)完成操作。

  1. 探查 (Probe) 完整读取当前密钥存储状态,确认需要管理的密钥列表和现有存储方式(TOOLS.md明文、环境变量等)。

  2. 约束 (Constrain) 设定加密标准和不可降级的安全边界——AES-256-GCM、PBKDF2HMAC 48万轮、文件权限0600。受阻时换通道,不降级交付物。

  3. 证据 (Evidence) 记录密钥迁移前后的状态,每个密钥条目有名称、描述和创建时间。不记录明文密钥值。

  4. 执行 (Execute) 初始化保险库并存储密钥,先给影响与结论,再给行动和必要证据。

初始化:

bash
cd skills/secure-key-manager
python3 key_manager.py init
# Enter a strong password when prompted

存储密钥:

bash
python3 key_manager.py set \
  -p "your-password" \
  -n "brave-search-api-key" \
  -v "BSAxxxxx..." \
  -d "Brave Search API Key"

运行时获取:

python
from key_manager import SecureKeyManager

manager = SecureKeyManager()
manager.unlock("your-password")
api_key = manager.get_key("brave-search-api-key")
# Use api_key for API call, then clear from memory

输出脱敏:

python
from key_manager import sanitize_output
safe_output = sanitize_output(raw_output)  # Auto-redacts patterns

列出和轮换:

bash
python3 key_manager.py list -p "your-password"
# To rotate: delete old key, set new key with same name
  1. 验证 (Verify) 用不同于生成路径的方式回读——检查加密文件权限为0600,验证解密后密钥与原始值一致,确认输出脱敏能正确识别并遮蔽密钥模式。

  2. 交付 (Deliver) 返回保险库初始化结果和密钥存储状态,设置定期轮换提醒。如怀疑泄露,立即执行事件响应流程。

Output

  • 初始化:返回保险库创建状态和文件路径
  • 存储密钥:返回存储成功/失败状态
  • 获取密钥:返回解密后的密钥字符串(仅运行时使用)
  • 列出密钥:返回密钥名称列表(不含明文值)
  • 输出脱敏:返回脱敏后的安全字符串

Guardrails

以下约束确保安全、可靠地使用本技能。

Anti-patterns

  • NEVER store the vault password in code or environment variables on shared systems
  • NEVER commit .secrets.enc or .salt files to public repositories
  • NEVER disable output sanitization in production

Security Layers

  • File permissions: 0600 (owner read/write only)
  • Encryption: AES-256-GCM with authenticated encryption
  • Key derivation: PBKDF2HMAC with 480,000 iterations + random salt
  • Runtime behavior: decrypt on-demand, no persistent cleartext in memory

Incident Response If leakage suspected:

  1. Immediately revoke exposed keys at the provider
  2. Rotate keys in the vault: set new value for same key name
  3. Review audit logs for unauthorized access patterns

Related Skills

  • security-hardening — Deploy comprehensive security controls including input filtering
  • skill-security-audit — Audit skills to detect hardcoded keys before migration
  • security-drill — Validate that key leakage scenarios are handled correctly

About UniqueClub

This skill is part of the UniqueClub security toolkit. 🌐 https://uniqueclub.ai

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Secure Key Manager AI skill do?

企业级AI Agent密钥管理工具,使用AES-256-GCM加密和PBKDF2HMAC密钥派生(48万轮),支持运行时解密、自动输出脱敏和严格文件权限(0600),替代TOOLS.md中的明文密钥存储。 Use when: "密钥管理", "API key加密", "密钥加密存储", "secure key storage", "API key encryption", "密钥保护", "secret management", "key rotation". 按需解密、内存中不持久化明文、输出自动脱敏,支持密钥轮换和审计。Cross-references: security-hardening, skill-security-audit, security-drill. Built by UniqueClub 🌐 https://uniqueclub.ai

Why use Secure Key Manager on TypingMind?

Because you install it once and use it with any model. Secure Key Manager is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Secure Key Manager in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/wulaosiji/skills/tree/main/secure-key-manager. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Secure Key Manager?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Secure Key Manager?

As many as you like. As long as a model supports skills, you can use Secure Key Manager with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Secure Key Manager AI skill free?

It is published on GitHub by wulaosiji. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇