Skip to main content

LiteLLM provider for exoclaw

Project description

exoclaw-provider-litellm

LiteLLM-backed LLMProvider for exoclaw — supports OpenAI, Anthropic, OpenRouter, Gemini, and any other LiteLLM-compatible endpoint through a single interface.

Install

pip install exoclaw-provider-litellm

Usage

from exoclaw_provider_litellm.provider import LiteLLMProvider

provider = LiteLLMProvider(
    api_key="sk-...",
    default_model="anthropic/claude-opus-4-5",
)

response = await provider.chat(
    messages=[{"role": "user", "content": "Hello!"}],
    tools=[],
)
print(response.content)

For a custom gateway or OpenRouter, pass api_base alongside api_key. The provider normalises tool call IDs, sanitises empty content, and optionally logs full request/response details via LLM_LOGGING=true.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exoclaw_provider_litellm-0.2.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exoclaw_provider_litellm-0.2.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file exoclaw_provider_litellm-0.2.1.tar.gz.

File metadata

  • Download URL: exoclaw_provider_litellm-0.2.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exoclaw_provider_litellm-0.2.1.tar.gz
Algorithm Hash digest
SHA256 b79fcebbede9aa84cc9a21efbed83643c7a9dafb4c2307004359ee4e70edac4a
MD5 713b6b00ff5a8f587236b52110ccd900
BLAKE2b-256 0f39c8fd45e3ef2e7a4330ffe46d40c90cdd79276bc88ed41b7b51b8592e0f9d

See more details on using hashes here.

File details

Details for the file exoclaw_provider_litellm-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: exoclaw_provider_litellm-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for exoclaw_provider_litellm-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66836eb052956d4df3ead9d2afd309ea820063918a3502f77f45154b21fee2aa
MD5 74817e24abfbab84692b9553d317476c
BLAKE2b-256 2330c74a214f82314c134a57055d8123a36d48668714d35511033b149dbe129b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page