autogpt-agents by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill autogpt-agents通过可视化界面或开发工具包构建、部署和管理持续运行的 AI 代理的综合平台。
在以下情况下使用 AutoGPT:
主要特性:
在以下情况下使用替代方案:
# 克隆仓库
git clone https://github.com/Significant-Gravitas/AutoGPT.git
cd AutoGPT/autogpt_platform
# 复制环境文件
cp .env.example .env
# 启动后端服务
docker compose up -d --build
# 启动前端(在单独的终端中)
cd frontend
cp .env.example .env
npm install
npm run dev
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
AutoGPT 有两个主要系统:
代理表示为包含通过链接连接的节点的图:
Graph (Agent)
├── Node (Input)
│ └── Block (AgentInputBlock)
├── Node (Process)
│ └── Block (LLMBlock)
├── Node (Decision)
│ └── Block (SmartDecisionMaker)
└── Node (Output)
└── Block (AgentOutputBlock)
模块是可复用的功能组件:
| 模块类型 | 用途 |
|---|---|
INPUT | 代理入口点 |
OUTPUT | 代理输出 |
AI | LLM 调用,文本生成 |
WEBHOOK | 外部触发器 |
STANDARD | 通用操作 |
AGENT | 嵌套代理执行 |
User/Trigger → Graph Execution → Node Execution → Block.execute()
↓ ↓ ↓
Inputs Queue System Output Yields
AI 模块:
AITextGeneratorBlock - 使用 LLM 生成文本AIConversationBlock - 多轮对话SmartDecisionMakerBlock - 条件逻辑集成模块:
控制模块:
手动执行:
POST /api/v1/graphs/{graph_id}/execute
Content-Type: application/json
{
"inputs": {
"input_name": "value"
}
}
Webhook 触发器:
POST /api/v1/webhooks/{webhook_id}
Content-Type: application/json
{
"data": "webhook payload"
}
计划执行:
{
"schedule": "0 */2 * * *",
"graph_id": "graph-uuid",
"inputs": {}
}
WebSocket 更新:
const ws = new WebSocket('ws://localhost:8001/ws');
ws.onmessage = (event) => {
const update = JSON.parse(event.data);
console.log(`Node ${update.node_id}: ${update.status}`);
};
REST API 轮询:
GET /api/v1/executions/{execution_id}
# 设置 forge 环境
cd classic
./run setup
# 从模板创建新代理
./run forge create my-agent
# 启动代理服务器
./run forge start my-agent
my-agent/
├── agent.py # 主要代理逻辑
├── abilities/ # 自定义能力
│ ├── __init__.py
│ └── custom.py
├── prompts/ # 提示词模板
└── config.yaml # 代理配置
from forge import Ability, ability
@ability(
name="custom_search",
description="搜索信息",
parameters={
"query": {"type": "string", "description": "搜索查询"}
}
)
def custom_search(query: str) -> str:
"""自定义搜索能力。"""
# 实现搜索逻辑
result = perform_search(query)
return result
# 运行所有基准测试
./run benchmark
# 运行特定类别
./run benchmark --category coding
# 使用特定代理运行
./run benchmark --agent my-agent
基准测试使用记录的 HTTP 响应以确保可复现性:
# 录制新的录制文件
./run benchmark --record
# 使用现有录制文件运行
./run benchmark --playback
模块自动访问用户凭据:
class MyLLMBlock(Block):
def execute(self, inputs):
# 凭据由系统注入
credentials = self.get_credentials("openai")
client = OpenAI(api_key=credentials.api_key)
# ...
| 提供商 | 认证类型 | 使用场景 |
|---|---|---|
| OpenAI | API 密钥 | LLM,嵌入 |
| Anthropic | API 密钥 | Claude 模型 |
| GitHub | OAuth | 代码,仓库 |
| OAuth | Drive,Gmail,Calendar | |
| Discord | Bot Token | 消息传递 |
| Notion | OAuth | 文档 |
# docker-compose.prod.yml
services:
rest_server:
image: autogpt/platform-backend
environment:
- DATABASE_URL=postgresql://...
- REDIS_URL=redis://redis:6379
ports:
- "8006:8006"
executor:
image: autogpt/platform-backend
command: poetry run executor
frontend:
image: autogpt/platform-frontend
ports:
- "3000:3000"
| 变量 | 用途 |
|---|---|
DATABASE_URL | PostgreSQL 连接 |
REDIS_URL | Redis 连接 |
RABBITMQ_URL | RabbitMQ 连接 |
ENCRYPTION_KEY | 凭据加密 |
SUPABASE_URL | 认证 |
cd autogpt_platform/backend
poetry run cli gen-encrypt-key
服务未启动:
# 检查容器状态
docker compose ps
# 查看日志
docker compose logs rest_server
# 重启服务
docker compose restart
数据库连接问题:
# 运行迁移
cd backend
poetry run prisma migrate deploy
代理执行卡住:
# 检查 RabbitMQ 队列
# 访问 http://localhost:15672 (guest/guest)
# 清理卡住的执行
docker compose restart executor
每周安装数
255
仓库
GitHub 星标数
22.6K
首次出现
Jan 21, 2026
安全审计
安装于
opencode199
gemini-cli194
claude-code194
codex172
cursor163
github-copilot156
Comprehensive platform for building, deploying, and managing continuous AI agents through a visual interface or development toolkit.
Use AutoGPT when:
Key features:
Use alternatives instead:
# Clone repository
git clone https://github.com/Significant-Gravitas/AutoGPT.git
cd AutoGPT/autogpt_platform
# Copy environment file
cp .env.example .env
# Start backend services
docker compose up -d --build
# Start frontend (in separate terminal)
cd frontend
cp .env.example .env
npm install
npm run dev
AutoGPT has two main systems:
Agents are represented as graphs containing nodes connected by links :
Graph (Agent)
├── Node (Input)
│ └── Block (AgentInputBlock)
├── Node (Process)
│ └── Block (LLMBlock)
├── Node (Decision)
│ └── Block (SmartDecisionMaker)
└── Node (Output)
└── Block (AgentOutputBlock)
Blocks are reusable functional components:
| Block Type | Purpose |
|---|---|
INPUT | Agent entry points |
OUTPUT | Agent outputs |
AI | LLM calls, text generation |
WEBHOOK | External triggers |
STANDARD | General operations |
AGENT | Nested agent execution |
User/Trigger → Graph Execution → Node Execution → Block.execute()
↓ ↓ ↓
Inputs Queue System Output Yields
AI Blocks:
AITextGeneratorBlock - Generate text with LLMsAIConversationBlock - Multi-turn conversationsSmartDecisionMakerBlock - Conditional logicIntegration Blocks:
Control Blocks:
Manual execution:
POST /api/v1/graphs/{graph_id}/execute
Content-Type: application/json
{
"inputs": {
"input_name": "value"
}
}
Webhook trigger:
POST /api/v1/webhooks/{webhook_id}
Content-Type: application/json
{
"data": "webhook payload"
}
Scheduled execution:
{
"schedule": "0 */2 * * *",
"graph_id": "graph-uuid",
"inputs": {}
}
WebSocket updates:
const ws = new WebSocket('ws://localhost:8001/ws');
ws.onmessage = (event) => {
const update = JSON.parse(event.data);
console.log(`Node ${update.node_id}: ${update.status}`);
};
REST API polling:
GET /api/v1/executions/{execution_id}
# Setup forge environment
cd classic
./run setup
# Create new agent from template
./run forge create my-agent
# Start agent server
./run forge start my-agent
my-agent/
├── agent.py # Main agent logic
├── abilities/ # Custom abilities
│ ├── __init__.py
│ └── custom.py
├── prompts/ # Prompt templates
└── config.yaml # Agent configuration
from forge import Ability, ability
@ability(
name="custom_search",
description="Search for information",
parameters={
"query": {"type": "string", "description": "Search query"}
}
)
def custom_search(query: str) -> str:
"""Custom search ability."""
# Implement search logic
result = perform_search(query)
return result
# Run all benchmarks
./run benchmark
# Run specific category
./run benchmark --category coding
# Run with specific agent
./run benchmark --agent my-agent
Benchmarks use recorded HTTP responses for reproducibility:
# Record new cassettes
./run benchmark --record
# Run with existing cassettes
./run benchmark --playback
Blocks automatically access user credentials:
class MyLLMBlock(Block):
def execute(self, inputs):
# Credentials are injected by the system
credentials = self.get_credentials("openai")
client = OpenAI(api_key=credentials.api_key)
# ...
| Provider | Auth Type | Use Cases |
|---|---|---|
| OpenAI | API Key | LLM, embeddings |
| Anthropic | API Key | Claude models |
| GitHub | OAuth | Code, repos |
| OAuth | Drive, Gmail, Calendar | |
| Discord | Bot Token | Messaging |
| Notion | OAuth | Documents |
# docker-compose.prod.yml
services:
rest_server:
image: autogpt/platform-backend
environment:
- DATABASE_URL=postgresql://...
- REDIS_URL=redis://redis:6379
ports:
- "8006:8006"
executor:
image: autogpt/platform-backend
command: poetry run executor
frontend:
image: autogpt/platform-frontend
ports:
- "3000:3000"
| Variable | Purpose |
|---|---|
DATABASE_URL | PostgreSQL connection |
REDIS_URL | Redis connection |
RABBITMQ_URL | RabbitMQ connection |
ENCRYPTION_KEY | Credential encryption |
SUPABASE_URL | Authentication |
cd autogpt_platform/backend
poetry run cli gen-encrypt-key
Services not starting:
# Check container status
docker compose ps
# View logs
docker compose logs rest_server
# Restart services
docker compose restart
Database connection issues:
# Run migrations
cd backend
poetry run prisma migrate deploy
Agent execution stuck:
# Check RabbitMQ queue
# Visit http://localhost:15672 (guest/guest)
# Clear stuck executions
docker compose restart executor
Weekly Installs
255
Repository
GitHub Stars
22.6K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubWarnSocketPassSnykWarn
Installed on
opencode199
gemini-cli194
claude-code194
codex172
cursor163
github-copilot156
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
140,500 周安装