← 返回开源项目学习

AiToEarn 深度研究 AiToEarn Deep Dive

OPC一人公司的AI内容营销智能体 | v2.1.0 | 2590+ Commits AI Content Marketing Agent for OPC | v2.1.0 | 2590+ Commits

MCP Protocol NestJS Docker Content Monetization OpenClaw

一、项目概述 1. Project Overview

1.1 核心定位 1.1 Core Positioning

AiToEarn(中文名:艾途恩)是一款专为OPC(One-Person Company,一人公司)设计的AI内容营销智能体平台。项目的核心理念是帮助个人创作者和小型团队通过AI自动化,在全球主流社交平台上构建、分发并变现内容。 AiToEarn is an AI content marketing agent platform designed for OPCs (One-Person Companies). The core concept is to help individual creators and small teams build, distribute, and monetize content on major social platforms through AI automation.

1.2 四大核心能力 1.2 Four Core Capabilities

💰

Monetize

内容变现Monetize

CPS/CPE/CPM

📢

Publish

多平台发布Publish

10+ 平台分发

💬

Engage

自动互动Engage

浏览器插件

🎨

Create

AI创作Create

视频/图文

1.3 支持平台 1.3 Supported Platforms

🌏 国内市场(6个) 🌏 China Market (6)

抖音
小红书
快手
哔哩哔哩
视频号
微信公众号

🌍 国际市场(6个) 🌍 International (6)

TikTok
YouTube
Facebook
Instagram
Twitter/X
Pinterest
LinkedIn
Threads

二、技术架构分析 2. Technical Architecture

2.1 整体架构 2.1 Overall Architecture

┌─────────────────────────────────────────────────────────────┐
│                        Nginx (:8080)                        │
│                    Reverse Proxy / Load Balancer             │
└─────────────────────────────┬───────────────────────────────┘
                              │
        ┌─────────────────────┼─────────────────────┐
        │                     │                     │
┌───────┴───────┐     ┌───────┴───────┐     ┌───────┴───────┐
│  Web (FE)     │     │    Server     │     │     AI        │
│  Next.js      │     │   NestJS      │     │   NestJS      │
│   :3000       │     │    :3002      │     │    :3010      │
└───────────────┘     └───────┬───────┘     └───────┬───────┘
                              │                     │
        ┌─────────────────────┼─────────────────────┤
        │                     │                     │
┌───────┴───────┐     ┌───────┴───────┐     ┌───────┴───────┐
│   MongoDB      │     │    Redis      │     │   RustFS      │
│    :27017      │     │    :6379      │     │  :9000/9001   │
└───────────────┘     └───────────────┘     └───────────────┘

2.2 技术栈详情 2.2 Tech Stack Details

组件Component 技术选型Technology 说明Description
Frontend Next.js React生态,SSR/SSG支持React ecosystem, SSR/SSG support
Server NestJS 模块化、微服务友好Modular, microservice-friendly
AI Service NestJS + 多模型 集成GPT/Claude/GeminiGPT/Claude/Gemini integration
Database MongoDB 文档型数据库Document database
Cache/Queue Redis 缓存、会话、任务队列Cache, session, task queue
Storage RustFS (S3兼容) 对象存储,可替换AWS S3Object storage, swappable with AWS S3
💡 关键洞察: NestJS 框架的选用带来了模块化架构优势,便于拆分用户、内容、平台、AI 等功能域,且TypeScript原生支持和微服务友好。 NestJS provides modular architecture, making it easy to split domains like users, content, platforms, and AI. TypeScript native support and microservice-friendly design are key advantages.

三、核心功能深度解析 3. Core Features Deep Dive

3.1 Monetize - 内容变现 3.1 Monetize - Content Monetization

AiToEarn 最核心的目标是帮助创作者赚钱。平台提供三种结算模式,支持完整的内容变现闭环。 The core mission of AiToEarn is to help creators earn money. The platform provides three settlement modes and supports a complete content monetization loop.

结算模式Model 全称Full Name 含义Meaning 适用场景Use Case
CPS Cost Per Sale 按成交额结算Settle by transaction 电商推广E-commerce
CPE Cost Per Engagement 按互动量结算Settle by engagement 品牌曝光Brand awareness
CPM Cost Per Mille 按播放量结算Settle by views 内容分发Content distribution

3.2 Publish - 多平台发布 3.2 Publish - Multi-Platform Publishing

一键将内容分发到全球10+主流平台。核心创新是Relay机制,用户无需申请各平台OAuth凭据。 One-click distribution to 10+ platforms worldwide. The core innovation is the Relay mechanism, eliminating the need for users to apply OAuth credentials on each platform.

🔑 Relay 中继机制:
发布内容需要登录社交媒体账号(抖音、小红书、TikTok等),这些平台需要OAuth开发者凭据。配置Relay后,可以直接借用官方aitoearn.ai的凭据完成授权,不需要自己申请开发者账号。 Publishing requires logging into social media accounts, which need OAuth developer credentials. With Relay, you can use official aitoearn.ai credentials directly.

3.3 Engage - 浏览器自动化 3.3 Engage - Browser Automation

通过浏览器插件实现自动化互动运营,支持所有平台。 Automated engagement via browser extension, supporting all platforms.

3.4 Create - AI内容创作 3.4 Create - AI Content Creation

用Agent方式重构内容制作流程,只需告诉Agent需求,它自动完成从创意到成品。 Reconstructed content creation with Agent approach. Just tell the Agent your needs, it handles everything from idea to finished product.

🎬

视频内容Video Content

Grok、Veo、Seedance等模型Grok, Veo, Seedance, etc.

🖼️

图文内容Image Content

Nano Banana等顶级模型Nano Banana, GPT-Image

📦

批量生成Batch Generation

并行生成多条内容Parallel content generation

四、MCP协议集成 4. MCP Protocol Integration

AiToEarn 支持所有兼容MCP协议的AI助手,可在Claude、Cursor等工具中直接调用。 AiToEarn supports all MCP-compatible AI assistants, callable directly from Claude, Cursor, and other tools.

4.1 MCP服务端点 4.1 MCP Server Endpoint

https://aitoearn.ai/api/unified/mcp

4.2 Claude Desktop配置 4.2 Claude Desktop Configuration

{
  "mcpServers": {
    "aitoearn": {
      "type": "http",
      "url": "https://aitoearn.ai/api/unified/mcp",
      "headers": {
        "x-api-key": "你的API-Key"
      }
    }
  }
}

4.3 Cursor配置 4.3 Cursor Configuration

配置项Setting Value
MCP URL https://aitoearn.ai/api/unified/mcp
认证HeaderAuth Header x-api-key: 你的API-Key

五、商业模式分析 5. Business Model Analysis

5.1 定价策略 5.1 Pricing Strategy

采用Pay As You Go模式,用户购买Credits用于支付AI模型费用,承诺价格不超过官方定价。 Pay As You Go model with Credits for AI model payments. Prices never exceed official pricing.

套餐Plan 价格Price Credits 换算Conversion
基础版 $10 1,000 100 Credits = $1
推荐版 $50 5,000 批量折扣Bulk discount
专业版 $100 10,000 最大折扣Max discount

5.2 模型定价参考 5.2 Model Pricing Reference

模型Model Input ($/M tokens) Output ($/M tokens)
Gemini 3.0 Pro $2 $12
Claude Sonnet 4.5 $3 $15
Claude Opus 4.5 $5 $25
GPT-5 / 5.1 $1.25 $10

六、竞品对比分析 6. Competitive Analysis

6.1 功能对比矩阵 6.1 Feature Comparison Matrix

功能Feature AiToEarn Buffer Hootsuite Sprout Social
多平台发布Multi-platform ✅ 12+ ✅ 11 ✅ 8 ✅ 11+
AI内容生成 全流程Full ✅ AI Assistant ✅ OwlyWriter ✅ AI
视频生成Video Generation
内容变现Monetization ✅ CPS/CPM
MCP协议
开源Open Source
自部署Self-hosted ✅ Docker
🚀 AiToEarn 差异化优势:
  • AI原生设计:从架构层就围绕AI Agent设计
  • 变现闭环:唯一提供完整变现链路
  • 开源透明:代码完全可见可审计
  • MCP生态:无缝接入Claude/Cursor
  • OpenClaw集成:进入赚钱任务生态

七、对一人公司AI团队的启发 7. Insights for AI Teams

7.1 内容变现链路设计 7.1 Content Monetization Loop Design

AiToEarn的最大启示是:内容营销的终点是变现。 The biggest insight from AiToEarn: the endpoint of content marketing is monetization.

内容生产 → 多平台分发 → 用户互动 → 流量获取 → 变现转化
    ↑                                                   ↓
    └──────── 持续迭代优化 ←─────────────────────────────┘

7.2 技术选型建议 7.2 Technology Recommendations

场景Scenario 推荐技术Recommended 理由Reason
后端框架Backend NestJS 模块化、TypeScript、微服务友好Modular, TypeScript, microservice
前端框架Frontend Next.js SSR/SSG、SEO友好SSR/SSG, SEO-friendly
数据库Database MongoDB 文档型、灵活schemaDocument type, flexible schema
缓存/队列Cache/Queue Redis 高性能、丰富数据结构High performance, rich data structures
部署方式Deployment Docker Compose 一键部署、环境一致One-click, consistent environment

7.3 产品设计洞察 7.3 Product Design Insights

八、关键借鉴点总结 8. Key Takeaways

🛠️ 技术层面 🛠️ Technical

  • NestJS微服务架构
  • MCP协议融入AI生态
  • OAuth中继简化集成
  • Docker一键部署

📈 产品层面 📈 Product

  • AI Agent原生设计
  • 变现闭环完整链路
  • 多入口生态策略
  • Credits弹性计费
💡 核心启示

不要做孤立的产品,要融入用户的现有工作流。通过开源获取用户信任,通过云服务实现商业变现,通过生态集成扩展使用场景。 Don't build isolated products. Integrate into existing user workflows. Use open source for user trust, cloud services for monetization, and ecosystem integration for expansion.

附录:快速上手 Appendix: Quick Start

A. Docker部署 A. Docker Deployment

git clone https://github.com/yikart/AiToEarn.git
cd AiToEarn
docker compose up -d
# 访问 http://localhost:8080

B. MCP配置(Claude Desktop) B. MCP Configuration (Claude Desktop)

{
  "mcpServers": {
    "aitoearn": {
      "type": "http",
      "url": "https://aitoearn.ai/api/unified/mcp",
      "headers": {
        "x-api-key": "你的API-Key"
      }
    }
  }
}