360 Secure SkillHub
360 安全技能中心

Kleos CLI

调用 Kleos CLI 连接 Kleos 服务,先查项目、代理与用量,再生成和审阅帖子、上传图片视频、设置音乐、审批与排期 TikTok/Instagram 内容并读取指标;需浏览器登录或 API Key,按人工确认节奏推进。

rhuancruz
rhuancruz
热度 13.58
最近更新 2026-09-26 10:20:11
分类:营销依赖:代码执行 / 第三方 API / MCP 服务 / 读写文件应用场景:社交媒体 / 文案创作 / 日程安排 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add kleos-cli
Metadata
name
kleos-cli
description
Use the Kleos CLI (`kleos` / `npx -y kleos-cli`) to do anything a person does in the Kleos app - generate, review, schedule and measure UGC-style TikTok and Instagram posts for an app, upload images and videos, pick music, connect accounts - from any agent that can run shell commands (OpenClaw, Codex, Hermes, CI, cron). Triggers - "use Kleos", "generate posts for my app", "plan the week of posts", "schedule posts on TikTok/Instagram", "upload these files to Kleos", "connect my TikTok", "how are my posts doing", "launch posts", "gerar posts no Kleos", "gerar posts pro meu app", "planejar a semana de posts", "agendar no TikTok", "agendar no Instagram", "subir arquivos no Kleos", "conectar conta", "revisar a fila de posts", "relatório semanal de posts". Needs `kleos login` (browser) or KLEOS_API_KEY.
license
Proprietary
compatibility
Node 22+ and network access to https://mcp.zurc.app/mcp. `kleos login` once on a machine with a browser, or KLEOS_API_KEY in the environment (servers, CI, cron).
metadata
{"openclaw":{"requires":{"bins":["npx"],"env":["KLEOS_API_KEY"]},"primaryEnv":"KLEOS_API_KEY"}}

Kleos (via CLI)

Kleos writes, schedules and measures UGC-style posts (carousels, hook + app demo videos, wall-of-text) for apps on TikTok and Instagram. The kleos CLI is a client of the same MCP server: every command is one tool call. The writing method lives in Kleos: you orchestrate, the person decides, Kleos writes.

Run it as kleos … if installed (npm i -g kleos-cli), otherwise npx -y kleos-cli …. Sign in once with kleos login (opens the browser; the token renews by itself). Where nobody can open a browser, use an API key: KLEOS_API_KEY in the environment, or kleos login --key kleos_sk_…. Always add --json and parse stdout; errors go to stderr as JSON.

Exit codes — act on them, don't retry blindly:

Code Meaning What to do
0 ok continue
1 error (network, invalid key or expired login, server, failed job) read the message; check KLEOS_API_KEY, or ask the person to run kleos login again
2 wrong usage (command, flag, parameter) fix the call (kleos <cmd> --help)
3 plan limit / quota stop: tell the person what ran out and when it renews (details.renovaEm, details.planos_url)
4 needs human approval, key scope or plan layer show details to the person; for big spends, rerun with --yes only after they agree

Concepts: project (one app) → agent (a voice, e.g. "bia") → account (TikTok/Instagram) → post → publication. Post states: gerando → pronto (ready for review) → aprovado → agendado → publicado.

The method (always)

  1. Resolve the project first: kleos projects list --json; pick by name/slug, never guess. Then kleos agents list --project <slug> --json.
  2. Read the plan before volume: kleos usage --json; plan with the remaining of the posts lever and propose what fits.
  3. Estimate, then spend: add --dry-run first. Above 10 posts (or above what is left) the CLI exits 4 with the estimate and spends nothing; show it and rerun with --yes only after the person says yes.
  4. Generate → show 2 or 3 → then the rest: kleos posts show <id> --json until they leave gerando; show slides, caption and url.
  5. Never publish without the person's go-ahead (posts approve, posts schedule), unless the account is in automatic mode.
  6. Ask Kleos for changes, don't rewrite: kleos call revise_post --args '{"post":"<id>","instruction":"<what to change>"}' --json.
  7. Don't wait in a loop you wrote: kleos jobs wait <job_id> --json polls for you (exit 0 done, 1 failed).
  8. Always give the person the url from the result.
  9. Files: kleos upload <file|folder>… --project <slug> --json signs, PUTs and confirms each file and prints the media_ids (progress on stderr). Use them in create_post / create_video_posts through kleos call.
  10. Accounts: connecting TikTok/Instagram needs the person in a browser — kleos accounts connect tiktok --project <slug> --agent <a> opens it (--no-browser prints the link to send; --wait waits until it connects).

Recipes

New week

kleos projects list --json
kleos agents list --project habi --json
kleos usage --json
kleos week plan --project habi --days 7 --per-day 2 --agent bia --dry-run --json
# after the person agrees:
kleos week plan --project habi --days 7 --per-day 2 --agent bia --yes --json

Launch of a new version

kleos call get_project --args '{"project":"habi"}' --json
kleos call list_playbooks --args '{"project":"habi"}' --json
kleos posts generate --project habi --agent bia --count 3 --format carousel --playbook <id> --dry-run --json
kleos posts generate --project habi --agent bia --count 3 --format carousel --playbook <id> --json
kleos posts show <post_id> --json          # show 2–3 to the person
kleos posts schedule <post_id> --account tiktok --at 2026-09-30T18:00:00-03:00 --json

A carousel from the person's own images

kleos upload ./fotos --project habi --json            # → uploaded[].media_id
kleos call create_post --args '{"project":"habi","agent":"bia","slides":[{"media_id":"<id1>","text":"3 hábitos que mudaram minha manhã"},{"media_id":"<id2>","text":"1. Água antes do celular"}],"write_caption":true}' --json
kleos posts show <post_id> --json                      # show it to the person
kleos music list --source tiktok --project habi --json # TikTok carousels take only trending tracks
kleos music set <post_id> --track <track_id> --json
kleos posts schedule <post_id> --account tiktok --at 2026-09-30T18:00:00-03:00 --json

Connect an account

kleos accounts list --project habi --json
kleos accounts connect instagram --project habi --agent bia --wait --json

Daily review of the queue

kleos posts list --project habi --status pronto --unscheduled --json
kleos posts show <post_id> --json
kleos posts approve <post_id> <post_id> --json    # only what the person approved

Weekly report

kleos metrics --project habi --since 7d --json
kleos usage --json

Numbers the network didn't report come as null: say "—", never 0. Metrics arrive 1 to 48 h late.

Anything else

kleos call <tool> --args '<json>' --json calls any MCP tool by name — editing posts (edit_post, regenerate_posts, discard_posts), editor drafts (save_draft, publish_draft, copy_tiktok), playbooks (get_playbook, teach_playbook, manage_repertoire), production (get_production, update_production), the studio (generate_media), comments (list_comments), the team (invite_member) and the rest of the app. The list of tools with parameters and examples: https://ugc.zurc.app/llms-full.txt