Deploy production LangGraph agents on AWS Bedrock AgentCore. Use for (1) multi-agent systems with orchestrator and specialist agent patterns, (2) building stateful agents with persistent cross-session memory, (3) connecting external tools via AgentCore Gateway (MCP, Lambda, APIs), (4) managing shared context across distributed agents, or (5) deploying complex agent ecosystems via CLI with production observability and scaling.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install aws-agentcore-langgraph或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install aws-agentcore-langgraph⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/aws-agentcore-langgraph/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: aws-agentcore-langgraph description: Deploy production LangGraph agents on AWS Bedrock AgentCore. Use for (1) multi-agent systems with orchestrator and specialist agent patterns, (2) building stateful agents with persistent cross-session memory, (3) connecting external tools via AgentCore Gateway (MCP, Lambda, APIs), (4) managing shared context across distributed agents, or (5) deploying complex agent ecosystems via CLI with production observability and scaling. ---
Multi-agent systems on AWS Bedrock AgentCore with LangGraph orchestration. Source: https://github.com/aws/bedrock-agentcore-starter-toolkit
pip install bedrock-agentcore bedrock-agentcore-starter-toolkit langgraph
uv tool install bedrock-agentcore-starter-toolkit # installs agentcore CLI
from langgraph.graph import StateGraph, START
from langgraph.graph.message import add_messages
from langgraph.prebuilt import ToolNode, tools_condition # routing + tool execution
from bedrock_agentcore.runtime import BedrockAgentCoreApp
from typing import Annotated
from typing_extensions import TypedDict
class State(TypedDict):
messages: Annotated[list, add_messages]
builder = StateGraph(State)
builder.add_node("agent", agent_node)
builder.add_node("tools", ToolNode(tools)) # prebuilt tool executor
builder.add_conditional_edges("agent", tools_condition) # routes to tools or END
builder.add_edge(START, "agent")
graph = builder.compile()
app = BedrockAgentCoreApp() # Wraps as HTTP service on port 8080 (/invocations, /ping)
@app.entrypoint
def invoke(payload, context):
result = graph.invoke({"messages": [("user", payload.get("prompt", ""))]})
return {"result": result["messages"][-1].content}
app.run()
| Command | Purpose | |---------|---------| | agentcore configure -e agent.py --region us-east-1 | Setup | | agentcore configure -e agent.py --region us-east-1 --name my_agent --non-interactive | Scripted setup | | agentcore launch --deployment-type container | Deploy (container mode) | | agentcore launch --disable-memory | Deploy without memory subsystem | | agentcore dev | Hot-reload local dev server | | agentcore invoke '{"prompt": "Hello"}' | Test | | agentcore destroy | Cleanup |
session_id for contextfrom bedrock_agentcore.memory import MemoryClient
memory = MemoryClient()
memory.create_event(session_id, actor_id, event_type, payload) # Store
events = memory.list_events(session_id) # Retrieve (returns list)
python -m bedrock_agentcore.gateway.deploy --stack-name my-agents --region us-east-1
from bedrock_agentcore.gateway import GatewayToolClient
gateway = GatewayToolClient()
result = gateway.call("tool_name", param1=value1, param2=value2)
BEDROCK_AGENTCORE_GATEWAY_URL after deployMultiple agents coordinating? → Orchestrator + specialists pattern
Persistent cross-session memory? → AgentCore Memory (not LangGraph checkpoints)
External APIs/Lambda? → AgentCore Gateway
Single agent, simple? → Quick Start above
Complex multi-step logic? → StateGraph + tools_condition + ToolNode
/invocations, /ping)tools_condition for agent→tool routing, ToolNode for executionmy_agent not my-agent| Issue | Fix | |-------|-----| | on-demand throughput isn't supported | Use us.anthropic.claude-* inference profiles | | Model use case details not submitted | Fill Anthropic form in Bedrock Console | | Invalid agent name | Use underscores not hyphens | | Memory empty after write | Wait ~10s (eventual consistency) | | Container not reading .env | Set ENV in Dockerfile, not .env | | Memory not working after deploy | Check logs for "Memory enabled/disabled" | | list_events returns empty | Check actor_id/session_id match; event['payload'] is a list | | Gateway "Unknown tool" | Lambda must strip ___ prefix from bedrockAgentCoreToolName | | Platform mismatch warning | Normal - CodeBuild handles ARM64 cross-platform builds |
安装 aws-agentcore-langgraph 后,可以对 AI 说这些话来触发它
Help me get started with aws-agentcore-langgraph
Explains what aws-agentcore-langgraph does, walks through the setup, and runs a quick demo based on your current project
Use aws-agentcore-langgraph to deploy production LangGraph agents on AWS Bedrock AgentCore
Invokes aws-agentcore-langgraph with the right parameters and returns the result directly in the conversation
What can I do with aws-agentcore-langgraph in my developer & devops workflow?
Lists the top use cases for aws-agentcore-langgraph, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/aws-agentcore-langgraph/ 目录(个人级,所有项目可用),或 .claude/skills/aws-agentcore-langgraph/(项目级)。重启 AI 客户端后,用 /aws-agentcore-langgraph 主动调用,或让 AI 根据上下文自动发现并使用。
aws-agentcore-langgraph 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
aws-agentcore-langgraph 可免费安装使用。请查阅仓库了解许可证信息。
Deploy production LangGraph agents on AWS Bedrock AgentCore. Use for (1) multi-agent systems with orchestrator and specialist agent patterns, (2) building stateful agents with persistent cross-session memory, (3) connecting external tools via AgentCore Gateway (MCP, Lambda, APIs), (4) managing shared context across distributed agents, or (5) deploying complex agent ecosystems via CLI with production observability and scaling.
Automate my developer & devops tasks using aws-agentcore-langgraph
Identifies repetitive steps in your workflow and sets up aws-agentcore-langgraph to handle them automatically
aws-agentcore-langgraph 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。