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

Uploaded Python 3

File details

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

File metadata

  • Download URL: exoclaw_provider_litellm-0.2.2.tar.gz
  • Upload date:
  • Size: 7.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.2.tar.gz
Algorithm Hash digest
SHA256 dac27db51cf6882b466ff23649b41ced6670f4497cc9e30e7b5a97ac3eae46a0
MD5 989ae125126f6c0c110656d82973cbac
BLAKE2b-256 e9d76fc940f9441f62f0d74b81488db53d1647ac737432212a6a32430b431a51

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exoclaw_provider_litellm-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 5.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8da78fc1e80f61f7e2a104e8a87f1015246e2e2a666dddd6828856f5609854d8
MD5 f8588363ae1498a85b9bc37b637827c1
BLAKE2b-256 a959d0556e9aefd6df4067f9674c3be4c2468cf3c8953107df7952238b8ed044

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