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

Uploaded Python 3

File details

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

File metadata

  • Download URL: exoclaw_provider_litellm-0.9.1.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for exoclaw_provider_litellm-0.9.1.tar.gz
Algorithm Hash digest
SHA256 0959d781cf2a0340610dbe4124e21eb3901a85437afeceead5125b59b2bbdb8f
MD5 659008ff3692ff7e031877fbbfdd0f26
BLAKE2b-256 16cf053105ab12abee9c43c3289ee220bfb302b0c22546598b36ec8a4401eb3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: exoclaw_provider_litellm-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for exoclaw_provider_litellm-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1146c12cdcf6ee5d0e1f26415337ba40ed42413c167c60c4ac31cf93e561b6e9
MD5 a819d008931edbaff51d0ec29e4e9a3b
BLAKE2b-256 cf4bf7e869e3b96f526268051729f46b0cc9a1be425e42fcab661dff3055fe6c

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