Survival LLM
A free AI assistant and survival library (1.5 million offline articles) that runs on your own computer, with no internet. Shows the source of every answer. Mac and Windows.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证A credit guard for paid generation APIs: runs start as requests with model and credit cost, a typed approval naming the count arms a single run, the guard relocks after, and a ledger records cost per run.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A credit guard for paid generation APIs: runs start as requests with model and credit cost, a typed approval naming the count arms a single run, the guard relocks after, and a ledger records cost per run.
python demo.py
Runs the whole gate end to end against the real hooks and CLI, in a temp state dir. Tests: python -m unittest discover -s tests.
Python 3.8+. No dependencies.
python -m creditguard request "intro clip" --model video-x --settings "720p 5s" --cost 12.approve hook (UserPromptSubmit) reads the prompt; typing go 12 approves the pending request that costs exactly 12 credits. A wrong count approves nothing, and a negated phrase ("do not go 12") is ignored.python -m creditguard arm <id> --quoted <cost> arms exactly one run, and refuses if the quoted price differs from what was approved.guard hook (PreToolUse) denies any generate command unless an arm is live, and spends the arm on first use, so a retry is locked again. Arms expire after 5 minutes.python -m creditguard ledger prints the total. Optional CREDIT_BUDGET caps cumulative spend.Hook wiring for Claude Code (settings.json):
{"hooks": {
"UserPromptSubmit": [{"hooks": [{"type": "command", "command": "python creditguard/hooks.py approve"}]}],
"PreToolUse": [{"matcher": "Bash", "hooks": [{"type": "command", "command": "python creditguard/hooks.py guard"}]}]
}}
Set CREDIT_GENERATE_PATTERN to a regex matching your tool's paid command.
Measured from the author's own use of the guard around a paid video and image service, totals only, no prompts or project names. Requests were filed 20 to 23 Oct 2026.
| Measure | Count |
|---|---|
| Requests filed | 32 |
| Approved by a typed approval | 20 |
| Never approved | 12 |
| Approved requests that ran | 13 |
| Approved requests that never ran | 7 |
MIT. See LICENSE.
Built with Claude Code. More: https://made-by-asking.pages.dev/showcase/studio-credit-guard/