{
  "markdown": "<div align=\"center\">\n\n# @doriku/cli\n\n**The CLI for [Doriku](https://doriku.io) — an MCP-native governance plane for multi-IDE coding agents. Set up MCP config and Claude Code hooks, then manage workflows, file-lock policies, and cost caps from the terminal.**\n\n[![npm version](https://img.shields.io/npm/v/@doriku/cli.svg?style=flat-square&color=cb3837)](https://www.npmjs.com/package/@doriku/cli)\n[![license](https://img.shields.io/npm/l/@doriku/cli.svg?style=flat-square)](LICENSE)\n[![node](https://img.shields.io/node/v/@doriku/cli.svg?style=flat-square)](package.json)\n\n</div>\n\n---\n\n## Quick Start\n\n```bash\nnpx @doriku/cli setup\n```\n\nThat's it. Your MCP server config and Claude Code hooks are ready.\n\nRecommended next workflow (AI-friendly):\n1. Register your agent\n2. Create a task\n3. Log progress\n4. Update task status/result\n\nRecommended first-value goal (15 minutes):\n1. Connect MCP successfully (connection test passes)\n2. Create one real engineering task\n3. Generate one summary snapshot\n4. Invite one teammate to review the shared state\n\nSee docs for MCP/API contracts, first-value onboarding, and recipe examples:\n- [Documentation home](https://doriku.io/docs)\n- [15-minute first value playbook](https://doriku.io/docs#first-value-loop)\n- [Use case recipes](https://doriku.io/docs#use-cases)\n\n## Installation\n\n```bash\n# Run directly (no install needed)\nnpx @doriku/cli setup\n\n# Or install globally\nnpm install -g @doriku/cli\ndoriku setup\n```\n\n## Setup Flow\n\n1. Sign in at [doriku.io/console](https://doriku.io/console/login) and create an API key\n2. Run the setup command\n3. Enter your API key when prompted — done!\n\n### Non-Interactive Mode\n\n```bash\nnpx @doriku/cli setup --token drk_live_your_key_here --yes\n```\n\n## What It Does\n\n| Step | Description |\n|------|-------------|\n| **MCP Configuration** | Writes `.mcp.json` with your Doriku server config (merges with existing servers) |\n| **Claude Code Hooks** | Installs hooks in `~/.claude/settings.json` for automatic task sync |\n| **Connection Test** | Verifies your API key works against the Doriku API |\n| **Workflow Management** | List, run, monitor, and cancel multi-step agent workflows |\n| **Lock Policies** | Define and inspect file-lock policies to prevent agent conflicts |\n| **Cost Caps** | View and set workspace-level daily token spend limits |\n\nDoriku also exposes AI-friendly MCP/REST contracts (structured MCP errors, machine-readable REST error fields, and a core OpenAPI spec) to make agent retries and recovery easier.\n\n## Who This Is For\n\n- Solo developers and teams using Claude Code, Cursor, or Windsurf in parallel\n- Anyone who needs governance (file locks, cost caps, audit trails) across multi-IDE agents\n- Teams that need approvals, auditability, and operational visibility across agent work\n\n## CLI Reference\n\n```\nUsage: doriku <command> [options]\n\nCommands:\n  setup                     Configure MCP and Claude Code hooks\n  workflow <subcommand>     Manage workflow definitions and runs\n  lock <subcommand>         Manage file-lock policies\n  cost <subcommand>         Manage workspace cost caps\n\nOptions:\n  --token <key>      API key (drk_live_...)\n  --yes, -y          Non-interactive mode (accept all defaults)\n  --skip-hooks       Skip Claude Code hook installation\n  --skip-test        Skip connection test\n  -d, --dir <path>   Target directory for .mcp.json (default: cwd)\n  --api-url <url>    API base URL (default: https://api.doriku.io)\n  --help, -h         Show help\n  --version, -v      Show version\n```\n\n### Workflow Subcommands\n\n```bash\ndoriku workflow list                 # List all workflow definitions\ndoriku workflow run <slug>           # Start a workflow run\ndoriku workflow status <runId>       # Show run status and step summary\ndoriku workflow logs <runId>         # Show step-level timeline\ndoriku workflow cancel <runId>       # Cancel an in-progress run\n```\n\n### Lock Subcommands\n\n```bash\ndoriku lock list                     # List all file-lock policies\ndoriku lock policy                   # Define a new policy (interactive)\n```\n\n### Cost Subcommands\n\n```bash\ndoriku cost status                   # Show current cost cap config and today's usage\ndoriku cost set                      # Set daily token cap (interactive)\n```\n\n## Links\n\n- [Website](https://doriku.io)\n- [Documentation](https://doriku.io/docs)\n- [Console](https://doriku.io/console)\n\n## License\n\nMIT\n",
  "bytes": 4386,
  "sha": "c4f5cd7ff2be2680d29e14a41f885b3104695f46d57778fea29eb02f505808c5",
  "repo_slug": "doriku-io/doriku.cli",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_doriku_task_manager_deac8b9f/readme"
}