AiToEarn README

The project's README from github.com/yikart/AiToEarn. As one markdown file: README.md.

Aitoearn:OPC(一人公司)的AI内容营销智能体

yikart%2FAiToEarn | Trendshift

GitHub stars GitHub license Required Node.JS 20.18.x

简体中文 | English | 日本語

Monetize · Publish · Engage · Create —— 一站式平台。

AiToEarn 通过 AI Agent自动化,帮助 OPC(一人公司)、创作者、品牌与企业在全球主流平台上构建、分发并变现内容。

支持渠道: 抖音、小红书(Rednote)、快手、哔哩哔哩、视频号、公众号、TikTok、YouTube、Facebook、Instagram、Threads、Twitter(X)、Pinterest、LinkedIn

特别感谢 ❤️

秘塔科技
秘塔科技
感谢秘塔科技对本项目的赞助!
MiniMax H3 视频生成 API|秘塔科技
秘塔科技提供高性价比的 MiniMax H3 视频生成服务:768P 仅 0.09 元/秒,2K 仅 0.15 元/秒。支持原生 2K、音画同步,API 兼容 OpenAI 协议,同时支持 ComfyUI,无需自行部署 GPU。
🎁 通过 AiToEarn专属链接注册,即可领取赠送额度及专属优惠。
商务对接可加微信:metasota12

🚀 快速使用 AiToEarn(5 种方式)

方式 适合谁 需要部署吗
① 打开网站直接用 所有用户 ❌ 不需要
② 在龙虾 OpenClaw 中用 龙虾用户 ❌ 不需要
③ 在 Claude / Cursor 等 AI 助手中用 AI 工具用户 ❌ 不需要
④ Docker 一键部署 想私有化部署的团队 ✅ 需要服务器
⑤ 源码开发 开发者 ✅ 需要开发环境

💡 方式 ②③④ 都需要先获取 API Key,请先看 如何获取 API Key。

最新动态

目录


  1. 快速使用 AiToEarn(5 种方式)
  2. 最新动态
  3. 核心功能
  4. 如何获取 API Key
  5. 贡献指南
  6. 联系
  7. 推荐

核心功能

AiToEarn 围绕内容创作者的完整变现链路,提供四大 Agent 能力:

Monetize · Publish · Engage · Create


💰 Monetize —— 内容赚钱

AiToEarn 最核心的目标:帮助每一位创作者赚钱。

创作者可以在平台出售内容以完成商家的推广任务。所有结算以结果为导向,我们提供三种结算模式:

结算模式 全称 含义
CPS Cost Per Sale 按成交额结算
CPE Cost Per Engagement 按互动量结算
CPM Cost Per Mille 按播放量结算

📢 Publish —— 内容发布 Agent

一键将内容分发到全球 10+ 主流平台,告别逐个平台手动发布。

▶ 观看演示视频

Publish 演示视频

💬 Engage —— 内容互动 Agent

通过 AiToEarn 浏览器插件,在上述所有平台上实现自动化互动运营。

▶ 观看演示视频

Engage 演示视频

🎨 Create —— 内容创作 Agent

我们用 Agent 的方式重构了内容制作流程。只需告诉 Agent 你的内容需求,它会自动完成从创意到成品的全部工作。

视频内容:Agent 自动调用视频生成模型(Grok、Veo、Seedance 等)、视频翻译模块、视频剪辑模块,一站式完成视频制作。

图文内容:支持调用 Nano Banana 等顶级图片模型,自动生成高质量图文内容。

批量生成:支持批量下发创作任务,Agent 可并行生成多条内容,快速铺量,适合矩阵账号运营和大规模内容分发场景。

▶ 观看演示视频

Create 演示视频

① 打开网站直接用

最简单的方式,打开浏览器即可使用,无需任何配置:


🔑 如何获取 API Key(后续步骤的前置条件)

以下的方式 ②③④ 都需要 API Key。只需获取一次,所有方式通用。

3 步获取:

  1. 打开 aitoearn.cn(中国用户)或 aitoearn.ai(国际用户),注册并登录
  2. 点击左侧菜单 设置
  3. 在 API Key 中点击创建,复制生成的 Key
获取 API Key

② 在龙虾 OpenClaw 中使用

前置条件:已 获取 API Key

请在服务器终端输入以下命令!请在服务器终端输入以下命令!请在服务器终端输入以下命令!

安装插件

npx -y @aitoearn/openclaw-plugin-cli

首次运行后会先让你选择环境并输入 API Key。请确保环境与 Key 匹配:

环境和 Key 不匹配会导致 401。

安装完成后,你就可以在 OpenClaw 中直接接收并执行 AiToEarn 的赚钱任务:

在 OpenClaw 中执行 AiToEarn 赚钱任务

③ 在 Claude / Cursor / 其他 AI 助手中使用

前置条件:已 获取 API Key

AiToEarn 支持所有兼容 MCP 协议的 AI 助手。以下是常见工具的配置方式:

请根据 API Key 来源选择地址,环境和 Key 不匹配会导致 401:

环境 MCP 地址 SSE 地址
中国版 https://aitoearn.cn/api/unified/mcp https://aitoearn.cn/api/unified/sse
国际版 https://aitoearn.ai/api/unified/mcp https://aitoearn.ai/api/unified/sse
Claude Desktop

找到并编辑 claude_desktop_config.json,添加:

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

在 Cursor 的 MCP 设置中添加:

MCP 地址:https://aitoearn.ai/api/unified/mcp
认证 Header:x-api-key: 你的API-Key
其他 AI 助手(通用配置)

任何支持 MCP 协议的工具,只需要两个信息:

配置项 值
MCP 地址 https://aitoearn.ai/api/unified/mcp
认证 Header x-api-key: 你的API-Key

也支持 SSE 长连接方式:https://aitoearn.ai/api/unified/sse

💡 如果你是自部署用户,将 aitoearn.ai 替换为你自己的地址(如 localhost:8080)。


④ Docker 一键部署

前置条件:已安装 Docker

适合想把 AiToEarn 部署在自己服务器上的团队。3 条命令搞定,无需手动安装数据库:

git clone https://github.com/yikart/AiToEarn.git
cd AiToEarn
docker compose up -d

启动后打开 http://localhost:8080 即可使用。

配置 Relay(强烈推荐)

为什么要配 Relay? 发布内容需要登录社交媒体账号(抖音、小红书、TikTok 等),而这些平台的 OAuth 登录需要开发者凭据。配置 Relay 后,你可以直接借用官方 aitoearn.ai 的凭据完成授权,不需要自己去各平台申请开发者账号。

在浏览器打开部署后的界面,进入 配置管理,按需分别配置:

OpenAI、Gemini、Anthropic 等模型服务商也可以在 AI → 模型服务商 中填写平台提供的 API Key 和 API 地址。

API Key 获取方式见 上方说明。中国版 Key 搭配 https://aitoearn.cn/api,国际版 Key 搭配 https://aitoearn.ai/api;环境和 Key 不匹配会导致 401。

保存后点击 保存并重启,让对应服务重新加载配置。

📖 完整部署指南(生产环境配置、AI 服务、OAuth、存储等)请参阅 DOCKER_DEPLOYMENT_CN.md。


⑤ 源码开发

🧪 手动运行后端和前端(开发模式)

此模式主要用于本地开发和调试。 您仍然可以使用 Docker 运行 MongoDB/Redis,或在配置文件中指向您自己的服务。

1. 启动后端服务

cd project/aitoearn-backend
pnpm install
# 复制配置文件用于本地开发
cp apps/aitoearn-ai/config/config.yaml apps/aitoearn-ai/config/local.config.yaml
cp apps/aitoearn-server/config/config.yaml apps/aitoearn-server/config/local.config.yaml
pnpm nx serve aitoearn-ai
# 在另一个终端
pnpm nx serve aitoearn-server

2. 启动前端 aitoearn-web

pnpm install
pnpm run dev
🖥️ 启动 Electron 桌面项目
# 克隆仓库
git clone https://github.com/yikart/AttAiToEarn.git

# 进入目录
cd AttAiToEarn

# 安装依赖
npm install

# 编译 sqlite(better-sqlite3 需要 node-gyp 和本地 Python)
npm run rebuild

# 启动开发
npm run dev

Electron 项目为 AiToEarn 提供桌面客户端。

贡献指南

请查看 贡献指南 开始参与。

联系

如果你在使用过程中遇到困难、使用问题或异常情况,优先通过 GitHub Issues 提交反馈,方便我们统一跟进和处理。

微信二维码

推荐

AiToEarn (yikart/AiToEarn)

social-media
Searching Database…

26.6K ·GitHub
What is this?AiToEarn is an AI content marketing agent for creators, brands and one-person companies: AI agents automate creating, publishing, engaging and monetizing content across 10+ major social platforms.
Is this a website, a desktop app, or something I run myself?All of these: a hosted website (aitoearn.cn / aitoearn.ai), an Electron desktop client, an OpenClaw plugin, an MCP server for AI assistants like Claude and Cursor, or a self-hosted Docker deployment.
What's the fastest way to start using it?Open aitoearn.cn (China) or aitoearn.ai (international) and sign up — no deployment needed. The OpenClaw, MCP and Docker options additionally require an API key created in the site's Settings.
Is there a catch with API keys or regions?Yes: keys from aitoearn.cn (China) and aitoearn.ai (international) are not interchangeable, so pairing a key with the wrong environment returns a 401 error.
Which social platforms does it cover?Douyin, Kuaishou, Bilibili, Xiaohongshu (Rednote), WeChat Channels, WeChat Official Account, TikTok, YouTube, Facebook, Instagram, Threads, X (Twitter), Pinterest and LinkedIn.
Can I self-host it instead of using the hosted site?Yes — a one-click Docker deployment in three commands with no manual database install (MongoDB/Redis run via Docker); afterwards you configure Server and AI Relays in the web UI.
Do I need developer accounts on every social platform to publish?No. After deploying, configure the Server Relay in the config management UI and you can borrow the official aitoearn.ai OAuth credentials for platform authorization instead of applying to each platform yourself; an AI Relay similarly connects you to its AI models.
How does the earning part actually work?Creators sell content to complete merchants' promotion tasks, with results-based settlement in three modes: CPS (cost per sale), CPE (cost per engagement) and CPM (cost per thousand views).
Can it handle comments and engagement too?Yes, via its browser extension: automated likes, favorites and follows, AI-generated replies tailored to each comment, detection of buying-intent comments like 'where to buy', and real-time brand monitoring.
What can the content creation agent produce?Describe what you need and it delivers finished content: videos via models like Grok, Veo and Seedance with translation and editing built in, image posts via models such as Nano Banana, plus parallel batch generation for matrix accounts.
Creator
yikart
Size
366.5 MB
Stars
26.6K
Age
1y
Commits · 90 Days