Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

576 B
Raw Blame

Custom Semgrep rules for LiteLLM

Add custom rule YAML files here. Semgrep loads all .yml/.yaml files under this directory.

Run only custom rules (CI / fail on findings):

semgrep scan --config .semgrep/rules . --error

Run with registry + custom rules:

semgrep scan --config auto --config .semgrep/rules .

Layout:

  • python/ – Python-specific rules (security, patterns)
  • Add more subdirs as needed (e.g. generic/ for language-agnostic rules)

See Semgrep rule syntax.