Skip to main content

Genkit Anthropic Plugin (Community)

Community Plugin — This plugin is community-maintained and is not an official Google or Anthropic product. It is provided on an "as-is" basis.

Preview — This plugin is in preview and may have API changes in future releases.

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-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

This is a community-maintained plugin and is not officially supported by Google or Anthropic. 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.10.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.10.0
File Size Uploaded
genkit_anthropic-0.10.0.tar.gz 43.9 kB Details

Built distribution (wheel)

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

Total release size: 71.2 kB

Release files / genkit_anthropic-0.10.0.tar.gz

Download URL genkit_anthropic-0.10.0.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
36da13813bd846ecc5c8fd76631c33f92e58d0854253c57bedc2df12491eb687
BLAKE2b-256 checksum
How to use checksums
b1f108cabb4cbe4c2b6eae29bd8ede7d409bd50ca2eaf92ed1f519753193cc3e
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 Aug 20, 2026.

Transparency log

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

Download URL genkit_anthropic-0.10.0-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f77c29124b5f9f1734e4cad164c68e64ea1fea12b46938974ac6f710704b004
BLAKE2b-256 checksum
How to use checksums
baa6cad8504f6063fb588c88be8344bfe786f17a5fd7991ae6492cbd275a4cc7
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 Aug 20, 2026.

Transparency log

Release history Release notifications | RSS feed

0.12.0

2 release files

This release

0.10.0 This release

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