npm @eat-pray-ai/yutustdioApache-2.0updated 7d ago
yutu is a CLI, MCP server, and AI agent for YouTube that automates your entire YouTube workflow — from uploading and optimizing videos to managing comments, playlists, and channel branding — so you can get more views, higher click-through rates, and stronger audience engagement with less manual effort. 中文文档
What can you do with yutu?
yutu
yutu is a CLI, MCP server, and AI agent for YouTube that automates your entire YouTube workflow — from uploading and optimizing videos to managing comments, playlists, and channel branding — so you can get more views, higher click-through rates, and stronger audience engagement with less manual effort. 中文文档
Table of Contents
Prerequisites
An account on Google Cloud Platform is required. Set up the following:
-
Create a GCP Project and enable these APIs under
APIs & Services -> Enable APIs and services:- YouTube Data API v3 (Required)
- YouTube Analytics API (Optional)
- YouTube Reporting API (Optional)
-
Create OAuth credentials:
- Go to
APIs & Services -> OAuth consent screen, create a consent screen with yourself as a test user - Go to
Credentials -> Create Credentials -> OAuth Client ID, selectDesktop app - Download the credential file and save it as
client_secret.json, it should look like
{ "installed": { "client_id": "11181119.apps.googleusercontent.com", "project_id": "yutu-11181119", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_secret": "XXXXXXXXXXXXXXXX", "redirect_uris": [ "http://localhost" ] } } - Go to
-
Authenticate:
yutu auth --credential client_secret.jsonA browser window will open for you to grant YouTube access. After granting permission, a token is saved to
youtube.token.json.{ "access_token": "ya29.XXXXXXXXX", "token_type": "Bearer", "refresh_token": "1//XXXXXXXXXX", "expiry": "2024-05-26T18:49:56.1911165+08:00", "expires_in": 3599 }
By default, yutu will read client_secret.json and youtube.token.json from the current directory, --credential/-c and --cacheToken/-t flags are available only in auth subcommand. To modify the default path in all subcommands, set these environment variables.
Global Environment Variables
| Variable | Description | Default |
|---|---|---|
YUTU_CREDENTIAL |
Path, Base64, or JSON of OAuth client secret | client_secret.json |
YUTU_CACHE_TOKEN |
Path, Base64, or JSON of cached OAuth token | youtube.token.json |
YUTU_ROOT |
Root directory for file resolution | Current working directory |
YUTU_LOG_LEVEL |
Log level: DEBUG, INFO, WARN, ERROR |
INFO |
Installation
If you're using an AI agent, copy and paste the following prompt to finish the installation:
Install and configure yutu by following https://raw.githubusercontent.com/eat-pray-ai/yutu/refs/heads/main/internal/tools/skillgen/setup.md
You can download yutu from releases page directly, or use the following methods as you prefer.
There are two actions available for yutu, one is for general purpose and the other is for uploading video to YouTube. Refer to youtube-action and youtube-uploader for more information.
❯ npm i -g @eat-pray-ai/yutu
❯ docker pull ghcr.io/eat-pray-ai/yutu:latest
❯ docker run --rm ghcr.io/eat-pray-ai/yutu:latest
# make sure client_secret.json is in the current directory
❯ docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/app -p 8216:8216 ghcr.io/eat-pray-ai/yutu:latest
❯ go install github.com/eat-pray-ai/yutu@latest
❯ curl -sSfL https://raw.githubusercontent.com/eat-pray-ai/yutu/main/scripts/install.sh | bash
Install yutu using Homebrew🍺(recommended), or run the shell script.
❯ brew install yutu
# or
❯ curl -sSfL https://raw.githubusercontent.com/eat-pray-ai/yutu/main/scripts/install.sh | bash
❯ winget install yutu
Verify the integrity and provenance of yutu using its associated cryptographically signed attestations.
# Docker
❯ gh attestation verify oci://ghcr.io/eat-pray-ai/yutu:latest --repo eat-pray-ai/yutu
# Linux and macOS(if installed using shell script)
❯ gh attestation verify $(which yutu) --repo eat-pray-ai/yutu
# Windows
❯ gh attestation verify $(where.exe yutu.exe) --repo eat-pray-ai/yutu
Agent
yutu provides an agent mode (Miffy) to automate YouTube workflows. The agent can retrieve, create, update, and delete YouTube content, with built-in YouTube growth strategy and SEO expertise.
Currently, the agent mode is under active development, only supports Google's Gemini models.
# console mode (default)
❯ yutu agent --api-key "YOUR_GEMINI_API_KEY"
# specify a different model
❯ yutu agent --model "google:gemini-3.7-flash" --api-key "YOUR_GEMINI_API_KEY"
# web mode with sub-launchers
❯ yutu agent --args "web api a2a webui" --api-key "YOUR_GEMINI_API_KEY"
# show available launcher args
❯ yutu agent --args ""
Agent Flags
| Flag | Description | Default |
|---|---|---|
-a, --args |
Launcher arguments as a single string | console |
-m, --model |
Model in provider:modelName format |
google:gemini-3.7-flash |
--api-key |
API key for the model provider | |
-i, --instruction |
Override the built-in agent instruction | INSTRUCTION.md |
The GOOGLE_GEMINI_BASE_URL environment variable can optionally be set to use a custom Gemini API base URL.
MCP Server
Before using yutu as an MCP server, make sure yutu is installed(see Installation section), and you have a valid client_secret.json and youtube.token.json files(refer to Prerequisites section).
You can add yutu as an MCP server in VS Code or Cursor by clicking corresponding badge, or use the CLI commands below for your preferred tool.
# Stdio mode
❯ claude mcp add -e YUTU_CREDENTIAL=/absolute/path/to/client_secret.json \
-e YUTU_CACHE_TOKEN=/absolute/path/to/youtube.token.json \
yutu -- yutu mcp
# HTTP mode (start the server first: yutu mcp --mode http --auth)
❯ claude mcp add --transport http \
--client-id YOUR_CLIENT_ID.apps.googleusercontent.com \
--client-secret \
yutu http://localhost:8216/mcp
# Stdio mode
❯ codex mcp add --env YUTU_CREDENTIAL=/absolute/path/to/client_secret.json \
--env YUTU_CACHE_TOKEN=/absolute/path/to/youtube.token.json \
yutu -- yutu mcp
# HTTP mode (start the server first: yutu mcp --mode http --auth)
❯ codex mcp add --url http://localhost:8216/mcp \
--oauth-client-id YOUR_CLIENT_ID.apps.googleusercontent.com \
yutu
Add the following to your MCP settings. Remember to replace the values of YUTU_CREDENTIAL and YUTU_CACHE_TOKEN with correct paths on your local machine.
{
"yutu": {
"type": "stdio",
"command": "yutu",
"args": [
"mcp"
],
"env": {
"YUTU_CREDENTIAL": "/absolute/path/to/client_secret.json",
"YUTU_CACHE_TOKEN": "/absolute/path/to/youtube.token.json"
}
}
}
Skills
yutu provides a unified skill that extends AI agents with YouTube domain knowledge, common workflows, and SEO best practices — covering videos, playlists, comments, channels, captions, subscriptions, and more.
❯ npx skills add https://github.com/eat-pray-ai/yutu/tree/main/skills/youtube
See skills/youtube/SKILL.md for the full list of supported operations.
Usage
❯ yutu
yutu is a CLI, MCP server, and AI agent for YouTube that can automate almost all YouTube workflows.
Environment variables:
YUTU_CREDENTIAL Path/Base64/JSON of OAuth client secret (default: client_secret.json)
YUTU_CACHE_TOKEN Path/Base64/JSON of cached OAuth token (default: youtube.token.json)
YUTU_ROOT Root directory for file resolution (default: current working directory)
YUTU_LOG_LEVEL Log level: DEBUG, INFO, WARN, ERROR (default: INFO)
Usage:
yutu [flags]
yutu [command]
Available Commands:
abuseReport Manage YouTube abuse reports
activity Manage activities on YouTube
agent Start an agent to automate YouTube workflows
auth Authenticate with YouTube APIs
caption Manage YouTube video captions
channel Manage YouTube channels
channelBanner Manage YouTube channel banners
channelSection Manage YouTube channel sections
comment Manage YouTube comments
commentThread Manage YouTube comment threads
completion Generate the autocompletion script for the specified shell
help Help about any command
i18nLanguage Manage YouTube i18n languages
i18nRegion Manage YouTube i18n regions
liveBroadcast Manage YouTube live broadcasts
liveChatBan Manage YouTube live chat bans
liveChatMessage Manage YouTube live chat messages
liveChatModerator Manage YouTube live chat moderators
liveStream Manage YouTube live streams
mcp Start MCP server
member Manage YouTube channel members
membershipsLevel Manage YouTube memberships levels
playlist Manage YouTube playlists
playlistImage Manage YouTube playlist images
playlistItem Manage YouTube playlist items
search Manage YouTube search
subscription Manage YouTube subscriptions
superChatEvent Manage YouTube Super Chat events
thirdPartyLink Manage YouTube third-party links
thumbnail Manage YouTube video thumbnails
version Show the version of yutu
video Manage YouTube videos
videoAbuseReportReason Manage YouTube video abuse report reasons
videoCategory Manage YouTube video categories
watermark Manage YouTube watermarks
Flags:
-h, --help help for yutu
Use "yutu [command] --help" for more information about a command.
Features
Please refer to FEATURES.md for more information.
Contributing
Please refer to CONTRIBUTING.md for more information.
Install
Add yutu to your client. Pick the one you use.
claude mcp add yutu -- npx -y @eat-pray-ai/yutucodex mcp add yutu -- npx -y @eat-pray-ai/yutuamp mcp add yutu -- npx -y @eat-pray-ai/yutu{
"mcpServers": {
"yutu": {
"command": "npx",
"args": [
"-y",
"@eat-pray-ai/yutu"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"yutu": {
"command": "npx",
"args": [
"-y",
"@eat-pray-ai/yutu"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"yutu","command":"npx","args":["-y","@eat-pray-ai/yutu"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"yutu": {
"command": "npx",
"args": [
"-y",
"@eat-pray-ai/yutu"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"yutu": {
"command": "npx",
"args": [
"-y",
"@eat-pray-ai/yutu"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"yutu": {
"command": "npx",
"args": [
"-y",
"@eat-pray-ai/yutu"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"yutu": {
"type": "local",
"command": "npx",
"args": [
"-y",
"@eat-pray-ai/yutu"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"yutu": {
"command": {
"path": "npx",
"args": [
"-y",
"@eat-pray-ai/yutu"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y @eat-pray-ai/yutuRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance25/25
- Trust16/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 0 days ago
- Has a release history
- Repository is not archived
- Licensed Apache-2.0
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Version history
| Versions | Published |
|---|---|
| 0.10.11-dev3Latest | Aug 20, 2026 |
| 0.10.11-dev2 | Aug 1, 2026 |
| 0.10.11-dev1 | Jul 26, 2026 |
| 0.10.10 | Jul 25, 2026 |
| 0.10.10-dev1 | Jun 27, 2026 |
| 0.10.9 | Jun 21, 2026 |
| 0.10.9-dev1 | May 28, 2026 |
| 0.10.8 | May 3, 2026 |
| v0.10.8-dev1 | Apr 18, 2026 |
| v0.10.7 | Apr 7, 2026 |
| v0.10.7-dev1 | Mar 18, 2026 |
| v0.10.7-dev | Mar 13, 2026 |
| v0.10.6 | Mar 3, 2026 |
| v0.10.6-dev | Feb 23, 2026 |
| v0.10.5 | Feb 23, 2026 |
| v0.10.5-dev | Jan 21, 2026 |
| v0.10.4-dev2 | Oct 24, 2025 |
| v0.10.4-dev1 | Oct 21, 2025 |
| v0.10.4-dev | Oct 19, 2025 |
