Installation¶
Install¶
Requires Python 3.11 or newer. Verify:
Provider extras¶
The core package has no provider SDKs. Install the one you need:
Covers the OpenAI API and anything that speaks its protocol — vLLM, Ollama, LiteLLM, most gateways. See Use a self-hosted model.
This split is deliberate: a harness that drags two SDKs into your environment to run one of them is being rude about your dependency tree. The provider Protocol means neither is imported unless used.
Credentials¶
Set the key for whichever provider you are pointing at:
Model names starting with claude route to the Anthropic adapter; everything else goes to the
OpenAI-compatible one.
From source¶
Run the checks the way CI does:
That runs ruff check, ruff format --check, mypy --strict and pytest. The whole suite runs in
under a second — no network, no API key, no cost — because everything is tested against
FakeProvider.