New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Credential-safe Claude Code plugin that limits secret exposure through per-command guidance and output redaction.

version
0.0.24
GitHub stars
37
View on GitHub

What it does

  • Adds a nopeek skill and three hooks: hooks.json, redact-output.sh, and session-load.sh
  • Guides credential-dependent commands so secrets load per command rather than across the whole session
  • Redacts cloud CLI stdout on a best-effort basis, so secrets may still leak in some outputs
  • Designed for developers who run cloud CLIs that need credentials and .env files in Claude Code

Per-command credential guidance and best-effort cloud CLI stdout redaction. No session-wide credential loading. Powered by the nopeek CLI.

Add marketplace

/plugin marketplace add spences10/claude-code-toolkit

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install nopeek@claude-code-toolkit

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

nopeek — Per-command credentials

When the user says "use nopeek if you need keys", handle the CLI syntax and key selection yourself. Use npx, pnpx, or bunx as appropriate; prefer a reviewed, pinned local version for production credentials. Do not read secret files into tool output or put literal credentials in commands.

nopeek run .env --only API_KEY -- node ./script-that-reads-env.js
nopeek list
nopeek status
nopeek audit

Delivery rules

  • Prefer run in every harness, including Claude Code, Codex, Gemini CLI, OpenCode, Cursor, and Pi. Select only the keys the command needs.
  • run passes values in the child's environment, not shell assignments. It does not redact child stdout/stderr or prevent the child exposing values.
  • --only filters the input file, not inherited environment variables. Start with a clean parent session; avoid env, printenv, tracing, verbose auth output, and expanding credentials into command arguments.
  • load never writes CLAUDE_ENV_FILE. In detected agent sessions it creates a private, self-removing source file. Source its path only in the shell running the command; never inline its contents or put it into a session env file. Prefer run over this fallback.
  • set and load --persist --only KEY explicitly store global plaintext keys. They are not project-scoped and are not automatically loaded. Avoid persistence unless specifically requested; run reads a file, not this global store. init audits cloud auth; it does not migrate it.

Migration and limitations

Update both the CLI and plugin. Older versions injected stored keys and CLI profiles into every session. Disable legacy SessionStart hooks, restart affected sessions, and rotate exposed credentials. Updating does not clear existing shell environments, hook files, histories, or transcripts. Use nopeek remove KEY only when removal is requested.

The remaining PreToolUse hook applies best-effort regex redaction to stdout of selected cloud CLI commands. It does not cover stderr, ps/pgrep, or commands containing pipes/redirections, and requires jq. It is not a security boundary. File permissions, sandboxes, and redaction reduce risk but cannot guarantee secrecy from an arbitrary child command.

From the spences10/claude-code-toolkit README

claude-code-toolkit

Productivity and ecosystem tools for Claude Code.

For vendor-agnostic skills usable outside Claude Code's plugin marketplace, use spences10/skills.

Quick Start

# Add marketplace
/plugin marketplace add spences10/claude-code-toolkit

# Install plugins
/plugin install mcp-essentials
/plugin install analytics
/plugin install toolkit-skills
/plugin install claude-workflow
/plugin install dev-environment
/plugin install devops-skills
/plugin install dev-practices
/plugin install nopeek

Plugins

mcp-essentials

Setup guide for recommended MCP servers:

ServerPurpose
mcp-omnisearchUnified search (Tavily, Kagi, GitHub, Perplexity)
mcp-sqlite-toolsSafe SQLite operations
mcpickManage MCP servers, plugins, cache, and profiles

Skills: mcp-setup — setup guide for configuring MCP servers

analytics

Query Claude Code usage from ccrecall database:

  • Token usage by model/project/day
  • Session history
  • Thinking block search

Skills: analytics — query token usage and session history

toolkit-skills

Core skills for the toolkit ecosystem.

SkillDescription
ecosystem-guideGuide to choosing the right tool across the ecosystem
researchVerify sources before presenting findings
skill-creatorDesign and create Claude Skills using progressive disclosure
reflectExtract learnings from sessions and persist to skills
plugin-devValidate, test, and distribute Claude Code plugins

claude-workflow

Claude Code workflow patterns.

SkillDescription
advanced-promptingHigh-leverage prompts that challenge Claude's defaults
claude-md-maintenanceMaintain CLAUDE.md files effectively
orchestrationMulti-agent orchestration patterns for team mode
structured-rpiEnhanced Research-Plan-Implement workflow with structured phase gates

dev-environment

Development environment setup.

SkillDescription
terminal-optimizationTerminal setup for Claude Code (Ghostty, statusline, tmux)
worktree-masteryGit worktree patterns for parallel Claude sessions

devops-skills

DevOps patterns.

SkillDescription
ci-debug-workflowDebug failing CI pipelines and reproduce bugs locally
techdebt-finderFind duplicated code, inconsistent patterns, and refactoring opportunities
deslopIdentify and remove AI-generated code patterns (slop)
improve-codebase-architectureFind architectural improvement opportunities and deepen shallow modules

dev-practices

Development practice skills.

SkillDescription
tddTest-Driven Development workflow with red-green-refactor cycle

nopeek

Secret safety for Claude Code sessions. Powered by the nopeek CLI.

HookEventWhat it does
redact-outputPreToolUse(Bash)Best-effort pattern redaction for selected cloud CLI stdout; not stderr

Tell your coding agent: Use npx nopeek if you need keys. Swap npx for pnpx or bunx if that's what you use. The agent selects keys and uses run for each credential-dependent command. init is an optional cloud-auth audit, not an installation prerequisite.

Security migration: Update to nopeek CLI 0.0.17 or newer and nopeek plugin 0.0.24 or newer. Stored credentials and CLI profiles are no longer automatically loaded into sessions, and load no longer writes CLAUDE_ENV_FILE. Remove legacy SessionStart registrations and restart affected sessions. The retired session-load.sh entry point only prints migration guidance; it never reads stored keys. Neither updating nor deleting stored keys clears old environments, session files, histories, or transcripts. Rotate exposed credentials.

Persistence remains explicit, global plaintext, and not project-scoped; load --persist now requires --only. Prefer per-command run instead. run --only filters the file, not inherited parent variables, and does not prevent child output or argument disclosure. Redaction is not a guarantee.

Skills: nopeek — per-command credentials, migration, and limitations

Regression checks (synthetic credentials only):

python3 -m unittest discover -s plugins/nopeek/tests -v
claude plugin validate plugins/nopeek

See the cross-agent assessment for source-backed comparisons and the tested delivery boundary.

Ecosystem

Related projects for Claude Code power users. For portable skills across compatible agents, use spences10/skills.

ProjectWhat it does
nopeekPer-command credential loading that reduces accidental disclosure
svelte-skills-kitProduction-ready Svelte 5 & SvelteKit skills (90%+ verified accuracy)
claude-skills-cliCreate skills with progressive disclosure validation and 84% activation hooks
mcpickManage MCP servers, plugins, cache, and profiles from the CLI
ccrecallSync Claude Code transcripts to SQLite for usage analytics and search

Local Development

git clone git@github.com:spences10/claude-code-toolkit.git ~/repos/claude-code-toolkit

# Add local marketplace
/plugin marketplace add ~/repos/claude-code-toolkit

# Install plugin
/plugin install mcp-essentials

Releasing Updates

Version lives in one place: .claude-plugin/marketplace.json. Bump all "version" values there, commit, and push. Users with auto-update get changes on startup. Others run /plugin update plugin-name@spences10-claude-code-toolkit.

Details

Marketplace
spences10/claude-code-toolkit
Source
plugins/nopeek
Author
Scott Spence
Category
Hooks
License
MIT
Keywords
secrets, redaction, env, credentials, nopeek, safety
Listed since
Apr 7, 2026

More from spences10/claude-code-toolkit

All 8

Similar to nopeek

More Security