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.7.0.tar.gz (10.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.7.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: exoclaw_provider_litellm-0.7.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

File hashes

Hashes for exoclaw_provider_litellm-0.7.0.tar.gz
Algorithm Hash digest
SHA256 95eab08d2bc57a45feb50ac4de678677ff5303858e87c9caf4480e5dfa6f47b3
MD5 e4265df4730b05a1ce5909f57e8827c7
BLAKE2b-256 29d389525b5d42008da78332065596276a1a6234fb7f271b3122d8a436071c6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exoclaw_provider_litellm-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

File hashes

Hashes for exoclaw_provider_litellm-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c69488b03cac19e83e6e7686dc6cc3499b8a6b9f2e1eb3d8c59d9907659d056
MD5 7211c83f08daa3e0d4907ee373f0bb33
BLAKE2b-256 18bafd5b456449ac3ee9b888db66d31a55e69208524a5c497198d43a8e4e6e8d

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