Nopeek

From spences10/skills · View interactive version

Nopeek is an AI agent skill from the GitHub repository spences10/skills. Secret-safe agent sessions via nopeek CLI. Use when user asks about secrets, .env loading, credential safety, or keeping API keys out of conversation context.

How to use this skill

Skill file

nopeek — Secret Safety for Agent Sessions

Secure proxy between coding agents and your secrets. The agent knows key names, never key values. For choosing secret-safety tooling alongside recall, MCP, and database tools, use ecosystem-guide.

Why

Agent tool output can be sent to model providers and retained outside your machine. If a CLI prints a token, that token may enter conversation context or logs. nopeek reduces that risk.

Quick Start

All nopeek commands are safe inside agent sessions — they never output secret values, only key names.

1. Scan and migrate CLIs

pnpx nopeek init

Detects installed cloud CLIs (aws, hcloud, kubectl, etc.), checks their auth config, and migrates to profile-based auth where needed.

2. Load .env secrets

pnpx nopeek load .env
pnpx nopeek load .env --only DATABASE_URL,API_KEY

Injects values into the session via CLAUDE_ENV_FILE (when available) or outputs a source command. Only key names appear in output — never values.

3. Store arbitrary keys

pnpx nopeek set MY_API_KEY --from-env
pnpx nopeek set STRIPE_KEY --value "sk_live_..."

When installed in Claude Code, stored keys auto-load on each session via the SessionStart hook.

4. Verify

pnpx nopeek status
pnpx nopeek list

What the hooks do

| Hook | Event | Purpose |

| ---------------- | ---------------- | ------------------------------------------------------- |

| session-load.sh | SessionStart | Loads stored keys + CLI profiles into CLAUDE_ENV_FILE |

| redact-output.sh | PreToolUse(Bash) | Wraps cloud CLI output through secret pattern redaction |

Limitations

Audit .env files

pnpx nopeek audit

Scans current directory for .env files containing secrets and checks .gitignore coverage.

Troubleshooting

Keys not loading on session start:

Cloud CLI still showing secrets:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.