Skip to main content

Genkit Anthropic Plugin

Anthropic Claude model provider for Genkit.

Installation

uv add genkit-anthropic

Usage

from genkit import Genkit
from genkit_anthropic import Anthropic

ai = Genkit(plugins=[Anthropic()])

res = await ai.generate(
    model=Anthropic.claude_model('claude-sonnet-4-6'),
    prompt='Explain recursion in 10 words.',
)
print(res.text)

Set ANTHROPIC_API_KEY in the environment, or pass api_key= to Anthropic().

Disclaimer

Use of Anthropic's API is subject to Anthropic's Terms of Service and Privacy Policy. You are responsible for complying with all applicable terms when using this plugin.

  • API Key Security — Never commit your Anthropic API key to version control. Use environment variables or a secrets manager.
  • Usage Limits — Be aware of your Anthropic plan's rate limits and token quotas. See Anthropic Pricing.
  • Data Handling — Review Anthropic's data processing practices before sending sensitive or personally identifiable information.

License

Apache-2.0

Release files for genkit-anthropic 0.11.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 genkit-anthropic 0.11.0
File Size Uploaded
genkit_anthropic-0.11.0.tar.gz 44.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for genkit-anthropic 0.11.0
File Interpreter ABI Platform
genkit_anthropic-0.11.0-py3-none-any.whl Python 3 none any Details

Total release size: 72.1 kB

Release files / genkit_anthropic-0.11.0.tar.gz

Download URL genkit_anthropic-0.11.0.tar.gz
Size 44.5 kB
Tags Source
SHA-256 checksum
How to use checksums
588e2906689fe337bcd9c58ea98c81829e5d2f070b00e3773d1b4935b1388fce
BLAKE2b-256 checksum
How to use checksums
729802d9e5c3bdb8ce93d4af232501b70c0a6214ad4b46b5296f86a28561936c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 3, 2026.

Transparency log

Release files / genkit_anthropic-0.11.0-py3-none-any.whl

Download URL genkit_anthropic-0.11.0-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c221a92228c87ca6aff8ed0b176b75c5e2f651683622ac091890e283f5ac007
BLAKE2b-256 checksum
How to use checksums
c56d42f8b608d105ed2ef09a0838079029c8d3f923e74402ba3a574f930d1d00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.12.0

2 release files

This release

0.11.0 This release

2 release files

0.10.0

2 release files

0.9.0

2 release files

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