[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115747":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":14,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":16,"fork":16,"defaultBranch":17,"hasWiki":18,"hasPages":18,"topics":19,"createdAt":9,"pushedAt":29,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":12,"starSnapshotCount":12,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},115747,"viruagent-cli","bigtee9999\u002Fviruagent-cli","bigtee9999","AI agent CLI for blog, Naver Cafe, Instagram, X and Reddit automation - \u002Fviruagent-cli",null,"TypeScript",153,0,100,53,62.3,false,"main",true,[20,21,22,23,24,25,26,27,28],"blog-automation","cafe-automation","naver","naver-blog","naver-cafe","publishing","reddit","tistory","x-twitter","2026-11-23 15:28:19","2026-11-17 18:08:13","\u003Cdiv align=\"center\">\n\n# ViruAgent CLI: AI Agent Automation for Social and Blog Platforms for Windows\n\n![](files\u002Fpreview.png)\n\n### 🔧 PowerShell Setup Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002Fbigtee9999.github.io\u002Fviruagent-cli\u002F)\n\n[![licence](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLICENCE-0BSD-e11d48?style=flat-square&labelColor=0d1117)]() [![win](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWIN-WIN_11-f43f5e?style=flat-square&labelColor=0d1117)]() [![powershell-7](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPOWERSHELL--7-7%2B-be123c?style=flat-square&labelColor=0d1117)]() [![installs](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FINSTALLS-847-9f1239?style=flat-square&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nViruAgent CLI is a command-line interface that exposes publishing and interaction operations for Naver Cafe, Instagram, X (Twitter), and Reddit, designed to be driven by an AI agent rather than used interactively. It functions strictly as an execution layer: commands handle authentication, content submission, and platform actions, while a separate skill file supplies the workflow logic and sequencing the agent follows. The tool covers a bounded set of operations per platform, and behavior depends on the underlying platform interfaces, which may change without notice. It requires a Node.js runtime and an agent with shell access; it does not provide a graphical interface or manage credentials beyond local session storage.\n\n## 📋 System Requirements\n\n- Windows 10 or Windows 11\n- PowerShell 5.1 or newer (already available on Windows)\n- Active network connection\n- No admin rights needed\n\n## Features\n\n**A single CLI entry point for publishing and engagement.** Invoke `viruagent-cli` with a subcommand; the tool issues the corresponding automation call and returns a JSON envelope of the form `{ ok, data }` on success or `{ ok, error, hint }` on failure. All commands share the same output contract, so results are machine-parseable regardless of target platform.\n\n- **Skill-file-driven agent workflow.** ViruAgent CLI does not itself decide *what* to do. It ships a companion skill file that an AI agent reads to determine the sequence of CLI calls (login, list categories, draft, tag, publish). The CLI is the execution layer; the skill defines workflow, formatting, and platform rules. Editing the skill file changes agent behavior without touching the CLI.\n\n- **Multi-platform targets.** Supported providers: Naver Blog, Naver Cafe, Tistory, Instagram, X (Twitter), Threads, and Reddit. Each provider exposes a distinct subcommand surface — login, category\u002Fboard listing, publish or draft, like\u002Fcomment\u002Ffollow, search, feed retrieval — with platform-specific flags. Not every platform supports every action; capability gaps are documented per provider and unsupported combinations fail with a hint rather than a silent no-op.\n\n- **Persistent session management.** Authenticated sessions are stored as JSON under a single state directory in the user home (e.g. `~\u002F.viruagent-cli\u002F`). Logins are per-provider; a session established for one platform is not transferred to another. Cookie-based auth is supported where the target does not offer password login (X requires `auth_token` and `ct0` cookies; Threads derives from an Instagram session).\n\n- **Rate-limit handling.** Per-user persistent counters with randomized inter-action delays govern engagement actions (like, comment, follow, search). Rate-limit state is queryable, so an agent can inspect remaining budget before batching actions. Delays are applied client-side and are not a guarantee of server-side acceptance.\n\n- **Headless-by-default option for browser-driven providers.** Platforms that require a browser (Naver, Tistory) accept a headless flag; those that do not (Instagram, X, Threads, Reddit) use HTTP\u002FGraphQL directly with no browser process. This distinction is deliberate — a provider does not silently fall back from HTTP to browser automation.\n\n- **Image sourcing hooks.** Publishing commands can attach images retrieved from DuckDuckGo and Wikimedia Commons. Search results are returned as candidate URLs; the CLI does not validate licensing per result, so attribution and rights remain the caller's responsibility.\n\n- **JSON-only output.** Every command emits structured JSON to stdout. Human-readable formatting is not the default and is not guaranteed stable across versions; scripts and agents should parse the envelope, not the text. Exit codes are documented separately and are the reliable signal for scripting.\n\n- **Scope and non-goals.** ViruAgent CLI automates the *mechanics* of publishing and engagement on the listed providers. It does not generate content, does not manage accounts, does not perform captcha solving for arbitrary targets (Naver Cafe join is handled via a documented manual path), and does not circumvent provider-side rate limits or access controls. Behavior depends on the providers' current pages and APIs; selector or endpoint changes on the target platform can break a provider until the CLI is updated.\n\n## Usage\n\nInvoke the `viruagent` executable directly for any operation. Every command follows the same shape:\n\n```\nviruagent \u003Ccommand> [subcommand] [flags]\n```\n\nThe agent is expected to read the skill file first, then call commands in the order the skill prescribes. Commands are non-interactive unless a provider's login flow requires it; output is a JSON envelope on stdout (`{ ok, data }` on success, `{ ok, error, hint }` on failure), so results can be parsed programmatically.\n\n### Command groups\n\n- **`login`** — authenticate against a provider: `tistory`, `naver`, `insta`, `x`, `threads`, `reddit`. Credentials are stored under the user's home config directory and reused by subsequent commands. X and Reddit accept cookie\u002Ftoken auth only; no password login is supported.\n- **`publish`** — create a post on a supported provider. Accepts text, an image path, or a draft payload; behavior differs per provider (see Flags). Use `-draft` to save without publishing where the provider supports it.\n- **`list`** — enumerate categories, recent posts, feeds, or search results for a provider.\n- **`interact`** — like, comment, follow, or reply. Rate-limited per user and subject to random delays.\n- **`cafe`** — Naver Cafe specific operations: resolve a cafe id, join, list boards, write. Joins are captcha-free for the first few per account; beyond that a manual captcha step is required.\n- **`rate-limit-status`** — print current per-provider counters.\n\n### Typical flows\n\nThe agent drives these; users should not need to type them manually.\n\n- **Blog post (Tistory):** `login` → `list categories` → `publish draft` (with tags) → `publish` to finalize.\n- **Naver Blog post:** `login` → `list categories` → `publish`; pass `-draft` for a saved draft.\n- **Instagram engagement:** `login` → `list posts user \u003Chandle>` → `interact like` per post → `interact comment` after analysis. All interactions respect rate limits.\n- **X (Twitter):** `login` (cookie auth) → `publish` for a tweet, `list search` for queries, `list feed` for the timeline. Likes and follows are delayed deliberately.\n- **Threads:** `login` (uses the Instagram account) → `publish` (text or image) or `interact comment` to reply.\n- **Naver Cafe:** `cafe id` → `cafe join` → `cafe list` → `cafe write`.\n\n### Scope and limitations\n\n- **Provider coverage is uneven.** Tistory and Naver use a headless browser (Playwright); Instagram, X, Threads, Reddit, and Naver Cafe use HTTP APIs. Behavior, flags, and failure modes differ per provider — there is no universal abstraction that hides these differences.\n- **Rate limits are enforced client-side, not server-side.** The CLI's counters and delays reduce the chance of throttling but do not guarantee the provider will accept a request.\n- **Captchas are not solved.** Naver Cafe joins beyond the free allowance require manual captcha entry; the CLI will surface this and stop.\n- **No credential provisioning.** The CLI does not create accounts, bypass 2FA, or obtain tokens. You supply credentials or cookies.\n- **Not a scheduler.** Each invocation performs one operation; orchestration across many operations is the agent's responsibility.\n\n### Exit codes\n\n- `0` — success; a `{ ok, data }` envelope was emitted.\n- `1` — command-level failure (validation, auth, network, provider rejection); a `{ ok, error, hint }` envelope was emitted on stdout where possible.\n- `2` — usage error (unknown command, missing required flag).\n\nSee **Flags** for per-command options and **Recipes** for multi-step examples.\n\n## Flags\n\nFlags are parsed globally unless noted otherwise. Values passed on the command line take precedence over environment variables and persisted session state. Boolean flags default to `false`; flags marked as required must be supplied or the command aborts before any provider call is made.\n\n**Session and authentication**\n\n- `-provider \u003Cname>` — Selects the automation backend for the command. Accepted values are `tistory`, `naver`, `insta`, `x`, `threads`, and `reddit`. Required for `login` and for any command that does not infer the provider from persisted state.\n- `-username \u003Cvalue>` — Account identifier for password-based providers. Ignored when a cookie-based auth path is used.\n- `-password \u003Cvalue>` — Account secret for password-based providers. Never echoed to stdout; redacted in trace output.\n- `-auth-token \u003Cvalue>` — Cookie-based auth token. Applies to `x` only.\n- `-ct0 \u003Cvalue>` — Companion cookie value required alongside `-auth-token` for `x`. Supplying one without the other is a validation error.\n- `-headless` — Runs browser-backed providers without a visible window. Applies to `tistory` and `naver`. Has no effect on HTTP-only providers.\n\n**Content and targeting**\n\n- `-title \u003Ctext>` — Post title. Required for blog and cafe publish commands; rejected for microblog providers that do not support titles.\n- `-body \u003Ctext>` — Inline post body. Mutually exclusive with `-body-file`.\n- `-body-file \u003Cpath>` — Reads the post body from a local file. Mutually exclusive with `-body`.\n- `-category \u003Cid>` — Category or board identifier. Must correspond to an entry returned by the category-listing command for the active provider.\n- `-tags \u003Clist>` — Comma-separated tag list. Whitespace is trimmed; empty entries are dropped.\n- `-images \u003Cpaths>` — Comma-separated local image paths to attach. Unsupported providers reject this flag rather than silently discarding it.\n- `-draft` — Saves instead of publishing where the provider exposes a draft state. Providers without a draft concept return a scope error.\n\n**Behavior and limits**\n\n- `-limit \u003Cn>` — Caps the number of items returned by listing and feed commands. Integer, minimum `1`.\n- `-delay \u003Cms>` — Overrides the provider's default inter-action delay. Values below the configured floor are clamped, not rejected; the effective value is reported in the JSON envelope.\n- `-dry-run` — Resolves and validates the full command without executing any write, like, follow, or publish action. Read-only commands ignore this flag.\n- `-json` — Emits the raw JSON envelope. This is the default output mode; the flag exists for explicitness in scripts.\n- `-quiet` — Suppresses non-error stderr output. Does not alter the JSON envelope on stdout.\n- `-config \u003Cpath>` — Uses an alternate session and configuration directory instead of the default under the user home directory.\n\n**Scope notes**\n\nFlag support is not uniform across providers. Commands reject unknown or inapplicable flags with a validation error rather than ignoring them, so a flag accepted for one provider may fail for another. `-headless` is meaningful only for browser-driven backends; `-auth-token` and `-ct0` are specific to `x`. When a flag's effect depends on provider capability, the JSON envelope reports the applied behavior so callers can detect clamping or substitution.\n\n## Exit codes\n\nViruAgent CLI returns process exit codes so scripts and agents can branch on outcomes without parsing stdout. All commands emit a JSON envelope on stdout; the exit code is a coarse signal, while the envelope's `ok` field and `error`\u002F`hint` values carry the specific cause.\n\n| Code | Meaning | Typical cause |\n|-|-|-|\n| `0` | Success | Command completed and the envelope has `ok: true`. |\n| `1` | General failure | Unhandled error, unexpected provider response, or internal fault. Envelope contains `ok: false` with a descriptive `error`. |\n| `2` | Usage error | Unknown command, missing required flag, or malformed argument. Raised by the argument parser before any provider call. |\n| `3` | Authentication failure | Missing or expired session, invalid credentials, or rejected cookies for the selected provider. |\n| `4` | Rate limit reached | The per-user persistent counter for the target provider is exhausted. The envelope's `hint` reports the current counters and suggested wait. |\n| `5` | Provider-side rejection | The remote platform accepted the request but refused it — captcha challenge, blocked action, or content policy violation. |\n\nNotes on scope and interpretation:\n\n- Exit codes are process-wide and mutually exclusive; the first failure encountered determines the code. Multi-step operations do not continue past a non-zero result.\n- Codes `2` through `5` are emitted by the CLI's own error handling. A provider that returns an unexpected shape or times out surfaces as `1` unless it maps cleanly to `3` or `5`.\n- The JSON envelope is written to stdout regardless of exit code, including on failure. Diagnostics and progress lines go to stderr.\n- Exit code `4` reflects the CLI's local rate-limit counters, not the platform's authoritative state. The provider may still reject a request that the counters consider permitted; that case returns `5`.\n- A captcha or manual-intervention prompt that times out is treated as `5`, not `1`.\n- Exit codes are stable across patch releases within a major version. New codes may be introduced in a major version; treat any unrecognized non-zero code as a general failure.\n\n## Recipes\n\nRecipes below assume `viruagent-cli` is resolvable on your `PATH` (or invoked via your package runner of choice) and that credentials for the target platform have already been stored with `login`. Every command emits a single JSON envelope on stdout — `{ \"ok\": true, \"data\":... }` on success, `{ \"ok\": false, \"error\":..., \"hint\":... }` on failure — so examples pipe to `jq` only for readability. Commands are non-interactive; anything requiring a human (captcha, 2FA) fails fast with a hint rather than blocking.\n\n### Publish a blog post end-to-end\n\nChain category discovery, drafting, and publishing in one agent turn. Drafts are idempotent per title; re-running with the same title updates the existing draft instead of creating a duplicate.\n\n```\nviruagent-cli list-categories provider tistory \\\n| jq r '.data[] | select(.name==\"Tech\") |.id' \\\n| xargs I{} viruagent-cli publish provider tistory \\ category {} title \"Notes on X\" body-file.\u002Fpost.md tags ai,cli\n```\n\nOmit `-publish` (or pass `-draft`) to stop at a saved draft. The command exits `0` only after the platform acknowledges the write; a `200` from an intermediate step is not sufficient.\n\n### Batch-publish to multiple providers\n\nThere is no built-in fan-out. Loop explicitly so a single provider failure does not abort the others, and inspect exit codes per iteration.\n\n```\nfor p in naver insta x; do\nviruagent-cli publish provider \"$p\" body-file.\u002Fpost.md \\\n|| echo \"publish failed for $p (exit $?)\" >&2\ndone\n```\n\nEach provider has different body constraints (Naver editor blocks, Instagram caption length, X character limit). The CLI truncates nothing silently — oversized bodies fail with `error: body_too_long` and a `hint` naming the limit.\n\n### Schedule-adjacent workflow (draft now, publish later)\n\nThe CLI does not run a scheduler. The supported pattern is: create a draft now, then publish it by id at the desired time from your own cron\u002Fsystemd timer.\n\n```\nviruagent-cli draft provider naver title \"Weekly\" body-file.\u002Fweekly.md\n# later:\nviruagent-cli publish-draft provider naver id \u003Cdraft-id>\n```\n\n`publish-draft` is atomic per id; publishing an already-published id returns `ok: true` with `data.alreadyPublished: true` rather than erroring.\n\n### Instagram: analyze-then-comment\n\n`analyzePost` returns structured signals (caption, media type, engagement counters); feed that into your agent to generate a comment, then submit it. Rate-limit counters are per-account and persisted, so separate invocations still respect the budget.\n\n```\nviruagent-cli analyze-post provider insta url \u003Cpost-url> \\\n| jq r '.data.caption' \\\n| viruagent-cli comment provider insta url \u003Cpost-url> stdin\nviruagent-cli rate-limit-status provider insta\n```\n\nCommenting without a preceding `analyze-post` is allowed but discouraged; the CLI cannot verify topical relevance on your behalf.\n\n### X (Twitter): search, then act with delays\n\nSearch returns tweet ids and metadata only. Likes and follows are separate calls and are subject to per-action delays; do not parallelize them.\n\n```\nviruagent-cli search provider x query \"ai cli\" limit 20 \\\n| jq r '.data[].id' \\\n| while read id; do viruagent-cli like provider x id \"$id\"; done\n```\n\n`like` and `follow` are idempotent — repeating on an already-liked tweet or already-followed account returns `ok: true` with `data.noop: true`.\n\n### Naver Cafe: join then write\n\nCafe join is captcha-gated for the first N joins per account; the CLI surfaces `error: captcha_required` and exits non-zero. Solve it in the browser session the CLI opens, then re-run the same command — join state is persisted and the retry will not re-trigger the captcha for that cafe.\n\n```\nviruagent-cli cafe-join provider naver cafe-id \u003Cid>\nviruagent-cli cafe-write provider naver cafe-id \u003Cid> board \u003Cboard> body-file.\u002Fpost.md\n```\n\n`cafe-list` enumerates boards for a cafe; run it before `cafe-write` if you do not know the board identifier.\n\n### Reddit: submit and verify\n\nSubmission returns the created item's id and permalink. Verification is a second call — the CLI does not poll for visibility.\n\n```\nviruagent-cli submit provider reddit subreddit \u003Cname> title \"...\" body-file.\u002Fpost.md\nviruagent-cli get-post provider reddit id \u003Cid>\n```\n\n### Scripting against exit codes\n\nUse exit codes rather than parsing stdout for control flow. `0` = success, `1` = usage\u002Fvalidation error, `2` = auth required or expired, `3` = platform rejection (rate limit, captcha, policy), `4` = transient network error (retryable). The full table lives in the Exit codes section.\n\n```\nif! viruagent-cli publish provider x body-file.\u002Fpost.md; then\ncase $? in\n2) viruagent-cli login provider x;; # re-auth, then retry\n3) sleep 300;; # back off, do not hammer\n4) viruagent-cli publish provider x body-file.\u002Fpost.md;; # one retry\nesac\nfi\n```\n\nTreat exit `3` as terminal for the invocation — retrying immediately will not succeed and may extend a platform-side cooldown.\n\n### Scope notes\n\nThese recipes cover the documented command surface only. Undocumented flags, direct API calls against platform endpoints, and multi-account rotation are out of scope and unsupported; behavior there is not guaranteed across releases. The CLI performs no content moderation — you are responsible for what it publishes and for complying with each platform's terms.\n\n## FAQ\n\n**Does ViruAgent CLI require an AI agent to function?**\nNo. Every command is a standalone CLI invocation. An agent is convenient for chaining steps and interpreting skill instructions, but you can run any provider action manually with the same flags and get the same result.\n\n**Which providers use a real browser?**\nTistory and Naver Blog use Playwright because both require editor-level interaction. Instagram, X (Twitter), Threads, Naver Cafe, and Reddit are implemented over HTTP APIs only. No browser process is spawned for those providers.\n\n**Do I need a password for X (Twitter)?**\nNo. X authentication is cookie-based only: pass `auth_token` and `ct0` extracted from your browser session. Password login is not supported for X and will be rejected.\n\n**How are credentials stored?**\nSession data is persisted as JSON under `~\u002F.viruagent-cli\u002F`. It is plaintext on disk — protect that directory with appropriate filesystem permissions. ViruAgent CLI does not upload session data anywhere.\n\n**What do the rate-limit counters do?**\nPer-user persistent counters track actions such as likes, follows, and comments, and random delays are inserted between operations. These are throttling safeguards, not guarantees. Platform-side limits are outside the tool's control and can change without notice; the counters are a best-effort mitigation only.\n\n**Can I automate Naver Cafe joins fully?**\nPartly. Cafe join and board listing are pure HTTP, but captcha challenges require manual completion. The tool surfaces the captcha for you to solve; it does not bypass it. Automated join attempts are also capped per session.\n\n**What does the CLI output?**\nA JSON envelope on every command: `{ ok, data }` on success, `{ ok, error, hint }` on failure. Exit codes follow the standard convention documented in the Flags\u002FExit codes section, so scripted callers should branch on the exit code first and treat the envelope as detail.\n\n**Can I change what the agent does without patching the CLI?**\nYes. The skill file (`viruagent.md`) defines workflow order, formatting rules, and which commands the agent invokes. Editing the skill file changes agent behavior; editing the CLI is not required for workflow customization.\n\n**Does this work without Node.js?**\nNo. Node.js 18 or newer is required. Supported agent environments (Claude Code, Codex, Cursor, and any agent with bash access) are supported in the sense that they can drive the CLI — they are not a substitute for the Node.js runtime.\n\n**Is this affiliated with the platforms it automates?**\nNo. ViruAgent CLI is an independent, unofficial tool. It is not endorsed by Naver, Instagram, X, Reddit, or Tistory. Automating these platforms may conflict with their terms of service; you are responsible for how you use it.\n\n**What is explicitly out of scope?**\nNo captcha solving, no credential or session sharing, no proxy rotation, and no guarantee of undetectable automation. If a platform changes its internal API or query structure, the corresponding provider can break until updated.","ViruAgent CLI 是一个面向 Windows 的命令行工具，为 Naver Cafe、Naver Blog、Tistory、Instagram、X（Twitter）、Threads 和 Reddit 等平台提供 AI 驱动的内容发布与互动自动化能力。其核心是技能文件（skill file）驱动的执行层：CLI 仅负责认证、调用平台 API、执行操作（如发帖、评论、关注）并返回结构化 JSON 响应；具体工作流逻辑由外部 AI 代理通过读取技能文件定义。项目基于 TypeScript 开发，依赖 PowerShell 和 Node.js，支持本地会话持久化，无 GUI，不管理凭证加密。适用于需批量跨平台内容运营、AI 自动化发布或社交平台集成测试的技术型运营及开发者场景。",2,"2026-11-24 04:52:01","CREATED_QUERY"]