leoyeai/openclaw-master-skills/agentsecrets

Claude Code and agent skill by leoyeai/openclaw-master-skills

Trust tier 2
  • community
LLM review pending
Source check pending

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/agentsecrets

SKILL.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:

bash
agentsecrets --version 2>/dev/null && echo "INSTALLED" || echo "NOT_INSTALLED"

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.

bash
which npx # Node.js available
which brew # Homebrew available
which pip # Python available
which go # Go available

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:

bash
agentsecrets status

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:

bash
agentsecrets login

If NOT_INITIALIZED (no project config found in the current directory):

bash
agentsecrets init --storage-mode 1

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:

bash
agentsecrets status

STEP 3: Workspace Setup

Check available workspaces:

bash
agentsecrets workspace list

If the user needs a new workspace:

bash
agentsecrets workspace create "Workspace Name"
agentsecrets workspace switch "Workspace Name"

If switching to an existing workspace:

bash
agentsecrets workspace list
agentsecrets workspace switch "Workspace Name"

Invite teammates when requested (ask user to confirm first):

bash
agentsecrets workspace invite user@email.com

STEP 4: Project Setup

AgentSecrets organises secrets by project. For OpenClaw workflows, use the dedicated OPENCLAW_MANAGER project.

Check if it exists:

bash
agentsecrets project list 2>/dev/null | grep -q "OPENCLAW_MANAGER" && echo "EXISTS" || echo "NOT_FOUND"

If EXISTS:

bash
agentsecrets project use OPENCLAW_MANAGER

If NOT_FOUND:

bash
agentsecrets project create OPENCLAW_MANAGER
agentsecrets project use OPENCLAW_MANAGER

For non-OpenClaw workflows, use or create the appropriate project:

bash
agentsecrets project list
agentsecrets project use PROJECT_NAME
# or
agentsecrets project create PROJECT_NAME
agentsecrets project use PROJECT_NAME

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:

bash
agentsecrets status
# Shows: Environment: development

Switch environment when needed:

bash
agentsecrets environment switch production
agentsecrets environment switch staging
agentsecrets environment switch development

View all environments and their secret counts:

bash
agentsecrets environment list

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):

bash
agentsecrets environment copy development staging

Set up a new environment with different values (prompts for each key):

bash
agentsecrets environment merge staging production
# This ideally should be done by the user

STEP 6: Secret Provisioning

Before making any API call, verify the required secret exists in the active environment:

bash
agentsecrets secrets list

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 need KEY_NAME to complete this. Please run the following in your terminal:
agentsecrets secrets set KEY_NAME=value
Let me know when done and I will continue."

Wait for confirmation, then verify:

bash
agentsecrets secrets list

Standard key naming conventions:

ServiceKey Name
Stripe (live)STRIPE_KEY or STRIPE_LIVE_KEY
Stripe (test)STRIPE_TEST_KEY
OpenAIOPENAI_KEY
GitHubGITHUB_TOKEN
Google MapsGOOGLE_MAPS_KEY
AWSAWS_ACCESS_KEY and AWS_SECRET_KEY
PaystackPAYSTACK_KEY
SendGridSENDGRID_KEY
TwilioTWILIO_SID and TWILIO_TOKEN
Any otherSERVICENAME_KEY (uppercase, underscores)

STEP 7: Detect and Resolve Drift

Before deployment workflows or when secrets may be stale:

bash
agentsecrets secrets diff

This shows what is out of sync between local keychain and cloud for the active environment. If drift is detected:

bash
agentsecrets secrets pull

Cross-environment drift check:

bash
agentsecrets secrets diff --from development --to production
# Shows keys present in development but missing in production

To push local changes to cloud:

bash
agentsecrets secrets push

STEP 8: Make Authenticated API Calls

Always use agentsecrets call for authenticated requests.

Basic pattern:

bash
agentsecrets call --url <URL> --method <METHOD> --<AUTH_STYLE> <KEY_NAME>

Default method is GET if --method is omitted.

Auth styles:

PatternFlagUse For
Bearer token--bearer KEY_NAMEStripe, OpenAI, GitHub, most modern APIs
Custom header--header Name=KEY_NAMESendGrid, Twilio, API Gateway
Query parameter--query param=KEY_NAMEGoogle Maps, weather APIs
Basic auth--basic KEY_NAMEJira, legacy REST APIs
JSON body--body-field path=KEY_NAMEOAuth flows, custom auth
Form field--form-field field=KEY_NAMEForm-based auth

Examples:

bash
# GET request
agentsecrets call --url https://api.stripe.com/v1/balance --bearer STRIPE_KEY
# POST with body
agentsecrets call \
--url https://api.stripe.com/v1/charges \
--method POST \
--bearer STRIPE_KEY \
--body '{"amount":1000,"currency":"usd","source":"tok_visa"}'
# Custom header
agentsecrets call \
--url https://api.sendgrid.com/v3/mail/send \
--method POST \
--header X-Api-Key=SENDGRID_KEY \
--body '{"personalizations":[...]}'
# Query parameter
agentsecrets call \
--url "https://maps.googleapis.com/maps/api/geocode/json?address=Lagos" \
--query key=GOOGLE_MAPS_KEY
# Multiple credentials
agentsecrets call \
--url https://api.example.com/data \
--bearer AUTH_TOKEN \
--header X-Org-ID=ORG_SECRET
# Basic auth
agentsecrets call \
--url https://jira.example.com/rest/api/2/issue \
--basic JIRA_CREDS
# Paystack
agentsecrets call \
--url https://api.paystack.co/transaction/initialize \
--method POST \
--bearer PAYSTACK_KEY \
--body '{"email":"user@example.com","amount":10000}'

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.

bash
agentsecrets exec

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:

bash
agentsecrets env -- stripe mcp
agentsecrets env -- node server.js
agentsecrets env -- npm run dev

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:

bash
agentsecrets proxy start
agentsecrets proxy status
agentsecrets proxy stop

HTTP proxy pattern for any agent or framework:

POST http://localhost:8765/proxy
X-AS-Target-URL: https://api.stripe.com/v1/balance
X-AS-Inject-Bearer: STRIPE_KEY

STEP 11: Audit Logs

After any significant operation:

bash
agentsecrets proxy logs
agentsecrets proxy logs --last 20
agentsecrets proxy logs --secret STRIPE_KEY
agentsecrets proxy logs --env production

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:

bash
agentsecrets log list
agentsecrets log list --agent billing-tool
agentsecrets log list --identity anonymous # find calls with no identity set
agentsecrets log summary --since 7d
agentsecrets log export --format csv --since 30d
agentsecrets log detail <id>

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
bash
agentsecrets init # Set up account or initialise a new project
agentsecrets init --storage-mode 1 # Init with keychain-only mode
agentsecrets login # Login to existing account
agentsecrets logout # Clear session
agentsecrets status # Current context — workspace, project, environment
Workspaces
bash
agentsecrets workspace create "Name" # Create workspace
agentsecrets workspace list # List all workspaces
agentsecrets workspace switch "Name" # Switch active workspace
agentsecrets workspace invite user@email # Invite teammate
Projects
bash
agentsecrets project create NAME # Create project
agentsecrets project list # List projects in workspace
agentsecrets project use NAME # Set active project
agentsecrets project update NAME # Update project
agentsecrets project delete NAME # Delete project

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/leoyeai/openclaw-master-skills/agentsecrets/badge)](https://verified-skill.com/skills/leoyeai/openclaw-master-skills/agentsecrets)

Something wrong with this skill or its page? Tell us.