Prerequisites
- Enable access to the Claude and Amazon Titan models you plan to use in the selected AWS Region.
- Allow
bedrock:InvokeModelandbedrock:InvokeModelWithResponseStreamfor the models you use. For a geographic cross-region inference profile, allow both the inference-profile ARN and the underlying foundation-model ARN in the source Region and every destination Region. - Give the Context7 container network access to the regional Bedrock Runtime endpoint.
Authenticate
A workload IAM role is recommended. Context7 uses the standard AWS SDK credential chain, including environment credentials, web identity, shared profiles, and ECS or EC2 role credentials.- Workload role
- Environment credentials
- Bedrock API key
Attach an IAM role to the ECS task, EC2 instance, or Kubernetes service account that runs Context7. Leave the API Key field blank in Context7.
Configure Context7
1
Configure the LLM
In the setup wizard or Settings → AI & Models, select AWS Bedrock. Enter the raw Bedrock model or inference-profile ID—without an
amazon-bedrock/ prefix—and select its AWS Region.For example: us.anthropic.claude-haiku-4-5-20251001-v1:0.2
Configure embeddings
Select Same as LLM to use Bedrock embeddings, or select AWS Bedrock separately. Use an Amazon Titan model such as
amazon.titan-embed-text-v2:0.The LLM and embedding configurations share one AWS Region. If both use Bedrock, choose models available from the same configured region.3
Test and verify
Test both connections, save the configuration, and parse a small repository. Query the resulting library to verify that parsing and semantic search both work.
Private connectivity
Create thecom.amazonaws.<region>.bedrock-runtime interface VPC endpoint for AWS PrivateLink. With private DNS enabled, leave Context7’s optional Bedrock endpoint field blank. Without private DNS, enter the full endpoint URL, such as:
An offline Context7 license removes the Context7 Cloud license check, but Bedrock still requires AWS network connectivity. Content sent for parsing, embedding, reranking, or source-code documentation is processed by the selected Bedrock models.