Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/davidtoby/agent-skillsnpx agentmods add skills/davidtoby/agent-skills/litellm-vertex-proxy-repairWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/davidtoby/agent-skills/litellm-vertex-proxy-repair)<a href="https://agentmods.dev/skills/davidtoby/agent-skills/litellm-vertex-proxy-repair"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/litellm-vertex-proxy-repair/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/davidtoby/agent-skills/litellm-vertex-proxy-repair"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/litellm-vertex-proxy-repair.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00102 | $0.02991 |
| Opus 5.5 | $0.00041 | $0.01196 |
| Sonnet 5.5 | $0.00020 | $0.00598 |
| Haiku 4.5 | $0.00010 | $0.00299 |
Grade A, and why
litellm-vertex-proxy-repair scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- `curl http://127.0.0.1:4000/` fails How it starts
The opening of the file, as written. The whole thing — 334 lines — stays where its author put it; the contents beside it link to each section on GitHub.
LiteLLM Vertex Proxy Repair
A battle-tested repair skill for Toby-style local LiteLLM deployments on macOS.
Use this when a LiteLLM proxy backed by Vertex AI stops serving http://127.0.0.1:4000/v1, when Admin UI fails, or when you need to separate API recovery from PostgreSQL/Prisma recovery.
Quick start
- Confirm whether the proxy is actually listening on port
4000. - Distinguish
API-only outagefromfull-mode DB/UI outage. - Check whether Python is inheriting a macOS system proxy such as
http://127.0.0.1:1082. - If Prisma or Admin UI is involved, force loopback bypass with
NO_PROXY=127.0.0.1,localhost,::1. - Split the service into
liteandfullmodes so API recovery does not depend on PostgreSQL/Prisma/Admin UI. - Verify
/,/v1/models, and optionally/ui/login/separately.
Deep Dive: API-Only vs Full DB Mode & Prisma Migrations (双语解析)
The Problem (问题背景)
English: LiteLLM running in "API-only" mode lacks database configuration (DATABASE_URL). While the /ui/login/ page might still load, submitting a login crashes the backend with Authentication Error, Not connected to DB! because session and user validation require a database. Furthermore, simply connecting a database isn't enough; if Prisma baseline migrations are skipped or interrupted, the backend background jobs will crash with errors like relation "LiteLLM_SpendLogs" does not exist.
中文: LiteLLM 在“纯 API 代理”模式下运行时,没有配置数据库(DATABASE_URL)。虽然你可以打开 /ui/login/ 页面,但在提交登录时,后端由于需要校验用户和生成 session,会直接崩溃并提示 Not connected to DB!。此外,仅仅连上数据库是不够的;如果跳过或中断了 Prisma 的基线同步(Baseline Migration),后端的统计进程就会不断报错崩溃,例如提示 relation "LiteLLM_SpendLogs" does not exist(缺少对应的表或视图)。
The Repair Strategy (修复策略)
English:
- Database Setup: Install and run local PostgreSQL. Inject
DATABASE_URLandDIRECT_URLinto.env. - Prisma Dependencies: Reinstall LiteLLM with proxy extras (
uv tool install --reinstall 'litellm[proxy,extra-proxy]') and executeprisma generateto build the local ORM client. - Lite vs. Full Mode Architecture: Implement a fallback toggle (
LITELLM_MODE).fullenables the DB and UI console.litestrips DB variables on startup, reverting to a pure API proxy to ensure AI generation stays online even if the database fails.
- Full Schema Migration: Run Prisma baseline migrations to synchronize all 100+ tables and views (including
LiteLLM_SpendLogs). This resolves the missing relation crashes and fully restores the UI backend.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 334 lines · 102 tokens per session scan A 010f874d4fbf
litellm-vertex-proxy-repair is a skill published in the GitHub repository davidtoby/agent-skills (11 stars, last pushed yesterday), licensed MIT. It adds 102 tokens to every session and 2,991 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
litellm-vertex-proxy-repair compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| litellm-vertex-proxy-repairdavidtoby/agent-skills | Skill | 11 | yesterday | MIT | A | 102 | Claude Code, Codex |
| mistake-analyzermingchen666/Reviva | Skill | 318 | 15d ago | none | A | 72 | Claude Code, Codex |
| gh-issuesSafeAI-Lab-X/ClawKeeper | Skill | 1.0k | 2mo ago | none | A | 116 | Claude Code |
| ehr-analysiszongtingwei/Bioclaw_Skills_Hub | Skill | 27 | 6mo ago | MIT | A | 33 | Claude Code, Codex |
| bindcraftzongtingwei/Bioclaw_Skills_Hub | Skill | 27 | 6mo ago | MIT | A | 107 | Claude Code, Codex |
| esm2-sequence-scoringzongtingwei/Bioclaw_Skills_Hub | Skill | 27 | 6mo ago | MIT | A | 111 | Claude Code, Codex |
| scrna-preprocessing-clusteringzongtingwei/Bioclaw_Skills_Hub | Skill | 27 | 6mo ago | MIT | A | 51 | Claude Code, Codex |