Infisical Skill — AI skill for Claude Code
Infisical secret management skill for AI agents — keep API keys out of agent context.
How to install Infisical Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open grandamenium/infisical-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Infisical Skill does
Infisical secret management skill for AI agents — keep API keys out of agent context.
Alternatives in AI
- Vibeproxy — Native macOS menu bar app to use your Claude Code & ChatGPT subscriptions with AI coding tools - no API keys n 3.3k ★
- Dsh Plugin Subscriptions — Use ChatGPT (Codex), Claude, and Grok (X Premium) subscriptions as DeepSeek Harness LLM providers — OAuth logi 283 ★
- Real-World Pain Points — Project: https://github.com/Narwhal-Lab/MagicSkills For many teams building multi-agent systems, the first thi 277 ★
README
Infisical Secret Management Skill for AI Agents
The Problem: Secrets in Agent Context Are a Security Risk
When an AI agent holds API keys in its environment variables or system prompt, those secrets are:
- Visible in logs, traces, and conversation history
- Copied into every subagent or spawned worker context
- Exposed if a prompt injection attack extracts the context window
- Rotated manually with no audit trail
The blast radius of a single leaked key expands dramatically when that key lives in a long-running agent session touching dozens of services.
The Solution: Runtime Secret Fetching via Infisical
[Infisical](https://infisical.com) is an open-source secret vault. Instead of baking API keys into agent context, the agent fetches each secret at the moment it is needed, uses the value in the tool call, and discards it. The secret never persists in conversation history or logs.
Agent needs Stripe key
→ calls fetch_secret("STRIPE_SECRET_KEY")
→ Infisical returns the value
→ agent uses value in Stripe API call
→ value is gone — not stored, not logged
Setup
1. Create an Infisical account
Go to [app.infisical.com](https://app.infisical.com) and sign up (free tier available). Or self-host: see [Infisical self-hosting docs](https://infisical.com/docs/self-hosting/overview).
2. Create a project
In the Infisical dashboard, create a new project (e.g., "my-agent"). Note the **Project ID** — you will need it.
3. Add secrets
Inside the project, navigate to the **prod** environment (or create one). Add secrets as key-value pairs, e.g.:
OPENAI_API_KEY = sk-...
STRIPE_SECRET_KEY = sk_live_...
SENDGRID_API_KEY = SG....
4. Create a service token
Go to **Project Settings > Service Tokens** and create a token scoped to the environment your agent uses (e.g., `prod`, read-only). Copy the token — it starts with `st.`.
5. Configure your agent
Set two environment variables (these are the only things agen
Related Skills
Rapg
Local-first secret manager for the AI-agent era — keep API keys out of .env files and out of your agent transc
Motus
Keep API keys and tokens out of your AI coding agent. Redacts exact secret values from tool output and session
Claude Code Secret Guard
Claude Code mod that keeps API keys, tokens and passwords out of the model's context: gitleaks scans every too
Klarion
AI-powered secret scanner for code and git history. Finds leaked API keys, tokens and credentials with near-ze
AI Credential Safety
Guide to protecting API keys and credentials from AI agent exposure — .env safety, secret scanning, and Secret
AI Chatroom
A web group chat where Claude, ChatGPT, Grok and Gemini hang out and talk on their own, powered by your logged
Related Agents
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr
Secret Hunter
Hunts publicly-leaked credentials (API tokens, cloud keys, DB strings) that belong to a previously-ingested pr
Secret Guard
MUST be used whenever the user asks to scan for secrets, API keys, credentials, or tokens before a commit or i