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 Workspace Settings › AI models, select AWS Bedrock. Enter the raw Bedrock model or inference-profile ID—without an
amazon-bedrock/ prefix—and type its AWS Region, for example us-east-1, in the AWS region field.The model field suggests one inference profile per Claude model: the selected Region’s geography (us, eu, jp, au, or in) when that geography has a profile for the model, or the global. profile otherwise. Use the prefix the field suggests:Context7 selects region-aware defaults in v1.3.9 and later. If you enter a custom model or inference-profile ID, verify that it is invocable from the configured Region.
2
Configure embeddings
In the setup wizard, select Same as LLM to use Bedrock embeddings, or select Separate provider and then AWS Bedrock. Use an Amazon Titan model such as
amazon.titan-embed-text-v2:0. You can change the embedding provider and model only in the setup wizard; Workspace Settings › AI models shows them read-only.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.