Litellm gateway

From bidewio/better-openclaw · View interactive version

Litellm gateway is an AI agent skill from the GitHub repository bidewio/better-openclaw. Route LLM requests through a unified gateway supporting 100+ providers via LiteLLM at {{LITELLM_HOST}}:{{LITELLM_PORT}}.

How to use this skill

Skill file

LiteLLM Gateway

LiteLLM proxy is available at http://{{LITELLM_HOST}}:{{LITELLM_PORT}} within the Docker network, providing an OpenAI-compatible API for 100+ LLM providers.

Chat Completion

curl -X POST "http://{{LITELLM_HOST}}:{{LITELLM_PORT}}/v1/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{"model": "gpt-4", "messages": [{"role": "user", "content": "Hello!"}]}'

List Available Models

curl "http://{{LITELLM_HOST}}:{{LITELLM_PORT}}/v1/models" \
  -H "Authorization: Bearer $LITELLM_API_KEY"

Tips for AI Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.