Skills Keys logo

Skills Keys

Community
Mikefluff
skills-keys

Manage API keys for the runner's --execute layer. CRUD on ~/.skills.env (chmod 600): list / add / update / remove / verify / export. Covers OpenAI, Gemini, BFL, FAL, Replicate, Runway, Kling, Suno, Eleven, Ideogram, Anthropic, S3. Use when: 'add my OpenAI key', 'rotate the Suno key', 'which keys are set', 'verify my key works'.

Overview

PublisherMikefluff
Repositoryskills
Skill nameskills-keys
Stars
26
Forks
2
Bundled files
3
LicenseMIT
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.

  • 3 bundled files

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

  • Open source

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

Installation

Install the Skills Keys 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/Mikefluff/skills/tree/main/skills/skills-keys
  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/Mikefluff/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/skills-keys .claude/skills/skills-keys
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Skills Keys 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 Skills Keys 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 Skills Keys 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.

This skill does NOT:

  • Store keys in macOS Keychain / Linux Secret Service (cross-platform parity matters more than OS-native vault for v1).
  • Encrypt the file at rest (chmod 600 is the v1 posture).
  • Manage non-runner keys (database creds, SSH keys, etc.).
  • Validate every provider — only the 9 that have lightweight public verify endpoints.

Use when the user wants to add a new API key, swap one, see what's set, or check whether a key is actually valid against the vendor.

ROLE

Read the user's intent (add/update/remove/list/verify/enable/disable/path/export) → call the matching common/runners/cli/keys.py subcommand → relay the result. Mask values when displaying. Prompt for value silently if not provided on the command line. Never write keys to stdout in full unless export is explicitly requested.

PIPELINE

  1. Parse intent: which subcommand and which arg(s).
  2. Run python3 scripts/run.py <subcommand> [args].
  3. Relay the output — already masked / colorized by the CLI.
  4. Optional follow-up: if user added a new key, suggest running skills-keys verify <KEY> to confirm it works.

MODES

Inspection

  • skills-keys list — show all keys with masked values + gate-flag indicator
  • skills-keys path — print the keys-file path (default ~/.skills.env; override via SKILLS_KEYS_FILE env var)
  • skills-keys verify — ping every supported provider's endpoint, report valid/invalid/unknown/unsupported per key
  • skills-keys verify OPENAI_API_KEY GEMINI_API_KEY — verify specific keys only

Mutation

  • skills-keys add OPENAI_API_KEY sk-proj-... — add or update
  • skills-keys add OPENAI_API_KEY — interactive (silent stdin read; not echoed)
  • skills-keys update OPENAI_API_KEY sk-new-... — alias for add
  • skills-keys remove OPENAI_API_KEY — delete the entry

Gate flags

Three keys are NOT API tokens but on/off gates for paid premium endpoints:

  • OPENAI_SORA_API_ENABLED — required to call Sora 2 (anti-accidental-spend gate)
  • LYRIA_API_ENABLED — required to call Lyria 3 Pro
  • SUNO_API_ENABLED — required to call Suno

Shortcut commands:

  • skills-keys enable SUNO_API_ENABLED — equivalent to add SUNO_API_ENABLED 1
  • skills-keys disable SUNO_API_ENABLED — equivalent to remove SUNO_API_ENABLED

Export

  • skills-keys export — print eval-ready lines:

    export OPENAI_API_KEY="sk-..."
    export GEMINI_API_KEY="..."

    Use to apply file changes to the CURRENT shell: eval "$(skills-keys export)". Plaintext output — only pipe to eval, don't share.

  • skills-keys export --mask — same shape but values masked, for inspection.

REFERENCES (load on demand)

FileWhen to load
references/usage.mdDetailed UX reference — what each subcommand prints, exit codes, interactive prompts, file format, precedence rules

EXAMPLES

See examples/before-after.md — 4 example sessions covering: first-time setup of OpenAI + Gemini, rotating a leaked Suno key, verifying a freshly-pasted key, enabling Lyria gate.

CONSTRAINTS

  • Values are masked in every output EXCEPT export without --mask. Logs / list / add confirmation print sk-pr…WXYZ style only.
  • The file is chmod 600. Skill enforces after every write.
  • Explicit shell exports win. If the user has export OPENAI_API_KEY=... in their .zshrc, the file entry is ignored — by design.
  • Interactive add reads via getpass — value not echoed to terminal or shell history.
  • Don't print full key in error messages. Errors reference env var NAMES, not values.
  • verify uses lightweight HTTP probes — costs $0, no generation. Only 9 providers covered (OpenAI, Gemini, Anthropic, BFL, Ideogram, Replicate, FAL, Runway, ElevenLabs). Suno / Kling / Lyria gate flags / S3 / SKILLS_* don't have verify — they show unsupported.
  • Network errors in verify show as unknown — not a key problem.
  • Don't auto-purge invalid keys. If verify reports invalid, the skill flags it but doesn't delete — the user might have just rotated the key in the vendor dashboard.
  • gate flags are NOT API keys. Use enable / disable for them, not add / remove. The skill warns when you try to misuse.
  • ~/.skills.env location is overrideable via SKILLS_KEYS_FILE=/custom/path. Useful for CI (where home dir might be ephemeral) or multi-profile setups.
  • Never commit ~/.skills.env to git. The home-dir location avoids accidental commits. If someone wants the file elsewhere (project root), they MUST add it to .gitignore.
  • For CI / GitHub Actions: don't use this skill. Use the platform's native secret management (secrets.OPENAI_API_KEY) which propagates to env vars. This skill is for local dev.

INVOCATION HINTS

When the user says any of:

  • "add my key", "store my OpenAI key", "save the Gemini key"
  • "rotate the key", "update / change / swap the X key"
  • "remove / delete the X key", "I leaked my Suno key, take it out"
  • "list keys", "what keys do I have set", "which providers are configured"
  • "verify my key", "test the OpenAI key", "is my key still valid"
  • "enable Suno", "turn on Lyria", "disable Sora"
  • "where do I put my keys", "where is the keys file"

RU triggers:

  • «добавь ключ OpenAI», «сохрани Gemini-ключ»
  • «обнови / поменяй / ротируй ключ X»
  • «удали ключ X», «утёк Suno-ключ, убери»
  • «покажи ключи», «какие ключи у меня заданы»
  • «проверь ключ X», «работает ли OpenAI-ключ»
  • «включи Suno», «выключи Lyria»
  • «где хранятся ключи», «куда вставлять ключи»

Default subcommand if intent is ambiguous: list (safe — masks everything).

This is a meta-skill, sibling to skills-update. Both wrap common/runners/cli/... plumbing. Their outputs are not Claude-produced text — they're tool outputs to be relayed honestly.

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 Skills Keys AI skill do?

Manage API keys for the runner's --execute layer. CRUD on ~/.skills.env (chmod 600): list / add / update / remove / verify / export. Covers OpenAI, Gemini, BFL, FAL, Replicate, Runway, Kling, Suno, Eleven, Ideogram, Anthropic, S3. Use when: 'add my OpenAI key', 'rotate the Suno key', 'which keys are set', 'verify my key works'.

Why use Skills Keys on TypingMind?

Because you install it once and use it with any model. Skills Keys 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 Skills Keys in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Mikefluff/skills/tree/main/skills/skills-keys. 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 Skills Keys?

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 Skills Keys?

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

Is the Skills Keys AI skill free?

Yes. It is published on GitHub by Mikefluff under the MIT license. 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 👇