[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71W233VNFZD76RM1A6FHXME":3,"skill-same:01M71W233VNFZD76RM1A6FHXME":116},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":65},"01M71W233VNFZD76RM1A6FHXME","litellm-manager",null,"Manage LiteLLM Proxy instances programmatically. Bun.js\u002FTypeScript REST API scripts.","itlackey\u002Fakm-eval","itlackey","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6414031?v=4","01M6D08NHES2CPRGY5HCPJECD6","IT Lackey","01M71W0ZJQ3686SNJSCQZM3X4E",0,"MPL-2.0","https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"litellm manager","litellm","manager","scripts","new","2026","when","limits","api keys","spending","you","typescript","as","instances","api scripts","model","virtual","api","Spending Limits","proxy","2026-11-10 13:02:02",false,"---\nname: litellm-manager\ndescription: Manage LiteLLM Proxy instances programmatically.\n  Bun.js\u002FTypeScript REST API scripts.\nupdated: 2026-03-15\nwhen_to_use: Use this skill when you need to manage LiteLLM Proxy instances\n  programmatically, such as deploying new models, updating model configurations,\n  generating or revoking virtual API keys, and managing user accounts and\n  spending limits via the REST API.\n---\n\n# LiteLLM Management Skill\n\nManage and configure LiteLLM Proxy instances programmatically using Bun.js\u002FTypeScript scripts via the REST API. This skill provides comprehensive guidance, quick starts, and detailed references for all administrative endpoints.\n\n## Quick Start\n\nTo begin interacting with your LiteLLM instance:\n\n```bash\n# Set environment variables\nexport LITELLM_API_BASE=\"http:\u002F\u002Flocalhost:4000\"\nexport LITELLM_MASTER_KEY=\"sk-your-master-key\"\n\n# Run any management script (e.g., list models)\nbun run lib\u002Fclient.ts models:list\n```\n\n## Environment Configuration\n\nThe following environment variables are required for administrative operations:\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `LITELLM_API_BASE` | Yes | LiteLLM proxy URL (e.g., `http:\u002F\u002Flocalhost:4000`) |\n| `LITELLM_MASTER_KEY` | Yes | Master key for admin operations |\n| `LITELLM_API_KEY` | No | Virtual key for non-admin operations |\n\n## Core Management Workflows and API Reference\n\nThis skill covers all administrative domains of LiteLLM Proxy. The endpoints are grouped by the management task they perform.\n\n### 🚀 Model Deployment & Configuration (Model Management)\n\nUse these endpoints to manage which models are available, how they are configured, and their status.\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fmodel\u002Fnew` | POST | Add a new model deployment |\n| `\u002Fmodel\u002Fupdate` | POST | Update model configuration |\n| `\u002Fmodel\u002Fdelete` | POST | Delete a model deployment |\n| `\u002Fmodel\u002Finfo` | GET | Get detailed model information |\n| `\u002Fv1\u002Fmodels` | GET | List all available models |\n| `\u002Fv1\u002Fmodel\u002Finfo` | GET | Get model info with metadata |\n| `\u002Fmodel\u002Fsettings` | GET | Get model-specific settings |\n\n### 🔑 Access Control & Security (Virtual Key Management)\n\nManage API keys, ensuring proper access control and budget enforcement for users and services.\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fkey\u002Fgenerate` | POST | Generate a new virtual key |\n| `\u002Fkey\u002Fupdate` | POST | Update key settings (budget, models, etc.) |\n| `\u002Fkey\u002Fdelete` | POST | Delete\u002Frevoke a virtual key |\n| `\u002Fkey\u002Finfo` | GET | Get key details and spend |\n| `\u002Fkey\u002F{key}\u002Fregenerate` | POST | Rotate an existing key |\n| `\u002Fkey\u002Fhealth` | GET | Check key health status |\n\n### 👥 Identity Management (User, Team, Organization, Customer)\n\nControl who can use the service and how they are grouped for billing and access control.\n\n**User Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fuser\u002Fnew` | POST | Create a new user |\n| `\u002Fuser\u002Fupdate` | POST | Update user settings |\n| `\u002Fuser\u002Fdelete` | POST | Delete a user |\n| `\u002Fuser\u002Finfo` | GET | Get user details and spend |\n| `\u002Fuser\u002Fdaily\u002Factivity` | GET | Get user's daily usage activity |\n\n**Team Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fteam\u002Fnew` | POST | Create a new team |\n| `\u002Fteam\u002Fupdate` | POST | Update team settings |\n| `\u002Fteam\u002Fdelete` | POST | Delete a team |\n| `\u002Fteam\u002Finfo` | GET | Get team details |\n| `\u002Fteam\u002Fmember_add` | POST | Add member to team |\n| `\u002Fteam\u002Fmember_delete` | POST | Remove member from team |\n| `\u002Fteam\u002Fmember_update` | POST | Update member role |\n| `\u002Fteam\u002Flist` | GET | List all teams |\n\n**Organization Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Forganization\u002Fnew` | POST | Create organization |\n| `\u002Forganization\u002Fupdate` | POST | Update organization |\n| `\u002Forganization\u002Fdelete` | POST | Delete organization |\n| `\u002Forganization\u002Finfo` | GET | Get organization info |\n| `\u002Forganization\u002Flist` | GET | List organizations |\n\n**Customer Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fcustomer\u002Fnew` | POST | Create customer with budget |\n| `\u002Fcustomer\u002Fupdate` | POST | Update customer settings |\n| `\u002Fcustomer\u002Fdelete` | POST | Delete customer |\n| `\u002Fcustomer\u002Finfo` | GET | Get customer spend info |\n| `\u002Fcustomer\u002Flist` | GET | List all customers |\n\n### 💰 Financial Control (Budget & Spend Tracking)\n\nMonitor usage, enforce spending limits, and generate financial reports.\n\n**Budget Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fbudget\u002Fnew` | POST | Create a budget template |\n| `\u002Fbudget\u002Fupdate` | POST | Update budget settings |\n| `\u002Fbudget\u002Fdelete` | POST | Delete a budget |\n| `\u002Fbudget\u002Finfo` | GET | Get budget details |\n| `\u002Fbudget\u002Flist` | GET | List all budgets |\n\n**Spend Tracking:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fglobal\u002Fspend\u002Freport` | GET | Get global spend report |\n| `\u002Fglobal\u002Fspend\u002Freset` | POST | Reset all spend counters |\n| `\u002Fglobal\u002Fspend\u002Flogs` | GET | Get spend logs (also used for request\u002Fresponse logs) |\n| `\u002Fspend\u002Fkeys` | GET | Spend breakdown by keys |\n| `\u002Fspend\u002Fusers` | GET | Spend breakdown by users |\n| `\u002Fspend\u002Fteams` | GET | Spend breakdown by teams |\n| `\u002Fspend\u002Ftags` | GET | Spend breakdown by tags |\n\n### ⚙️ System Health & Configuration\n\nCheck the operational status of the proxy and manage its underlying configuration.\n\n**Health & Monitoring:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fhealth` | GET | Full health check (makes LLM calls) |\n| `\u002Fhealth\u002Fliveliness` | GET | Basic liveliness check |\n| `\u002Fhealth\u002Freadiness` | GET | Readiness check with DB status |\n| `\u002Fhealth\u002Fservices` | GET | Check connected services |\n| `\u002Fmetrics` | GET | Prometheus metrics |\n\n**Configuration:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fconfig\u002Fyaml` | GET | Get current config.yaml |\n| `\u002Fconfig\u002Fupdate` | POST | Update configuration |\n| `\u002Fconfig\u002Flist` | GET | List config keys |\n| `\u002Fconfig\u002Ffield\u002Finfo` | GET | Get config field details |\n\n**Logging & Errors:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fglobal\u002Factivity` | GET | Get activity logs |\n| `\u002Ferrors` | GET | Get recent error logs |\n\n## Usage Examples (TypeScript)\n\nThe following examples demonstrate common administrative tasks using the `LiteLLMClient`.\n\n### Adding a New Model\n\n```typescript\nimport { LiteLLMClient } from \".\u002Flib\u002Fclient.ts\";\n\nconst client = new LiteLLMClient();\n\nawait client.models.add({\n  model_name: \"gpt-4o\",\n  litellm_params: {\n    model: \"azure\u002Fgpt-4o-deployment\",\n    api_base: \"https:\u002F\u002Fyour-resource.openai.azure.com\u002F\",\n    api_key: \"your-azure-key\",\n    api_version: \"2024-08-01-preview\"\n  },\n  model_info: {\n    max_tokens: 128000\n  }\n});\n```\n\n### Generating a Virtual Key with Budget\n\n```typescript\nconst key = await client.keys.generate({\n  key_alias: \"dev-team-key\",\n  team_id: \"dev-team\",\n  models: [\"gpt-4o\", \"claude-3-sonnet\"],\n  max_budget: 100,\n  budget_duration: \"30d\",\n  rpm_limit: 100,\n  tpm_limit: 100000,\n  metadata: {\n    environment: \"development\"\n  }\n});\n\nconsole.log(\"Generated key:\", key.key);\n```\n\n### Creating a Team with Budget\n\n```typescript\nconst team = await client.teams.create({\n  team_alias: \"engineering\",\n  max_budget: 1000,\n  budget_duration: \"monthly\",\n  models: [\"gpt-4o\", \"claude-3-opus\"],\n  metadata: {\n    department: \"Engineering\",\n    cost_center: \"ENG-001\"\n  }\n});\n```\n\n### Checking Health Status\n\n```typescript\nconst health = await client.health.check();\nconsole.log(\"Healthy models:\", health.healthy_endpoints);\nconsole.log(\"Unhealthy models:\", health.unhealthy_endpoints);\n```\n\n### Getting Spend Report\n\n```typescript\nconst report = await client.spend.getReport({\n  start_date: \"2024-01-01\",\n  end_date: \"2024-12-31\",\n  group_by: \"team\"\n});\n```\n\n## File Structure and Implementation Details\n\nThe skill relies on a structured file system for implementation:\n\n```\nlitellm-skill\u002F\n├── SKILL.md                 # This documentation\n├── lib\u002F\n│   ├── client.ts            # Main LiteLLM client class\n│   ├── types.ts             # TypeScript type definitions\n│   └── yaml-manager.ts      # Config YAML file manager\n└── scripts\u002F\n    ├── models.ts            # Model management CLI\n    ├── keys.ts              # Key management CLI\n    ├── teams.ts             # Team management CLI\n    ├── users.ts             # User management CLI\n    ├── budgets.ts           # Budget management CLI\n    ├── health.ts            # Health check CLI\n    ├── spend.ts             # Spend tracking CLI\n    └── config.ts            # Configuration CLI\n```\n\n## Config YAML Management\n\nThe skill also supports reading and writing LiteLLM config.yaml files, allowing for persistent configuration management:\n\n```typescript\nimport { LiteLLMConfigManager } from \".\u002Flib\u002Fyaml-manager.ts\";\n\nconst config = new LiteLLMConfigManager(\".\u002Fconfig.yaml\");\n\n\u002F\u002F Add a model\nconfig.addModel({\n  model_name: \"gpt-4o\",\n  litellm_params: {\n    model: \"openai\u002Fgpt-4o\",\n    api_key: \"os.environ\u002FOPENAI_API_KEY\"\n  }\n});\n\n\u002F\u002F Update general settings\nconfig.setGeneralSettings({\n  master_key: \"sk-1234\",\n  database_url: \"postgresql:\u002F\u002Fuser:pass@host:5432\u002Fdb\"\n});\n\n\u002F\u002F Save changes\nawait config.save();\n```\n\n## Error Handling and Reliability\n\nAll API methods throw `LiteLLMError` on failure, providing structured error information:\n\n```typescript\ntry {\n  await client.models.add(modelConfig);\n} catch (error) {\n  if (error instanceof LiteLLMError) {\n    console.error(`API Error: ${error.message}`);\n    console.error(`Status: ${error.status}`);\n    console.error(`Code: ${error.code}`);\n  }\n}\n```\n\n**Rate Limiting:** The client automatically handles rate limiting with exponential backoff. Configure this behavior during client initialization:\n\n```typescript\nconst client = new LiteLLMClient({\n  maxRetries: 3,\n  retryDelay: 1000\n});\n```\n\n## Best Practices for Production Use\n\nTo ensure a secure and cost-effective deployment, follow these guidelines:\n\n1. **Use Virtual Keys**: Never expose the master key to applications.\n2. **Set Budgets**: Always set budgets on keys\u002Fteams for granular cost control.\n3. **Monitor Health**: Regularly check `\u002Fhealth` endpoints for model availability and service status.\n4. **Track Spend**: Use spend endpoints (`\u002Fglobal\u002Fspend\u002Freport`, etc.) to monitor costs accurately.\n5. **Use Tags**: Tag requests for highly granular cost attribution across different projects or teams.\n6. **Rotate Keys**: Implement key rotation policies regularly for enhanced security.\n\n## Related Documentation\n\nFor deeper technical dives, consult the official LiteLLM documentation:\n\n- [LiteLLM Proxy Docs](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy)\n- [Virtual Keys](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fvirtual_keys)\n- [Model Management](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fmodel_management)\n- [Spend Tracking](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fcost_tracking)\n","# LiteLLM Management Skill\n\nManage and configure LiteLLM Proxy instances programmatically using Bun.js\u002FTypeScript scripts via the REST API. This skill provides comprehensive guidance, quick starts, and detailed references for all administrative endpoints.\n\n## Quick Start\n\nTo begin interacting with your LiteLLM instance:\n\n```bash\n# Set environment variables\nexport LITELLM_API_BASE=\"http:\u002F\u002Flocalhost:4000\"\nexport LITELLM_MASTER_KEY=\"sk-your-master-key\"\n\n# Run any management script (e.g., list models)\nbun run lib\u002Fclient.ts models:list\n```\n\n## Environment Configuration\n\nThe following environment variables are required for administrative operations:\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `LITELLM_API_BASE` | Yes | LiteLLM proxy URL (e.g., `http:\u002F\u002Flocalhost:4000`) |\n| `LITELLM_MASTER_KEY` | Yes | Master key for admin operations |\n| `LITELLM_API_KEY` | No | Virtual key for non-admin operations |\n\n## Core Management Workflows and API Reference\n\nThis skill covers all administrative domains of LiteLLM Proxy. The endpoints are grouped by the management task they perform.\n\n### 🚀 Model Deployment & Configuration (Model Management)\n\nUse these endpoints to manage which models are available, how they are configured, and their status.\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fmodel\u002Fnew` | POST | Add a new model deployment |\n| `\u002Fmodel\u002Fupdate` | POST | Update model configuration |\n| `\u002Fmodel\u002Fdelete` | POST | Delete a model deployment |\n| `\u002Fmodel\u002Finfo` | GET | Get detailed model information |\n| `\u002Fv1\u002Fmodels` | GET | List all available models |\n| `\u002Fv1\u002Fmodel\u002Finfo` | GET | Get model info with metadata |\n| `\u002Fmodel\u002Fsettings` | GET | Get model-specific settings |\n\n### 🔑 Access Control & Security (Virtual Key Management)\n\nManage API keys, ensuring proper access control and budget enforcement for users and services.\n\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fkey\u002Fgenerate` | POST | Generate a new virtual key |\n| `\u002Fkey\u002Fupdate` | POST | Update key settings (budget, models, etc.) |\n| `\u002Fkey\u002Fdelete` | POST | Delete\u002Frevoke a virtual key |\n| `\u002Fkey\u002Finfo` | GET | Get key details and spend |\n| `\u002Fkey\u002F{key}\u002Fregenerate` | POST | Rotate an existing key |\n| `\u002Fkey\u002Fhealth` | GET | Check key health status |\n\n### 👥 Identity Management (User, Team, Organization, Customer)\n\nControl who can use the service and how they are grouped for billing and access control.\n\n**User Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fuser\u002Fnew` | POST | Create a new user |\n| `\u002Fuser\u002Fupdate` | POST | Update user settings |\n| `\u002Fuser\u002Fdelete` | POST | Delete a user |\n| `\u002Fuser\u002Finfo` | GET | Get user details and spend |\n| `\u002Fuser\u002Fdaily\u002Factivity` | GET | Get user's daily usage activity |\n\n**Team Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fteam\u002Fnew` | POST | Create a new team |\n| `\u002Fteam\u002Fupdate` | POST | Update team settings |\n| `\u002Fteam\u002Fdelete` | POST | Delete a team |\n| `\u002Fteam\u002Finfo` | GET | Get team details |\n| `\u002Fteam\u002Fmember_add` | POST | Add member to team |\n| `\u002Fteam\u002Fmember_delete` | POST | Remove member from team |\n| `\u002Fteam\u002Fmember_update` | POST | Update member role |\n| `\u002Fteam\u002Flist` | GET | List all teams |\n\n**Organization Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Forganization\u002Fnew` | POST | Create organization |\n| `\u002Forganization\u002Fupdate` | POST | Update organization |\n| `\u002Forganization\u002Fdelete` | POST | Delete organization |\n| `\u002Forganization\u002Finfo` | GET | Get organization info |\n| `\u002Forganization\u002Flist` | GET | List organizations |\n\n**Customer Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fcustomer\u002Fnew` | POST | Create customer with budget |\n| `\u002Fcustomer\u002Fupdate` | POST | Update customer settings |\n| `\u002Fcustomer\u002Fdelete` | POST | Delete customer |\n| `\u002Fcustomer\u002Finfo` | GET | Get customer spend info |\n| `\u002Fcustomer\u002Flist` | GET | List all customers |\n\n### 💰 Financial Control (Budget & Spend Tracking)\n\nMonitor usage, enforce spending limits, and generate financial reports.\n\n**Budget Management:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fbudget\u002Fnew` | POST | Create a budget template |\n| `\u002Fbudget\u002Fupdate` | POST | Update budget settings |\n| `\u002Fbudget\u002Fdelete` | POST | Delete a budget |\n| `\u002Fbudget\u002Finfo` | GET | Get budget details |\n| `\u002Fbudget\u002Flist` | GET | List all budgets |\n\n**Spend Tracking:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fglobal\u002Fspend\u002Freport` | GET | Get global spend report |\n| `\u002Fglobal\u002Fspend\u002Freset` | POST | Reset all spend counters |\n| `\u002Fglobal\u002Fspend\u002Flogs` | GET | Get spend logs (also used for request\u002Fresponse logs) |\n| `\u002Fspend\u002Fkeys` | GET | Spend breakdown by keys |\n| `\u002Fspend\u002Fusers` | GET | Spend breakdown by users |\n| `\u002Fspend\u002Fteams` | GET | Spend breakdown by teams |\n| `\u002Fspend\u002Ftags` | GET | Spend breakdown by tags |\n\n### ⚙️ System Health & Configuration\n\nCheck the operational status of the proxy and manage its underlying configuration.\n\n**Health & Monitoring:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fhealth` | GET | Full health check (makes LLM calls) |\n| `\u002Fhealth\u002Fliveliness` | GET | Basic liveliness check |\n| `\u002Fhealth\u002Freadiness` | GET | Readiness check with DB status |\n| `\u002Fhealth\u002Fservices` | GET | Check connected services |\n| `\u002Fmetrics` | GET | Prometheus metrics |\n\n**Configuration:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fconfig\u002Fyaml` | GET | Get current config.yaml |\n| `\u002Fconfig\u002Fupdate` | POST | Update configuration |\n| `\u002Fconfig\u002Flist` | GET | List config keys |\n| `\u002Fconfig\u002Ffield\u002Finfo` | GET | Get config field details |\n\n**Logging & Errors:**\n| Endpoint | Method | Description |\n|----------|--------|-------------|\n| `\u002Fglobal\u002Factivity` | GET | Get activity logs |\n| `\u002Ferrors` | GET | Get recent error logs |\n\n## Usage Examples (TypeScript)\n\nThe following examples demonstrate common administrative tasks using the `LiteLLMClient`.\n\n### Adding a New Model\n\n```typescript\nimport { LiteLLMClient } from \".\u002Flib\u002Fclient.ts\";\n\nconst client = new LiteLLMClient();\n\nawait client.models.add({\n  model_name: \"gpt-4o\",\n  litellm_params: {\n    model: \"azure\u002Fgpt-4o-deployment\",\n    api_base: \"https:\u002F\u002Fyour-resource.openai.azure.com\u002F\",\n    api_key: \"your-azure-key\",\n    api_version: \"2024-08-01-preview\"\n  },\n  model_info: {\n    max_tokens: 128000\n  }\n});\n```\n\n### Generating a Virtual Key with Budget\n\n```typescript\nconst key = await client.keys.generate({\n  key_alias: \"dev-team-key\",\n  team_id: \"dev-team\",\n  models: [\"gpt-4o\", \"claude-3-sonnet\"],\n  max_budget: 100,\n  budget_duration: \"30d\",\n  rpm_limit: 100,\n  tpm_limit: 100000,\n  metadata: {\n    environment: \"development\"\n  }\n});\n\nconsole.log(\"Generated key:\", key.key);\n```\n\n### Creating a Team with Budget\n\n```typescript\nconst team = await client.teams.create({\n  team_alias: \"engineering\",\n  max_budget: 1000,\n  budget_duration: \"monthly\",\n  models: [\"gpt-4o\", \"claude-3-opus\"],\n  metadata: {\n    department: \"Engineering\",\n    cost_center: \"ENG-001\"\n  }\n});\n```\n\n### Checking Health Status\n\n```typescript\nconst health = await client.health.check();\nconsole.log(\"Healthy models:\", health.healthy_endpoints);\nconsole.log(\"Unhealthy models:\", health.unhealthy_endpoints);\n```\n\n### Getting Spend Report\n\n```typescript\nconst report = await client.spend.getReport({\n  start_date: \"2024-01-01\",\n  end_date: \"2024-12-31\",\n  group_by: \"team\"\n});\n```\n\n## File Structure and Implementation Details\n\nThe skill relies on a structured file system for implementation:\n\n```\nlitellm-skill\u002F\n├── SKILL.md                 # This documentation\n├── lib\u002F\n│   ├── client.ts            # Main LiteLLM client class\n│   ├── types.ts             # TypeScript type definitions\n│   └── yaml-manager.ts      # Config YAML file manager\n└── scripts\u002F\n    ├── models.ts            # Model management CLI\n    ├── keys.ts              # Key management CLI\n    ├── teams.ts             # Team management CLI\n    ├── users.ts             # User management CLI\n    ├── budgets.ts           # Budget management CLI\n    ├── health.ts            # Health check CLI\n    ├── spend.ts             # Spend tracking CLI\n    └── config.ts            # Configuration CLI\n```\n\n## Config YAML Management\n\nThe skill also supports reading and writing LiteLLM config.yaml files, allowing for persistent configuration management:\n\n```typescript\nimport { LiteLLMConfigManager } from \".\u002Flib\u002Fyaml-manager.ts\";\n\nconst config = new LiteLLMConfigManager(\".\u002Fconfig.yaml\");\n\n\u002F\u002F Add a model\nconfig.addModel({\n  model_name: \"gpt-4o\",\n  litellm_params: {\n    model: \"openai\u002Fgpt-4o\",\n    api_key: \"os.environ\u002FOPENAI_API_KEY\"\n  }\n});\n\n\u002F\u002F Update general settings\nconfig.setGeneralSettings({\n  master_key: \"sk-1234\",\n  database_url: \"postgresql:\u002F\u002Fuser:pass@host:5432\u002Fdb\"\n});\n\n\u002F\u002F Save changes\nawait config.save();\n```\n\n## Error Handling and Reliability\n\nAll API methods throw `LiteLLMError` on failure, providing structured error information:\n\n```typescript\ntry {\n  await client.models.add(modelConfig);\n} catch (error) {\n  if (error instanceof LiteLLMError) {\n    console.error(`API Error: ${error.message}`);\n    console.error(`Status: ${error.status}`);\n    console.error(`Code: ${error.code}`);\n  }\n}\n```\n\n**Rate Limiting:** The client automatically handles rate limiting with exponential backoff. Configure this behavior during client initialization:\n\n```typescript\nconst client = new LiteLLMClient({\n  maxRetries: 3,\n  retryDelay: 1000\n});\n```\n\n## Best Practices for Production Use\n\nTo ensure a secure and cost-effective deployment, follow these guidelines:\n\n1. **Use Virtual Keys**: Never expose the master key to applications.\n2. **Set Budgets**: Always set budgets on keys\u002Fteams for granular cost control.\n3. **Monitor Health**: Regularly check `\u002Fhealth` endpoints for model availability and service status.\n4. **Track Spend**: Use spend endpoints (`\u002Fglobal\u002Fspend\u002Freport`, etc.) to monitor costs accurately.\n5. **Use Tags**: Tag requests for highly granular cost attribution across different projects or teams.\n6. **Rotate Keys**: Implement key rotation policies regularly for enhanced security.\n\n## Related Documentation\n\nFor deeper technical dives, consult the official LiteLLM documentation:\n\n- [LiteLLM Proxy Docs](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy)\n- [Virtual Keys](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fvirtual_keys)\n- [Model Management](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fmodel_management)\n- [Spend Tracking](https:\u002F\u002Fdocs.litellm.ai\u002Fdocs\u002Fproxy\u002Fcost_tracking)\n",{"name":5,"updated":44,"description":7,"when_to_use":45},1773532800000,"Use this skill when you need to manage LiteLLM Proxy instances programmatically, such as deploying new models, updating model configurations, generating or revoking virtual API keys, and managing user accounts and spending limits via the REST API.","main","b293a8475fcbb20683373dc9735a2ecf0ca7889d","corpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill","https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval","https:\u002F\u002Fgithub.com\u002Fitlackey","2026-11-13 11:49:12",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add itlackey\u002Fakm-eval --skill litellm-manager",{"tool":58,"command":59},"bunx","bunx skills add itlackey\u002Fakm-eval --skill litellm-manager",{"tool":61,"command":62},"pnpm","pnpm dlx skills add itlackey\u002Fakm-eval --skill litellm-manager","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002FSKILL.md",true,[66,72,76,80,84,88,92,96,100,104,108,112],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"lib\u002Fclient.ts","SCRIPT","脚本",23350,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Flib\u002Fclient.ts",{"path":73,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":74,"sourceHtmlUrl":75},"lib\u002Ftypes.ts",17835,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Flib\u002Ftypes.ts",{"path":77,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":78,"sourceHtmlUrl":79},"lib\u002Fyaml-manager.ts",15583,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Flib\u002Fyaml-manager.ts",{"path":81,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":82,"sourceHtmlUrl":83},"litellm.ts",12019,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Flitellm.ts",{"path":85,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":86,"sourceHtmlUrl":87},"scripts\u002Fbudgets.ts",6598,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Fscripts\u002Fbudgets.ts",{"path":89,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":90,"sourceHtmlUrl":91},"scripts\u002Fconfig.ts",8699,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Fscripts\u002Fconfig.ts",{"path":93,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":94,"sourceHtmlUrl":95},"scripts\u002Fhealth.ts",6728,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Fscripts\u002Fhealth.ts",{"path":97,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":98,"sourceHtmlUrl":99},"scripts\u002Fkeys.ts",6255,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Fscripts\u002Fkeys.ts",{"path":101,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":102,"sourceHtmlUrl":103},"scripts\u002Fmodels.ts",3525,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Fscripts\u002Fmodels.ts",{"path":105,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fspend.ts",8761,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Fscripts\u002Fspend.ts",{"path":109,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":110,"sourceHtmlUrl":111},"scripts\u002Fteams.ts",7181,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Fscripts\u002Fteams.ts",{"path":113,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":114,"sourceHtmlUrl":115},"scripts\u002Fusers.ts",7041,"https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fcorpus\u002Flibrary\u002Fskills\u002Fai-skills\u002Flitellm-skill\u002Fscripts\u002Fusers.ts",[117,125,132,139,146,153],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":124},"01M748G6310YQEN9SEY8E69V7F","tax-filing-checklist","Walk through the steps and documents needed to file an individual federal income tax return","https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fevals\u002Fretrieval\u002Fassets\u002Fbooks\u002Flibrary\u002Fskills\u002Ftax-filing-checklist\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":124},"01M748G3C1CSMBM33KP2CCK7TB","patient-vitals-charting","Record patient vital signs consistently and flag values outside the normal reference range","https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fevals\u002Fretrieval\u002Fassets\u002Fbooks\u002Flibrary\u002Fskills\u002Fpatient-vitals-charting\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":124},"01M748G05H68QFB8YVQKDHF66B","pasta-from-scratch","Make fresh egg pasta dough from scratch, roll it, and cut it into shapes","https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fevals\u002Fretrieval\u002Fassets\u002Fbooks\u002Flibrary\u002Fskills\u002Fpasta-from-scratch\u002FSKILL.md",[],[],{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":124},"01M748FXAQVJRX98HP8STRTD9P","knife-sharpening","Sharpen and hone kitchen knives to keep an edge safe and effective","https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fevals\u002Fretrieval\u002Fassets\u002Fbooks\u002Flibrary\u002Fskills\u002Fknife-sharpening\u002FSKILL.md",[],[],{"skillNo":147,"name":148,"nameZh":6,"description":149,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":150,"categories":151,"keywords":152,"publishedAt":124},"01M748FTJEZ0P6BXNERTHZ9KB3","first-aid-response","Respond to a first aid emergency using a scene-safety-first, ABC-based (airway, breathing, circulation) approach","https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fevals\u002Fretrieval\u002Fassets\u002Fbooks\u002Flibrary\u002Fskills\u002Ffirst-aid-response\u002FSKILL.md",[],[],{"skillNo":154,"name":155,"nameZh":6,"description":156,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":157,"categories":158,"keywords":159,"publishedAt":124},"01M748FQESZPA3ZW5SWKJNKMD0","contract-review-basics","Review a contract draft for missing terms, ambiguous language, and risky clauses before signing","https:\u002F\u002Fgithub.com\u002Fitlackey\u002Fakm-eval\u002Fblob\u002Fmain\u002Fevals\u002Fretrieval\u002Fassets\u002Fbooks\u002Flibrary\u002Fskills\u002Fcontract-review-basics\u002FSKILL.md",[],[]]