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.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/handldigital/ai-provider-for-bedrock/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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.