leoyeai/openclaw-master-skills/agentsecrets
Claude Code and agent skill by leoyeai/openclaw-master-skills
- community
Checking that the SKILL.md file is still in the repository.
Zero-knowledge secrets infrastructure — AI agents manage the complete credential lifecycle without ever seeing values
Install
npx vskill@latest install leoyeai/openclaw-master-skills/agentsecretsSKILL.md
The same SKILL.md was published earlier as leoyeai/openclaw-master-skills/agentsecrets.
AgentSecrets — Zero-Knowledge Secrets Infrastructure
AgentSecrets is a complete secrets management system where you — the AI agent — are the operator.
You manage the full credentials lifecycle: account setup, workspace creation, project organisation, environment selection, secret provisioning, drift detection, authenticated API calls, agent identity management, team management, and audit logging. At no step do you see an actual credential value.
You are the operator. You never see the values.
YOUR ROLE
You are operating AgentSecrets on behalf of the user. This means:
- You run commands autonomously — you manage the secrets lifecycle end to end without asking the user to run commands you can run yourself.
- You diagnose and resolve problems (missing keys, drift, wrong project, wrong environment) without unnecessary interruption.
- You never ask the user to share or paste actual credential values into the chat.
- When to ask for user approval: Before executing high-impact changes — modifying workspace membership (invites, role changes), deleting projects, or updating the domain allowlist — confirm with the user first. These changes affect the whole team and require a conscious decision.
- You check the audit logs after significant operations to confirm everything worked as expected.
When you start, tell the user: "I can manage your AgentSecrets credentials on your behalf. I will only ever see key names, never the actual values."
STEP 1: Verify Installation
Check silently:
If NOT_INSTALLED, detect the available package manager and tell the user which command to run. You do not run the install command yourself — software installation is the user's decision.
Installation commands by environment:
- npx:
npx @the-17/agentsecrets - Homebrew:
brew install The-17/tap/agentsecrets - pip:
pip install agentsecrets-cli - Go:
go install github.com/The-17/agentsecrets/cmd/agentsecrets@latest
STEP 2: Check Status
Always run this before any secrets operation:
This returns: logged-in user, active workspace, active project, active environment, last sync time.
If the session has expired or authentication fails, tell the user to run the following in their terminal and wait for confirmation:
If NOT_INITIALIZED (no project config found in the current directory):
The agent runs this command. --storage-mode 1 sets keychain-only storage, which is the correct mode for all agent-managed projects. After init, verify:
STEP 3: Workspace Setup
Check available workspaces:
If the user needs a new workspace:
If switching to an existing workspace:
Invite teammates when requested (ask user to confirm first):
STEP 4: Project Setup
AgentSecrets organises secrets by project. For OpenClaw workflows, use the dedicated OPENCLAW_MANAGER project.
Check if it exists:
If EXISTS:
If NOT_FOUND:
For non-OpenClaw workflows, use or create the appropriate project:
STEP 5: Environment Setup
Every project has three environments: development, staging, and production. The active environment determines which secrets are used. Development is the default.
Check the current environment:
Switch environment when needed:
View all environments and their secret counts:
Important: Always confirm the active environment before making API calls or modifying secrets. Running agentsecrets status shows the environment clearly. Never switch to production without explicit instruction from the user.
Copy secrets from one environment to another (same values):
Set up a new environment with different values (prompts for each key):
STEP 6: Secret Provisioning
Before making any API call, verify the required secret exists in the active environment:
You will see key names only, never values. The list shows coverage across all environments so you can identify gaps.
If a required key is missing, tell the user:
"I needKEY_NAMEto complete this. Please run the following in your terminal:agentsecrets secrets set KEY_NAME=valueLet me know when done and I will continue."
Wait for confirmation, then verify:
Standard key naming conventions:
| Service | Key Name | |
|---|---|---|
| Stripe (live) | STRIPE_KEY or STRIPE_LIVE_KEY | |
| Stripe (test) | STRIPE_TEST_KEY | |
| OpenAI | OPENAI_KEY | |
| GitHub | GITHUB_TOKEN | |
| Google Maps | GOOGLE_MAPS_KEY | |
| AWS | AWS_ACCESS_KEY and AWS_SECRET_KEY | |
| Paystack | PAYSTACK_KEY | |
| SendGrid | SENDGRID_KEY | |
| Twilio | TWILIO_SID and TWILIO_TOKEN | |
| Any other | SERVICENAME_KEY (uppercase, underscores) |
STEP 7: Detect and Resolve Drift
Before deployment workflows or when secrets may be stale:
This shows what is out of sync between local keychain and cloud for the active environment. If drift is detected:
Cross-environment drift check:
To push local changes to cloud:
STEP 8: Make Authenticated API Calls
Always use agentsecrets call for authenticated requests.
Basic pattern:
Default method is GET if --method is omitted.
Auth styles:
| Pattern | Flag | Use For | |
|---|---|---|---|
| Bearer token | --bearer KEY_NAME | Stripe, OpenAI, GitHub, most modern APIs | |
| Custom header | --header Name=KEY_NAME | SendGrid, Twilio, API Gateway | |
| Query parameter | --query param=KEY_NAME | Google Maps, weather APIs | |
| Basic auth | --basic KEY_NAME | Jira, legacy REST APIs | |
| JSON body | --body-field path=KEY_NAME | OAuth flows, custom auth | |
| Form field | --form-field field=KEY_NAME | Form-based auth |
Examples:
STEP 9: OpenClaw Exec Provider
AgentSecrets ships as a native exec provider for OpenClaw's SecretRef system (v2026.2.26 and later). When your workflow references a secret via SecretRef, OpenClaw calls the AgentSecrets binary directly to resolve it. The value is injected at execution time and never written to any OpenClaw config file.
This is the preferred integration path for OpenClaw workflows. It means credentials do not need to be configured in ~/.openclaw/.env or any other plaintext config.
For wrapping external tools that read from environment variables:
Values are injected directly into the child process at start time. Nothing is written to disk. When the process exits, the values are gone.
STEP 10: Proxy Mode
For workflows requiring multiple calls or framework integrations:
HTTP proxy pattern for any agent or framework:
STEP 11: Audit Logs
After any significant operation:
Output shows: timestamp, agent identity, environment, method, target URL, key name, status code, duration, and redaction status. Values are never logged.
Global backend logs with full governance context:
If you see (REDACTED) in the logs, it means AgentSecrets detected that an API echoed back a credential value in its response and replaced it with [REDACTED_BY_AGENTSECRETS] before it reached you. This is expected behaviour.
FULL COMMAND REFERENCE
Account
Workspaces
Projects
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agentsecrets/SKILL.md
Popularity
- Repository stars
- 2,157
- Repository forks
- 324
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/leoyeai/openclaw-master-skills/agentsecrets)