经 AI Skill Hub 精选评估,AI工作流 获评「推荐使用」。这款Agent工作流在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
AI工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
AI工作流 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:npm 全局安装 npm install -g cagent-action # 方式二:npx 直接运行(无需安装) npx cagent-action --help # 方式三:项目依赖安装 npm install cagent-action # 方式四:从源码运行 git clone https://github.com/docker/cagent-action cd cagent-action npm install npm start
# 命令行使用
cagent-action --help
# 基本用法
cagent-action [options] <input>
# Node.js 代码中使用
const cagent_action = require('cagent-action');
const result = await cagent_action.run(options);
console.log(result);
# cagent-action 配置说明 # 查看配置选项 cagent-action --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export CAGENT_ACTION_CONFIG="/path/to/config.yml"
A GitHub Action for running Docker Agent AI agents in your workflows. This action simplifies the setup and execution of Docker Agent, handling binary downloads and environment configuration automatically.
This action includes built-in security features for all agent executions:
See security/README.md for complete security documentation.
- uses: docker/cagent-action@VERSION
with:
agent: path/to/agent.yaml
prompt: "Analyze this code"
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
2. Configure API key in your repository settings: - Go to Settings → Secrets and variables → Actions - Add ANTHROPIC_API_KEY (or another provider's key) from Anthropic Console
3. That's it! The action will automatically: - Download the Docker Agent binary - Run your specified agent - Scan outputs for leaked secrets - Provide results in workflow logs
- name: Run Docker Agent with Custom Settings
uses: docker/cagent-action@VERSION
with:
agent: docker/code-analyzer
prompt: "Analyze this codebase"
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
mcp-gateway: true # Set to true to install mcp-gateway
mcp-gateway-version: v0.22.0
yolo: false # Require manual approval
timeout: 600 # 10 minute timeout
debug: true # Enable debug logging
working-directory: ./src
extra-args: "--verbose"
add-prompt-files: "AGENTS.md,CLAUDE.md" # Append these files to the prompt
At least one API key is required. The action validates this at startup and fails fast with a clear error if no API key is provided.
Supported providers:
anthropic-api-key): Claude models - Get API keyopenai-api-key): GPT models - Get API keygoogle-api-key): Gemini models - Get API keyaws-bearer-token-bedrock): Various models via AWSxai-api-key): Grok models - Get API keynebius-api-key): Nebius modelsmistral-api-key): Mistral models - Get API keyname: AI Code Review
on:
pull_request:
types: [opened]
jobs:
review:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Security Review
uses: docker/cagent-action@VERSION
with:
agent: docker/github-action-security-scanner
prompt: "Analyze for security issues"
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
- name: Code Quality Analysis
uses: docker/cagent-action@VERSION
with:
agent: docker/code-quality-analyzer
prompt: "Analyze code quality and best practices"
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
For comprehensive documentation on setting up AI-powered PR reviews, including features like requesting a review from docker-agent, automatic reviews, the /review command, feedback learning, and customization options, see the PR Review documentation.
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
AI Skill Hub 点评:AI工作流 的核心功能完整,质量良好。对于自动化工程师和运维人员来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | cagent-action |
| 原始描述 | 开源AI工作流:A GitHub Action for running docker agent AI agents in your workflows.。⭐19 · TypeScript |
| Topics | ai-agentsgithub-actionstypescript |
| GitHub | https://github.com/docker/cagent-action |
| License | Apache-2.0 |
| 语言 | TypeScript |
收录时间:2026-05-27 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端