Skip to content
Back to skills

Proxy Server

BSecurity

"Use when working with the LiteLLM AI Gateway proxy: starting the

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
ai-agentspythonrailsapidatabase

Works with

  • cli
  • api
  • mcp

Security analysis

B84/100
  • mediumUses curl or wget to download content
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill proxy-server --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Proxy Server?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Proxy Server
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-proxy-server/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-proxy-server)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: proxy-server
description: "Use when working with the LiteLLM AI Gateway proxy: starting the
  CLI/server, authoring proxy YAML, calling OpenAI-compatible routes, managing
  virtual keys/teams/spend, configuring guardrails, checking health, and
  diagnosing deployment issues."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# LiteLLM Proxy Server

Use this sub-skill for the LiteLLM AI Gateway process and its administrative APIs. Route Python SDK calls to `sdk-core`, router/model-group internals to `routing`, provider catalogs and pass-through specifics to `providers-and-endpoints`, and MCP/A2A tooling to `agent-tools`.

## Fast Path

1. Install the proxy runtime when server imports are missing: `pip install 'litellm[proxy]'`. For a CLI-focused install, use the project-provided console scripts `litellm`, `lite`, and `litellm-proxy` after installing LiteLLM.
2. Create a `config.yaml` with at least one `model_list` entry. Use `os.environ/NAME` values for provider credentials instead of writing secrets into YAML.
3. Start locally with `litellm --config config.yaml --host 0.0.0.0 --port 4000`. Use `--model <provider/model>` for a one-model smoke setup, and `--detailed_debug` only when troubleshooting.
4. Set `general_settings.master_key` or `LITELLM_MASTER_KEY` for admin APIs, then pass `Authorization: Bearer <master-or-virtual-key>` to proxy requests.
5. Validate readiness with `curl http://localhost:4000/health/liveliness`, `curl http://localhost:4000/health/readiness`, and model health with `scripts/litellm_proxy_health_check.py`.
6. Use OpenAI-compatible routes such as `/v1/chat/completions`, `/v1/completions`, `/v1/embeddings`, and `/v1/models` against the proxy base URL.

## Common Workflows

- **Minimal gateway:** configure two model aliases in `model_list`, start with `litellm --config config.yaml`, confirm `/v1/models`, then call `/v1/chat/completions` with a configured alias.
- **Key/team management:** use `/key/generate`, `/key/update`, `/key/delete`, `/key/info`, `/key/list`, `/team/new`, `/team/update`, `/team/info`, and `/team/list` with an admin token. Add budgets, `team_id`, allowed models, metadata, and rate limits in request bodies.
- **Spend and usage:** enable database-backed spend logging for durable reporting. Query `/spend/logs/v2`, `/spend/keys`, `/spend/users`, `/global/spend`, `/global/spend/keys`, `/global/spend/teams`, and `/spend/calculate` based on caller permissions.
- **Guardrails:** declare `guardrails` in YAML or manage them through `/guardrails` endpoints. Attach guardrail names to teams/keys when access should be scoped.
- **Deployment:** prefer `/health/liveliness` for liveness and `/health/readiness` for readiness. Use `--num_workers`, `--run_gunicorn`, `--run_hypercorn`, or `--run_granian` deliberately; `--reload` is a dev-only option and is incompatible with multi-worker/process server modes.

## Bundled References

- Configuration recipes: `references/configuration.md`
- Admin APIs and observability: `references/admin-and-observability.md`
- Troubleshooting and deployment caveats: `references/troubleshooting.md`

## Bundled Scripts

- `scripts/litellm_proxy_health_check.py`: safe proxy health checker with argparse, short default prompts, optional YAML model loading, and JSON output.
- `scripts/query_proxy_usage.py`: CLI-token or explicit-token helper for listing models and optionally sending a tiny completion through a proxy.

## Safety Notes

- Never commit provider API keys, virtual keys, master keys, database URLs, or local machine paths in runtime examples. Use environment variable references and placeholders.
- Do not rely on source-repo example paths at runtime. Copy needed snippets into a project-owned config file.
- Many proxy management and guardrail tests require a live app, provider credentials, database fixtures, or enterprise extras; classify them before running.

Files in this skill

  • SKILL.md3.8 KB
  • references/admin-and-observability.md7.6 KB
  • references/configuration.md6.9 KB
  • references/troubleshooting.md8 KB
  • scripts/litellm_proxy_health_check.py7.7 KB
  • scripts/query_proxy_usage.py3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.