litellm-cost-governance
Installation
SKILL.md
LiteLLM Cost Governance
工作流程
- 定義 key、user、team、tag、model 與 provider 的治理邊界及可信任來源。
- 查核 LiteLLM 版本、授權方案、Postgres/Redis 需求及 budget 語意。
- 建立 virtual key,設定 model allowlist、hard budget、duration 或 expiry、rate limits 與 owner。
- 由可信任伺服器端注入治理用 tags;用戶端 tags 只可用於非安全關鍵觀測。
- 查詢 spend logs,對齊時區、token 類型、cache tokens 與 model cost map。
- 測試超額、到期、未授權模型及撤銷後行為。
- 課程結束撤銷 key,保存不含 secret 的稽核證據。
需要 key payload、安全設定與核心實驗時,讀取 實驗與參考。