itsmostafa/aws-agent-skills/bedrock
- community
Checking that the SKILL.md file is still in the repository.
AWS Bedrock foundation models for generative AI. Use when invoking foundation models, building AI applications, creating embeddings, configuring model access, or implementing RAG patterns.
Install
npx vskill@latest install itsmostafa/aws-agent-skills/bedrockSKILL.md
AWS Bedrock
Amazon Bedrock provides access to foundation models (FMs) from AI companies through a unified API. Build generative AI applications with text generation, embeddings, and image generation capabilities.
Table of Contents
Core Concepts
Foundation Models
Pre-trained models available through Bedrock:
- Claude (Anthropic): Text generation, analysis, coding
- Nova / Titan (Amazon): Text, multimodal, embeddings
- GPT / gpt-oss (OpenAI): Text generation, reasoning
- Llama (Meta): Open-weight text generation
- Mistral: Efficient text generation
- Stable Image (Stability AI): Image generation and editing
Model Access
In commercial Regions, access to all serverless models is enabled by default (no console opt-in). In GovCloud (US), models are still enabled manually on the Model access page (third-party models also in the linked commercial account):
- First invocation of a third-party model auto-subscribes via AWS Marketplace (up to 15 min); caller needs
aws-marketplace:Subscribe,Unsubscribe,ViewSubscriptions - Anthropic models on
bedrock-runtimeneed a one-time use case form per account/org (put-use-case-for-model-access) - Invoking implies EULA acceptance; to block a model, deny both
bedrock:InvokeModelandbedrock:InvokeModelWithResponseStreamon it (SCP/IAM); streaming APIs such asConverseStreamuse the latter. Denyingaws-marketplace:Subscribealone does not block first use
Endpoints
| Endpoint | APIs | Use for | |
|---|---|---|---|
bedrock-runtime.{region}.amazonaws.com (recommended) | InvokeModel, Converse, Anthropic Messages (/anthropic), OpenAI Responses/Chat Completions (/openai/v1) | Guardrails, cross-Region inference, prompt routing, application inference profiles | |
bedrock-mantle.{region}.api.aws | OpenAI Responses/Chat Completions (/openai/v1), Anthropic Messages | Server-side tools (Web Search), background=true async, Projects/Workspaces, single-Region access to CRIS-only models |
- Same per-token price on both; auth via SigV4 or Bedrock API key (
AWS_BEARER_TOKEN_BEDROCK) - IAM:
bedrock:InvokeModel(runtime) vsbedrock-mantle:CreateInference(mantle) - Responses API on
bedrock-runtimeis synchronous only and has no server-side tools
Inference Profiles and Model Lifecycle
- Newer models (e.g. Claude Sonnet 5) have no in-Region on-demand ID on
bedrock-runtime: use a geo (us.,eu.,au.) orglobal.inference profile ID asmodelId - Lifecycle is
Active->Legacy->EOL(seemodelLifecycleinget-foundation-model). Legacy: no new Provisioned Throughput, fine-tuning, or quota increases; EOL: requests fail - Model cards list an "EOL no sooner than" date; check before pinning a model ID
Knowledge Bases and Agents
- Managed knowledge bases (
type: MANAGED): Bedrock runs storage, indexing, and retrieval. Only type that supportsAgenticRetrieveStream(query decomposition, iterative retrieval, optional AgentCore Memory viamemoryConfiguration) - Native multimodal managed KBs embed video/audio/image directly with TwelveLabs Marengo Embed 3.0 (
twelvelabs.marengo-embed-3-0-v1:0); query with text viaRetrieveonly (noRetrieveAndGenerate) - Bedrock Agents Classic is in maintenance mode: closed to new accounts since July 30, 2026 (
CreateAgent/InvokeInlineAgentreturn 403 without prior 12-month usage), model catalog frozen. Build new agents on Amazon Bedrock AgentCore
Inference Types
| Type | Use Case | Pricing | |
|---|---|---|---|
| On-Demand | Variable workloads | Per token | |
| Provisioned Throughput | Consistent high-volume | Hourly commitment | |
| Batch Inference | Async large-scale | Discounted per token |
Common Patterns
Invoke Model (Text Generation)
AWS CLI:
boto3:
Streaming Response
Generate Embeddings
Conversation with History
List Available Models
Check Model Access
Count Tokens
CLI Reference
Bedrock (Control Plane)
| Command | Description | ||
|---|---|---|---|
aws bedrock list-foundation-models | List available models | ||
aws bedrock get-foundation-model | Get model details | ||
aws bedrock list-custom-models | List fine-tuned models | ||
aws bedrock create-model-customization-job | Start fine-tuning | ||
aws bedrock list-provisioned-model-throughputs | List provisioned capacity | ||
aws bedrock get-foundation-model-availability | Check access/agreement status for a model | ||
aws bedrock put-use-case-for-model-access | Submit Anthropic first-time use case form | ||
aws bedrock list-inference-profiles | List system/application inference profiles | ||
aws bedrock create-model-invocation-job | Start batch job (`--model-invocation-type InvokeModel\ | Converse`) |
Bedrock Runtime (Data Plane)
| Command | Description | |
|---|---|---|
aws bedrock-runtime invoke-model | Invoke model synchronously | |
aws bedrock-runtime converse | Multi-turn conversation API | |
aws bedrock-runtime count-tokens | Count input tokens (--input with invokeModel or converse) | |
aws bedrock-runtime apply-guardrail | Evaluate content against a guardrail |
InvokeModelWithResponseStream and ConverseStream are SDK-only (not in AWS CLI v2).
Bedrock Agent Runtime
| Command | Description | |
|---|---|---|
aws bedrock-agent-runtime retrieve | Query knowledge base | |
aws bedrock-agent-runtime retrieve-and-generate | RAG query |
InvokeAgent, RetrieveAndGenerateStream, and AgenticRetrieveStream are SDK-only (event streams).
Best Practices
Cost Optimization
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/bedrock/SKILL.md
Popularity
- Repository stars
- 1,096
- Repository forks
- 440
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 13 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/itsmostafa/aws-agent-skills/bedrock)