Skip to main content

aiollm-anthropic

Anthropic's Messages and Files APIs for aiollm, the async-first toolkit for typed HTTP API clients.

AnthropicClient sends Anthropic's own methods (CreateMessage, StreamMessage and the Files methods) with types generated from Anthropic's official SDK types and its Files API reference, and has aiollm's provider-neutral client.generation and client.files, so code written for any aiollm provider runs on it.

Status: pre-alpha. The package was part of aiollm up to 0.14.0 as aiollm.providers.anthropic; it is now aiollm_anthropic. Its public API may still change: before 1.0 a breaking change bumps the minor version.

Installation

The package requires Python 3.13 or newer and installs the core it needs, aiollm-core:

pip install aiollm-anthropic

Or with uv: uv add aiollm-anthropic. To work on the package itself, see CONTRIBUTING.md.

Quick start

AnthropicClient() reads the key from ANTHROPIC_API_KEY; pass a token to give it yourself.

from aiollm_anthropic import AnthropicClient


async def ask() -> str:
    async with AnthropicClient() as client:
        response = await client.generation.create(
            model="claude-opus-5-5",
            input="Hi",
            instructions="Be brief",
            max_output_tokens=256,
        )
    return response.text

Run it with asyncio.run(ask()).

Documentation

The guide and the API reference are on the aiollm site, aiollm-org.github.io/aiollm: provider clients, shared generation and files. The changes up to 0.14.0 are in aiollm's changelog; the later ones in CHANGELOG.md.

License

MIT. See LICENSE.

Metadata

Release files for aiollm-anthropic 0.16.0

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

Source distribution (sdist)

Source distribution for aiollm-anthropic 0.16.0
File Size Uploaded Provenance Actions
aiollm_anthropic-0.16.0.tar.gz 294.5 kB With provenance Details for aiollm_anthropic-0.16.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aiollm-anthropic 0.16.0
File Interpreter ABI Platform Actions
aiollm_anthropic-0.16.0-py3-none-any.whl Python 3 none any Details for aiollm_anthropic-0.16.0-py3-none-any.whl

Total release size: 360.1 kB

Release files / aiollm_anthropic-0.16.0.tar.gz

Download URL aiollm_anthropic-0.16.0.tar.gz
Size 294.5 kB
Tags Source
SHA-256 checksum
How to use checksums
cd4963aad34bbdf9a51e225b168c8238f9679dd86d9b0a85b108a1379be61f02
BLAKE2b-256 checksum
How to use checksums
71a0dfbc210fe46d41e62cbd68cd18828855137b610c13e4ea2350db133a932d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / aiollm_anthropic-0.16.0-py3-none-any.whl

Download URL aiollm_anthropic-0.16.0-py3-none-any.whl
Size 65.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e287cc045f2f06bc46d3d71f90ed6bc93cf93ef52f5423f2834a00774c7528b
BLAKE2b-256 checksum
How to use checksums
9bcf4c4b922456b9416e63cc6543ba91c1e5d84a7bffb20dd8cb4d36a88b6da3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for aiollm-anthropic 0.16.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aiollm_anthropic-0.16.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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