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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genkit_anthropic-0.9.0.tar.gz (43.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genkit_anthropic-0.9.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file genkit_anthropic-0.9.0.tar.gz.

File metadata

  • Download URL: genkit_anthropic-0.9.0.tar.gz
  • Upload date:
  • Size: 43.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for genkit_anthropic-0.9.0.tar.gz
Algorithm Hash digest
SHA256 9cce05da79b60282f81fc3aba3c3b81a9267fe4bd360df12009c5dd9066143e3
MD5 cbd9b86acf27d68476a7d838942036e5
BLAKE2b-256 ece2eb45256a2181978de66b6f3c209a855bcb03afbca4fa6a275878ec08ac30

See more details on using hashes here.

Provenance

The following attestation bundles were made for genkit_anthropic-0.9.0.tar.gz:

Publisher: publish_python.yml on genkit-ai/genkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file genkit_anthropic-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for genkit_anthropic-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e322e641e93e971cffe8d81c9722c17f61f3fd1d3e662f473c8a0c4fccc096b4
MD5 69747ecf7870dbb7a5c0d0a3c9a77483
BLAKE2b-256 b50ec9ccad271ddf9f02d7099c464aa11ca800a9f043b907f92c20acf206b32a

See more details on using hashes here.

Provenance

The following attestation bundles were made for genkit_anthropic-0.9.0-py3-none-any.whl:

Publisher: publish_python.yml on genkit-ai/genkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page