WP Manifestindependent plugin directory
manifest / ai / ai-provider-for-bedrock

AI Provider for AWS Bedrock

AWS Bedrock connector for WordPress AI — Claude, OpenAI, Nova, and other models in your AWS account for privacy-conscious sites.

by Haktan Suren · github.com/handldigital/ai-provider-for-bedrock · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/handldigital/ai-provider-for-bedrock/archive/refs/heads/main.zip

Readme

AI Provider for AWS Bedrock

Minimal WordPress plugin that registers AWS Bedrock with the WordPress AI Client. WordPress AI features can then run on Claude, OpenAI, Nova, and other models in your AWS account — same Connectors UI as OpenAI / Anthropic / Google, with inference kept in your own cloud for privacy-conscious sites and companies.

Setup

  1. Activate the plugin
  2. Open Settings → Connectors → AWS Bedrock
  3. Paste a Bedrock API key
  4. Enable the models you want in the Bedrock console (one-time)

Optional in wp-config.php:

define( 'AWS_BEDROCK_API_KEY', 'your-bedrock-api-key' );
define( 'AWS_BEDROCK_REGION', 'us-east-1' ); // optional

Prefer Bedrock models in the AI plugin

add_filter( 'wpai_preferred_text_models', function ( array $models ): array {
    array_unshift( $models, array( 'aws-bedrock', 'us.anthropic.claude-3-5-haiku-20241022-v1:0' ) );
    return $models;
} );

Add / change models

add_filter( 'ai_provider_for_bedrock_models', function ( array $models ): array {
    $models[] = array(
        'id'      => 'anthropic.claude-3-haiku-20240307-v1:0',
        'name'    => 'Claude 3 Haiku',
        'profile' => true, // prepends us./eu./… from the region
    );
    return $models;
} );

What this covers

  • Text generation via Bedrock Converse
  • System instructions, temperature, max tokens, tools
  • API key auth (Connectors UI / AWS_BEDROCK_API_KEY)

Not included (on purpose, to stay simple): image generation, SigV4 / IAM roles, automatic model discovery.

Read the full README on GitHub →