← All skills
Tencent SkillHub Β· Developer Tools

API Keys UI

Vault-backed API Keys management for OpenClaw. Secure file-based secret storage with one-click migration from plaintext config, dynamic key discovery, and pl...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Vault-backed API Keys management for OpenClaw. Secure file-based secret storage with one-click migration from plaintext config, dynamic key discovery, and pl...

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
INSTALL_INSTRUCTIONS.md, SKILL.md, reference/apikeys-controller.ts, reference/apikeys-views.ts, reference/secrets-rpc.ts, reference/skills-controller.ts

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
3.0.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 25 sections Open source page

Vault Enhancements w/ UI v3.0.0

Vault-backed API key management for the OpenClaw Control dashboard. Keys are stored in a secure file (~/.openclaw/secrets.json, mode 0600) and referenced via OpenClaw's built-in Secrets System. The AI agent never sees your keys.

Status: βœ… Active

ComponentStatusVault File Storageβœ… WorkingSecret References (SecretRef)βœ… WorkingDynamic Key Discoveryβœ… WorkingOne-Click Migrationβœ… WorkingPlugin-Registered Tabβœ… WorkingVault Status Bannerβœ… WorkingKey Status Badgesβœ… WorkingVault-Only Keys Sectionβœ… WorkingManual "+ Add Secret" Formβœ… WorkingRestart Notification Bannerβœ… WorkingSkills Vault Key Selectorβœ… WorkingSkills Inline Key Creationβœ… WorkingAuth Profiles Displayβœ… Working

1. Vault-Backed Storage

Keys are stored in ~/.openclaw/secrets.json (file permissions 0600). When you save a key, the UI: Writes the value to the vault file Configures the file secret provider in openclaw.json (if not already present) Replaces the plaintext config value with a SecretRef object Shows a restart notification β€” user must restart gateway for changes to take effect Config before migration: { "env": { "OPENAI_API_KEY": "sk-proj-abc123..." } } Config after migration: { "env": { "OPENAI_API_KEY": { "source": "file", "provider": "default", "id": "/OPENAI_API_KEY" } }, "secrets": { "providers": { "default": { "source": "file", "path": "~/.openclaw/secrets.json", "mode": "json" } }, "defaults": { "file": "default" } } } Vault file (~/.openclaw/secrets.json): { "OPENAI_API_KEY": "sk-proj-abc123..." }

2. One-Click Migration

The "πŸ”’ Migrate to Vault" button appears when plaintext keys are detected. It: Scans openclaw.json for all plaintext API key values Moves each to the vault file Replaces with SecretRef objects in config Auto-configures the file provider if needed Reports what was migrated

3. Dynamic Key Discovery

The UI automatically scans the entire config for API keys β€” no hardcoded list. Detection patterns: apiKey, api_key, token, secret, *_KEY, *_TOKEN, *_SECRET Where it looks: env.* β€” Environment variables skills.entries.*.apiKey β€” Skill-specific keys messages.tts.*.apiKey β€” TTS provider keys Any nested config path Known providers get friendly names, descriptions, and "Get key β†—" links: ProviderEnv KeyAnthropicANTHROPIC_API_KEYOpenAIOPENAI_API_KEYGoogle / GeminiGOOGLE_API_KEY / GEMINI_API_KEYBrave SearchBRAVE_API_KEYElevenLabsELEVENLABS_API_KEYDeepgramDEEPGRAM_API_KEYOpenRouterOPENROUTER_API_KEYGroqGROQ_API_KEYFireworksFIREWORKS_API_KEYMistralMISTRAL_API_KEYxAI (Grok)XAI_API_KEYPerplexityPERPLEXITY_API_KEYGitHubGITHUB_TOKENHume AIHUME_API_KEY / HUME_SECRET_KEY

4. Vault Status Banner

Top of the page shows: πŸ”’ Vault Active (green) β€” All keys in vault, provider configured ⚠️ X Plaintext Keys Detected (yellow) β€” Migration recommended

5. Key Status Badges

Each key row shows: VAULT (green) β€” Stored in secure vault file PLAINTEXT (yellow) β€” Still in config as raw string NOT SET (grey) β€” Not configured

6. Vault-Only Keys Section

Keys stored in the vault that aren't referenced by any config path are displayed in a dedicated "Vault-Only Keys" card. These are keys created manually or by skills that don't have a corresponding env/config entry. Each shows: πŸ”’ icon with the key name (monospace) Masked value preview Delete button

7. Manual "+ Add Secret" Form

The Vault tab header includes a "+ Add Secret" button that expands an inline form: KEY_NAME input (monospace, UPPER_SNAKE_CASE recommended) Secret value input (password field) Save / Cancel buttons Writes to vault with envEntry: false β€” no config entry created, no restart triggered Key appears immediately in the "Vault-Only Keys" section

8. Restart Notification Banner

When a vault write triggers a config change, a yellow warning banner appears: ⚠ New secrets require a gateway restart to take effect. [Restart Now] The banner persists until the user clicks "Restart Now" or refreshes. This replaces the previous auto-reload behavior that caused unexpected gateway restarts.

9. Skills Vault Key Selector

On the Skills tab, skills that declare a primaryEnv get a vault key selector instead of a raw password input: When unlinked: Dropdown shows all vault keys with πŸ”’ icons "Select vault key for ENV_NAME…" placeholder Selecting a key writes a SecretRef to skills.entries.<key>.apiKey in config "οΌ‹ Add new vault key…" option opens inline creation form When linked: Shows πŸ”’ KEY_NAME with an "Unlink" button Unlink removes the SecretRef from config Inline key creation: KEY_NAME + Secret value fields "Save & Link" creates the vault key and links it to the skill in one step Key also appears in the Vault tab's vault-only keys section

10. Skills Expanded by Default

All skill groups (workspace, built-in, managed) render expanded (<details open>) for better discoverability. Previously workspace and built-in were collapsed by default.

11. Auth Profiles Display

Auth profile keys (from auth-profiles.json) that are stored in the vault are listed with their status. Backend RPCs support listing, error reset, and deletion.

Security Model

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Browser β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Vault Tab β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ β”‚ β”‚ OpenAI: [β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’] [Save] [βœ•] 🟒VAULT β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Anthropic: [ ] [Save] βšͺNOT SETβ”‚ β”‚ β”‚ β”‚ β”‚ β”‚ + Add Secret [KEY_NAME] [value] [Save] β”‚ β”‚ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Skills Tab β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ β”‚ β”‚ whisper-api: πŸ”’ OPENAI_API_KEY [Unlink] β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ sag: [Select vault key β–Ύ] β”‚ β”‚ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β–Ό (direct RPC, not via agent) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β” β”‚ Gateway β”‚ β”‚ secrets.write β”‚ β”‚ skills.update β”‚ β””β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”˜ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β” β”Œβ”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ secrets. β”‚ β”‚ openclaw.json β”‚ β”‚ json β”‚ β”‚ (SecretRef β”‚ β”‚ (0600) β”‚ β”‚ objects only) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Backend RPCs

MethodDescriptionsecrets.statusVault file status, key count, plaintext countsecrets.listList secret IDs with masked valuessecrets.writeStore key in vault + optionally update config with SecretRef. envEntry param (default true) controls whether an env block entry is created. Returns restartNeeded flag instead of auto-reloading.secrets.deleteRemove from vault + configsecrets.migrateBatch-migrate all plaintext keys to vaultsecrets.authProfiles.listList auth profile keys with vault statussecrets.authProfiles.resetErrorsReset auth profile error statesecrets.authProfiles.deleteDelete an auth profileskills.updateUpdated with vaultKeyId param β€” writes a SecretRef to skills.entries.<key>.apiKey or unlinks (empty string)

Skills-Status Integration

SkillStatusEntry includes a vaultKeyId field that reads the raw config JSON (not the runtime-resolved config where SecretRefs are replaced with resolved strings). This is done via extractVaultKeyIdFromConfig() which reads and caches openclaw.json directly, checking for SecretRef objects in skills.entries.<key>.apiKey.

Restart Behavior

No auto-restart on vault save. Previously, secrets.write called reloadSecrets() which could trigger a gateway restart. Now: Vault-only saves (envEntry: false) don't touch config β€” no restart needed Config-touching saves return restartNeeded: true β€” UI shows a restart banner Skills vault linking writes to config via writeConfigFile() β€” triggers the config file watcher which causes a gateway restart (inherent to the config watcher system)

OpenClaw Secrets System Integration

This skill uses OpenClaw's built-in Secrets System (src/secrets/): File provider: { source: "file", path: "~/.openclaw/secrets.json", mode: "json" } SecretRef format: { source: "file", provider: "default", id: "/<KEY_NAME>" } Runtime resolution: prepareSecretsRuntimeSnapshot() resolves all refs at gateway startup Security: File permissions checked (0600), ownership verified, path guards The secrets system also supports env and exec providers for advanced setups (e.g., environment variables, external vault commands). The file provider is the default for this UI.

Files Modified (Source Locations in OpenClaw Repo)

FilePurposesrc/gateway/server-methods/secrets.tsVault RPCs (status, list, write, delete, migrate, authProfiles)src/gateway/server-methods/skills.tsSkills update with vaultKeyId paramsrc/gateway/server-methods/plugins-ui.tsPlugin view registrationsrc/gateway/protocol/schema/agents-models-skills.tsvaultKeyId in SkillsUpdateParamsSchemasrc/agents/skills-status.tsvaultKeyId field on SkillStatusEntry, raw config readerui/src/ui/controllers/apikeys.tsVault-aware state, addVaultSecret, loadVaultOnlyKeysui/src/ui/controllers/skills.tsVaultKeyEntry type, loadVaultKeys, linkSkillToVaultKey, addVaultKeyAndLinkui/src/ui/views/apikeys.tsVault UI (banners, badges, migration, add form, vault-only keys, restart banner)ui/src/ui/views/skills.tsVault key selector dropdown, inline creation, expanded groupsui/src/ui/app.tsState properties (vault, restart, skill key management)ui/src/ui/app-render.tsProp wiring for vault and skillsui/src/ui/app-settings.tsTab load triggers for vault keysui/src/ui/types.tsvaultKeyId on SkillStatusEntryui/src/ui/navigation.tsVault tab (lock icon), removed 1password/discord standalone tabs

Reference Files

apikeys-ui/ β”œβ”€β”€ SKILL.md # This file β”œβ”€β”€ INSTALL_INSTRUCTIONS.md # Step-by-step installation (legacy) └── reference/ β”œβ”€β”€ apikeys-controller.ts # UI controller (vault tab) β”œβ”€β”€ apikeys-views.ts # UI view (vault tab) β”œβ”€β”€ secrets-rpc.ts # Backend vault RPCs β”œβ”€β”€ skills-controller.ts # UI controller (skills vault integration) β”œβ”€β”€ skills-views.ts # UI view (vault key selector) β”œβ”€β”€ skills-status.ts # Backend skill status with vaultKeyId └── skills-rpc.ts # Backend skills update RPC

Key Design Decisions

No auto-restart on save β€” secrets.write no longer calls reloadSecrets(). A restart banner with "Restart Now" button lets the user decide when to restart. Vault-only keys β€” Keys created with envEntry: false don't appear in config. A separate secrets.list call finds all vault entries and shows orphan keys in a dedicated section. Raw config reading for vaultKeyId β€” The runtime resolves SecretRefs to strings, so loadConfig() returns resolved values. extractVaultKeyIdFromConfig() reads the raw JSON file directly (with mtime caching) to detect SecretRef objects. Skills expanded by default β€” All <details> groups render open for better UX. Collapsed-by-default hid skills that needed configuration. Skills use vault references, not plaintext β€” Skills with primaryEnv get a vault key selector dropdown instead of a password input. Linking writes a SecretRef to skills.entries.<key>.apiKey in config. Inline key creation from skills β€” "οΌ‹ Add new vault key…" in the skills dropdown creates a vault entry and links it in one step, reducing friction.

v3.0.0

Manual "+ Add Secret" form in Vault tab header β€” create vault keys without config entries Vault-Only Keys section β€” shows keys in vault not referenced by config Restart notification banner β€” yellow warning with "Restart Now" button replaces auto-reload Skills vault key selector β€” dropdown replaces raw password input for skills with primaryEnv Skills inline key creation β€” "οΌ‹ Add new vault key…" creates and links in one step Skills expanded by default β€” all groups open, no more collapsed-by-default vaultKeyId on SkillStatusEntry β€” reads raw config JSON to detect SecretRef objects envEntry param on secrets.write β€” controls whether an env block entry is created vaultKeyId param on skills.update β€” writes SecretRef or unlinks skill from vault key

v2.0.0

Vault-backed storage: Keys stored in ~/.openclaw/secrets.json (mode 0600) instead of plaintext config SecretRef integration: Config values replaced with OpenClaw SecretRef objects pointing to vault One-click migration: "Migrate to Vault" batch-migrates all plaintext keys Vault status banner: Green (all secure) or yellow warning (plaintext detected) Key badges: VAULT / PLAINTEXT / NOT SET per key New RPCs: secrets.status, secrets.list, secrets.write, secrets.delete, secrets.migrate Plugin UI registration: Moved from old nav to plugin architecture (settings group, position 1) Auto-provider config: Saving a key auto-configures the file secret provider if not present

v1.1.0

Dynamic key discovery β€” scans entire config instead of hardcoded list Auto-grouping by category (Environment / Skills / Other) Common env keys shown even if not configured

v1.0.0

Initial release with hardcoded provider slots Save/Clear functionality via config.patch

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
4 Scripts2 Docs
  • SKILL.md Primary doc
  • INSTALL_INSTRUCTIONS.md Docs
  • reference/apikeys-controller.ts Scripts
  • reference/apikeys-views.ts Scripts
  • reference/secrets-rpc.ts Scripts
  • reference/skills-controller.ts Scripts