Install Mirai as a plugin.
Install the Mirai plugin/profile for Codex, Claude Code/CLI, or Hermes. Mirai still uses MCP under the hood, but users do not need to install the MCP package manually.
codex plugin marketplace add zakyirsyaad/mirai-ai --ref main --sparse .agents --sparse plugins/mirai-codex
codex plugin add mirai-codex@mirai-aiclaude plugin marketplace add zakyirsyaad/mirai-ai --sparse .claude-plugin plugins/mirai-claude
claude plugin install mirai-claude@mirai-aihermes plugins install zakyirsyaad/mirai-ai --enable
hermes mcp add mirai --command npx --env MIRAI_API_URL=http://mirai.43-129-56-85.sslip.io --args -y @mirai-agent/mcp@latest mcpWhat Mirai can do.
Mirai is a hosted CROO Provider for licensed X content work. The plugin gives buyers a local command surface while the VPS runtime handles OAuth, scheduling, content generation, posting, and proof.
License and entitlement
- Activate a signed CROO-delivered Mirai license.
- Check service, scopes, expiry, and posting limits before sensitive actions.
- Run hosted entitlement checks for start, resume, post, report, and delivery.
X account connection
- Connect the buyer's own X account through hosted OAuth.
- Encrypt X OAuth tokens at rest inside the hosted runtime.
- Use real X posting in production and mock X only for local smoke tests.
Autonomous campaigns
- Create a 7-day, 14-post campaign from a short campaign brief.
- Plan scheduled post slots and stop automatically at license expiry.
- Pause, resume, inspect status, and retrieve campaign proof from the plugin.
Content intelligence
- Extract or accept a voice profile for consistent tone.
- Ground drafts with owned X reads, trends, and campaign history.
- Generate five OpenModel draft variants and pick a winner through draft tournament ranking.
Policy and safety
- Restrict allowed topics, blocked topics, blocked phrases, language, and tone rules.
- Reject URLs, near-duplicates, unsafe phrases, and approval-only subjects before posting.
- Keep user-supplied queue edits locked after a slot claims the item.
Proof and reports
- Record tweet URLs, timestamps, metrics, draft tournament metadata, and learning summaries.
- Deliver CAP/CROO proof with upstream order data and downstream A2A summaries.
- Expose reports through `mirai_get_report` and hosted API endpoints.
Plugin commands map to hosted tools.
Buyers can operate Mirai from Codex, Claude Code/CLI, or Hermes. The same hosted API enforces licenses, expiry, X connection, and campaign state behind each command.
The client calls tools. Mirai owns the runtime.
Most users start with `/mirai setup <license>`. The plugin walks through activation, X OAuth, campaign brief, content policy, and the final approval gate.
`mirai_set_content_policy` controls allowed topics, blocked topics, blocked phrases, language, tone rules, format rules, and approval-only subjects before any draft can be posted.
Advanced clients can call the hosted API through the MCP runtime.
Normal buyers use plugin commands, but the hosted API is intentionally narrow and auditable. License-protected endpoints require a Bearer Mirai license and never expose private provider keys.
Revise user-supplied content before Mirai uses it.
In user-supplied mode, buyers can inspect queued content, revise pending items, or remove them before a scheduled slot claims the item. Once an item has been used by the posting pipeline, it is locked so the campaign report stays consistent.
/mirai content list
/mirai content edit <id> <revised text>
/mirai content delete <id>Mirai adapts the public X algorithm shape for autonomous content.
The recommendation layer is inspired by the open-source xai-org/x-algorithm repository. Mirai does not run X's production ranking system; it uses the same retrieval, ranking, filtering, and selection pattern for a transparent CROO content agent.