IX

iiiiqiiii/x-agent

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

33 stars 4 forks 质量 70 趋势 11MIT

采用 Claude Agent SDK 和 Chrome DevTools MCP 的 AI 驱动 X.com 自动化

概览

基于Claude Agent SDK和Chrome DevTools MCP的强大 X.com 自动化框架,支持智能浏览、点赞、评论、发布及全面的社交媒体自动化操作。 30秒演示,展示XAgent的操作:搜索、点赞和评论 X.com 帖子 XAgent 是一款企业级 X.com(Twitter)自动化框架,结合了 Anthropic 的 Claude AI 和 Chrome 浏览器自动化功能,以执行复杂的社交媒体任务。 - :使用克劳德十四行诗4。

概述(AI 翻译)

基于 Claude Agent SDK 和 Chrome DevTools MCP 的强大 X.com 自动化框架,支持智能浏览、点赞、评论、发帖及全面的社交媒体自动化操作。

🎬 演示

30秒演示,展示XAgent的操作过程:搜索、点赞和评论 X.com 帖子


📖 目录

  • 项目概述
  • 核心功能
  • 建筑设计
  • 技术栈
  • 快速入门
  • 项目结构
  • 核心概念
  • API 参考
  • 真实用例
  • 发展指南
  • 最佳实践
  • 故障排除
  • 扩展与定制

项目概述

XAgent 是一款企业级 X.com(Twitter)自动化框架,结合了 Anthropic 的 Claude AI 和 Chrome 浏览器自动化功能,以执行复杂的社交媒体任务。

为什么选择XAgent?

  • ** 🤖 AI驱动**:采用Claude Sonnet 4.5模型,具备真正的语义理解能力
  • ** 🌐 真实浏览器**:基于Chrome DevTools协议,完全模拟真实用户行为
  • ** 🔧 高度可扩展性**:模块化设计,易于添加新功能和自定义行为

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

XAgent: Intelligent X.com Automation Framework

A powerful X.com automation framework based on Claude Agent SDK and Chrome DevTools MCP, supporting intelligent browsing, liking, commenting, posting, and comprehensive social media automation operations.

🎬 Demo

30-second demo showing XAgent in action: searching, liking, and commenting on X.com posts


📖 Table of Contents


Project Overview

XAgent is an enterprise-grade X.com (Twitter) automation framework that combines Anthropic’s Claude AI with Chrome browser automation capabilities to execute complex social media tasks.

Why Choose XAgent?

  • 🤖 AI-Powered: Uses Claude Sonnet 4.5 model with true semantic understanding capabilities
  • 🌐 Real Browser: Based on Chrome DevTools Protocol, fully simulates real user behavior
  • 🔧 Highly Extensible: Modular design, easy to add new features and customize behavior
  • 📊 Production-Ready: Includes error handling, retry mechanisms, and detailed logging
  • 💰 Cost Transparent: Real-time tracking of API call costs and usage

Use Cases

  • Social media marketing automation
  • Content discovery and curation
  • Community management and engagement
  • Research and data collection
  • Brand monitoring and reputation management

Core Features

Basic Functionality

  • ✅ Browse and Navigate: Intelligently browse X.com and understand page structure
  • ✅ Search: Search content by keywords, topics, or users
  • ✅ Like: Automatically like posts
  • ✅ Comment: Generate and post context-aware comments
  • ✅ Post: Create and publish new tweets
  • ✅ Follow/Unfollow: Manage follower lists
  • ✅ Repost: Share interesting content
  • ✅ Timeline Analysis: Analyze and summarize timeline content

Advanced Features

  • 🎯 Batch Operations: Process multiple posts at once
  • 🧠 Smart Comments: Generate relevant, valuable comments based on content
  • 📈 Progress Tracking: Track task progress using TodoWrite tool
  • 🔄 Session Management: Support for long-running automation tasks
在 GitHub 查看完整 README

安装

npx -y chrome-devtools-mcp@latest --browser-url=http://127.0.0.1:9222
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "chrome-devtools": { "command": "npx", "args": [ "-y", "chrome-devtools-mcp@latest", "--browser-url=http://127.0.0.1:9222" ] } }, "permissionMode": "bypassPermissions" }