social-publisher
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSocial Publisher (SocialClaw)
社交媒体发布器(SocialClaw)
Connects Claude Code to SocialClaw for agent-driven social media publishing across 13 platforms through a single workspace API key.
将Claude Code与SocialClaw连接,通过单一工作区API密钥实现由Agent驱动的跨13个平台的社交媒体发布。
When to Activate
激活场景
- publish content to X, LinkedIn, Instagram, TikTok, or other platforms
- schedule a post campaign across multiple platforms at once
- upload media for use in social posts
- validate a post schedule before going live
- monitor publishing run status and delivery analytics
- 向X、LinkedIn、Instagram、TikTok或其他平台发布内容
- 一次性在多个平台调度帖子营销活动
- 上传用于社交媒体帖子的媒体素材
- 上线前验证帖子调度计划
- 监控发布执行状态与投放分析数据
Setup
配置步骤
bash
undefinedbash
undefinedRequired: workspace API key from https://getsocialclaw.com/dashboard
export SC_API_KEY="<workspace-key>"
export SC_API_KEY="<workspace-key>"
Verify access
验证访问权限
curl -sS -H "Authorization: Bearer $SC_API_KEY" https://getsocialclaw.com/v1/keys/validate
curl -sS -H "Authorization: Bearer $SC_API_KEY" https://getsocialclaw.com/v1/keys/validate
Install CLI (optional but recommended)
安装CLI(可选但推荐)
npm install -g socialclaw@0.1.12
socialclaw login --api-key <workspace-key>
undefinednpm install -g socialclaw@0.1.12
socialclaw login --api-key <workspace-key>
undefinedCore Workflow
核心工作流程
1. List connected accounts
1. 列出已连接的账号
bash
socialclaw accounts list --jsonIf not connected:
bash
socialclaw accounts connect --provider x --open
socialclaw accounts connect --provider linkedin --openbash
socialclaw accounts list --json若未连接账号:
bash
socialclaw accounts connect --provider x --open
socialclaw accounts connect --provider linkedin --open2. Upload media (optional)
2. 上传媒体素材(可选)
bash
socialclaw assets upload --file ./image.png --jsonbash
socialclaw assets upload --file ./image.png --json→ { "asset_id": "..." }
→ { "asset_id": "..." }
undefinedundefined3. Build schedule.json
3. 构建schedule.json文件
json
{
"posts": [
{
"provider": "x",
"account_id": "<account-id>",
"text": "Post text here",
"scheduled_at": "2026-06-01T10:00:00Z"
}
]
}json
{
"posts": [
{
"provider": "x",
"account_id": "<account-id>",
"text": "帖子内容",
"scheduled_at": "2026-06-01T10:00:00Z"
}
]
}4. Validate before publishing
4. 发布前验证
bash
socialclaw validate -f schedule.json --jsonbash
socialclaw validate -f schedule.json --json5. Publish
5. 执行发布
bash
socialclaw apply -f schedule.json --jsonbash
socialclaw apply -f schedule.json --json→ { "run_id": "..." }
→ { "run_id": "..." }
undefinedundefined6. Monitor
6. 监控状态
bash
socialclaw status --run-id <run-id> --json
socialclaw posts list --jsonbash
socialclaw status --run-id <run-id> --json
socialclaw posts list --jsonSupported Providers
支持的平台
| Provider | Key |
|---|---|
| X (Twitter) | |
| LinkedIn profile | |
| LinkedIn page | |
| Instagram Business | |
| Instagram standalone | |
| Facebook Page | |
| TikTok | |
| YouTube | |
| |
| WordPress | |
| Discord | |
| Telegram | |
|
| 平台 | 标识 |
|---|---|
| X (Twitter) | |
| LinkedIn个人主页 | |
| LinkedIn企业主页 | |
| Instagram商业账号 | |
| Instagram独立账号 | |
| Facebook主页 | |
| TikTok | |
| YouTube | |
| |
| WordPress | |
| Discord | |
| Telegram | |
|
Security
安全说明
- Outbound requests go to only
getsocialclaw.com - Provider OAuth is in the SocialClaw dashboard — no per-provider secrets exposed to the agent
- is a workspace-scoped key
SC_API_KEY
- 仅向发起出站请求
getsocialclaw.com - 平台OAuth认证在SocialClaw控制台完成——不会向Agent暴露各平台的密钥
- 是工作区级别的密钥
SC_API_KEY
Related Skills
相关技能
- — direct X/Twitter API operations
x-api - — network analysis for outreach targeting
social-graph-ranker
- —— 直接调用X/Twitter API操作
x-api - —— 用于触达目标用户的网络分析
social-graph-ranker
Source
资源来源
- npm:
npm install -g socialclaw@0.1.12 - Dashboard: SocialClaw dashboard
- npm:
npm install -g socialclaw@0.1.12 - 控制台:SocialClaw控制台