linuxdo-idea-ui
linuxdo-idea-ui linux.do용 유저스크립트 테마 모음
Claude Code에 키 유출 없이 두 번째 모델을 연결합니다 다운로드 툴킷 일회성 29달러
Give Claude Code a second model without leaking your keys. Downloadable toolkit, US$29 one-time.
플러그인Python · ShellGitHub @fable-and-fuse온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Claude Code PreToolUse hook that stops the agent from printing your API keys. MIT, no dependencies.
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
A Claude Code PreToolUse hook that stops the agent from printing your API keys.
Coding agents with shell access will sometimes "check" a credential by echoing it. That puts the key in the transcript, in logs, and in anything you share. This hook blocks the common paths and tells Claude why, so it changes approach.README 전문 보기 ↗A Claude Code PreToolUse hook that stops the agent from printing your API keys.
Coding agents with shell access will sometimes "check" a credential by echoing it. That puts the key in the transcript, in logs, and in anything you share. This hook blocks the common paths and tells Claude why, so it changes approach.
echo / printf / Write-Output of variables named like *KEY*, *TOKEN*, *SECRET*, *PASSWORD*, *CREDENTIAL*$env:SECRET in PowerShell, GetEnvironmentVariable('..._KEY')printenv, env, set, bare export, declare -p/-x, Get-ChildItem env:.env, .env.local, .env.production, … (cat, head, grep, sed, awk, sort, xxd, Get-Content, Select-String, < .env redirects, …)Read and Grep tools on .env* filesWrite / Edit content containing live-looking Google, Anthropic, OpenAI, GitHub or Slack keys, or private key blocks[ -n "$GEMINI_API_KEY" ] && echo set, [bool]$env:GEMINI_API_KEY.env.exampleIn Claude Code:
/plugin marketplace add fable-and-fuse/claude-secret-guard
/plugin install secret-guard@fable-and-fuse
Restart Claude Code, then ask it to echo $SOME_API_KEY: it will be blocked with a reason. The plugin needs bash (Git Bash on Windows, which Claude Code already uses) and Python 3.8+. If no Python is found, the hook prints a warning and lets the call through.
The hook already blocks reading .env files. Plugins can't add permission rules, so if you also want the permissions.deny backstop shown below, add it to your settings yourself.
.claude/hooks/guard_secrets.py into your project..claude/settings.json, or merge it into the existing file:{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash|PowerShell|Read|Grep|Write|Edit|MultiEdit|NotebookEdit",
"hooks": [{ "type": "command", "command": "python .claude/hooks/guard_secrets.py", "timeout": 10 }]
}
]
},
"permissions": { "deny": ["Read(./.env)", "Read(./.env.*)"] }
}
echo $SOME_API_KEY and it will be blocked with a reason.Requires Python 3.8+. No dependencies.
This is pattern matching. A command that reads the environment in an unusual way (for example, a one-off script that prints os.environ) can get past it. Use it as a seatbelt, and layer it with a pre-commit secret scanner, scoped and rotatable keys, provider billing alerts, and the habit of never pasting keys into chats or screenshots.
Found a bypass? Open an issue with the command. It becomes a test case in tests/test_guard_secrets.py.
pip install pytest && python -m pytest
This hook ships inside Switchboard, a Claude Code + Gemini multi-model kit with a resilient Gemini broker (fallback chain, quota circuit breaker, usage telemetry), a research subagent, and /research and /second-opinion commands, sold by Fable & Fuse Studios: https://fable-and-fuse.github.io/brainrot-colour-chaos-site/switchboard/
MIT licensed. Not affiliated with Anthropic.