Skip to main content

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.

Release files for exoclaw-provider-litellm 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exoclaw-provider-litellm 0.9.1
File Size Uploaded
exoclaw_provider_litellm-0.9.1.tar.gz 13.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for exoclaw-provider-litellm 0.9.1
File Interpreter ABI Platform
exoclaw_provider_litellm-0.9.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.2 kB

Release files / exoclaw_provider_litellm-0.9.1.tar.gz

Download URL exoclaw_provider_litellm-0.9.1.tar.gz
Size 13.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0959d781cf2a0340610dbe4124e21eb3901a85437afeceead5125b59b2bbdb8f
BLAKE2b-256 checksum
How to use checksums
16cf053105ab12abee9c43c3289ee220bfb302b0c22546598b36ec8a4401eb3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / exoclaw_provider_litellm-0.9.1-py3-none-any.whl

Download URL exoclaw_provider_litellm-0.9.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1146c12cdcf6ee5d0e1f26415337ba40ed42413c167c60c4ac31cf93e561b6e9
BLAKE2b-256 checksum
How to use checksums
cf4bf7e869e3b96f526268051729f46b0cc9a1be425e42fcab661dff3055fe6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.9.1 This release

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page