一键启动 13 容器全栈原型并运行 8 场景自动化验证
前提:本机已安装 Docker(含 Compose v2)与 Python 3.12。无需申请任何外部 LLM API Key 即可确定性跑通全部安全与多跳场景。
bash · 克隆、单测、全栈启动与 E2E 验证
git clone https://github.com/wowmarcomei/agent-identity.git cd agent-identity # 1. 无容器静态校验(约 5 秒):agentgateway Schema + OPA Rego 单测 + Python 单测 make validate-gateway make test # 2. 构建并启动全部 13 个容器(等待全部健康探针就绪) make up # 3. 运行 AgentID v2.0 统一架构 8 场景彩色演示与 E2E 回归 make demo-v2 make e2e-v2 # 4. 停止并清理全部容器与卷 make down
启动后的本地服务入口与演示账号
内置 Keycloak corp Demo Realm 账号:alice / alice123(agent-owner、auditor)、bob / bob123(普通员工)、secadmin / admin123(agent-admin)。
| 服务 | 本地地址 | 用途说明 |
|---|---|---|
| AgentID 管理看板 | http://localhost:8000/dashboard | 注册表、委托与任务树 Kill Switch、人工审批队列、防篡改审计验链 |
| AgentID Control Plane | http://localhost:8000/docs | 控制面 OpenAPI 3.1 Swagger UI 与 /.well-known/oauth-authorization-server |
| agentgateway 统一网关 | http://localhost:3000 | HTTP / MCP / A2A 统一数据面代理(/legacy/*、/mcp、/a2a/auditor/*) |
| Nacos 3.1.1 AI Registry | http://localhost:8880 | A2A Agent 注册与发现控制台 |
| Keycloak / OPA / Vault | :8080 / :8181 / :8201 | 企业 IAM(admin/admin)、策略引擎、Dev Vault(Token: agentid-vault-dev-token) |