Agent skill · AI & Agents

litellm

When calling LLM APIs from Python code. When connecting to llamafile or local LLM servers. When switching between OpenAI/Anthropic/local providers. When implementing retry/fallback logic for LLM calls. When code imports litellm or uses completion() patterns.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill litellm-bbgnsurftech-claude-skills-collec --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 12 KB
Bundled scripts: none
Path: skills/ai-llm/litellm-bbgnsurftech-claude-skills-collec/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# LiteLLM Unified Python interface for calling 100+ LLM APIs using consistent OpenAI format. Provides standardized exception handling, retry/fallback logic, and cost tracking across multiple providers. ## When to Use This Skill Use this skill when: - Integrating with multiple LLM providers through a single interface - Routing requests to local llamafile servers using OpenAI-compatible endpoints - Implementing retry and fallback logic for LLM calls - Building applications requiring consistent error handling across providers - Tracking LLM usage costs across different providers - Converting between provider-specific APIs and OpenAI format - Deploying LLM proxy servers with unified configuration - Testing applications against both cloud and local LLM endpoints ## Core Capabilities ### Provider Support LiteLLM supports 100+ providers through consistent OpenAI-style API: - **Cloud Providers**: OpenAI, Anthropic, Google, Azure, AWS Bedrock - **Local Servers**: llamafile, Ollama, LocalAI, vLLM - **Unified Format**: All requests use OpenAI message format - **Exception Mapping**: All provider errors map to OpenAI exception types ### Key Features 1. **Unified API**: Single `completion()` fun

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Core Capabilities
  3. Provider Support
  4. Key Features
  5. Installation
  6. Llamafile Integration
  7. Provider Configuration
  8. API Base URL
  9. Environment Variable Configuration
  10. Basic Usage Patterns
  11. Synchronous Completion
  12. Asynchronous Completion
  13. Async Streaming
  14. Embeddings
Ships with 1 file
  • metadata.json
Commands it runs
Using pip
pip install litellm
Using uv
uv add litellm
export LLAMAFILE_API_BASE="http://localhost:8080/v1"
export LITELLM_LOG="INFO"  # Enable LiteLLM debug logging
More from claude-skill-registry
All skills →
About this skill
What does the litellm skill do?

When calling LLM APIs from Python code. When connecting to llamafile or local LLM servers. When switching between OpenAI/Anthropic/local providers. When implementing retry/fallback logic for LLM calls. When code imports litellm or uses completion() patterns.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill litellm-bbgnsurftech-claude-skills-collec --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going