About Doriku
Doriku is a CLI for configuring and managing a shared governance layer for coding agents used across multiple IDEs. It sets up MCP configuration and Claude Code hooks, and provides commands for workflows, file-lock policies, and workspace cost caps.
Key features
- 01Configure MCP and Claude Code hooks
- 02Manage multi-step agent workflows
- 03Define and inspect file-lock policies
- 04View and set workspace cost caps
- 05Test API-key connectivity
Use cases
- 01Coordinate agents working across IDEs
- 02Prevent conflicts with file-lock policies
- 03Monitor and limit workspace token spend
MCP support
The CLI writes Doriku server configuration to `.mcp.json`; Doriku exposes MCP and REST contracts for agent coordination.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://api.doriku.io/mcpclaude mcp add --transport http doriku.cli https://api.doriku.io/mcp{"mcpServers":{"doriku.cli":{"type":"http","url":"https://api.doriku.io/mcp"}}}Open in Cursor{"servers":{"doriku.cli":{"type":"http","url":"https://api.doriku.io/mcp"}}}Open in VS Code{"mcpServers":{"doriku.cli":{"type":"http","url":"https://api.doriku.io/mcp"}}}{"mcpServers":{"doriku.cli":{"serverUrl":"https://api.doriku.io/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://api.doriku.io/mcpAuth requiredTools
Details
From the project README@doriku/cli
The CLI for Doriku — 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.
Quick Start
npx @doriku/cli setup
That's it. Your MCP server config and Claude Code hooks are ready.
Recommended next workflow (AI-friendly):
- Register your agent
- Create a task
- Log progress
- Update task status/result
Recommended first-value goal (15 minutes):
- Connect MCP successfully (connection test passes)
- Create one real engineering task
- Generate one summary snapshot
- Invite one teammate to review the shared state
See docs for MCP/API contracts, first-value onboarding, and recipe examples:
Installation
# Run directly (no install needed)
npx @doriku/cli setup
# Or install globally
npm install -g @doriku/cli
doriku setup
Setup Flow
- Sign in at doriku.io/console and create an API key
- Run the setup command
- Enter your API key when prompted — done!
Non-Interactive Mode
npx @doriku/cli setup --token drk_live_your_key_here --yes
What It Does
| Step | Description |
|---|---|
| MCP Configuration | Writes .mcp.json with your Doriku server config (merges with existing servers) |
| Claude Code Hooks | Installs hooks in ~/.claude/settings.json for automatic task sync |
| Connection Test | Verifies your API key works against the Doriku API |
| Workflow Management | List, run, monitor, and cancel multi-step agent workflows |
| Lock Policies | Define and inspect file-lock policies to prevent agent conflicts |
| Cost Caps | View and set workspace-level daily token spend limits |
Doriku 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.
Who This Is For
- Solo developers and teams using Claude Code, Cursor, or Windsurf in parallel
- Anyone who needs governance (file locks, cost caps, audit trails) across multi-IDE agents
- Teams that need approvals, auditability, and operational visibility across agent work
CLI Reference
Usage: doriku <command> [options]
Commands:
setup Configure MCP and Claude Code hooks
workflow <subcommand> Manage workflow definitions and runs
lock <subcommand> Manage file-lock policies
cost <subcommand> Manage workspace cost caps
Options:
--token <key> API key (drk_live_...)
--yes, -y Non-interactive mode (accept all defaults)
--skip-hooks Skip Claude Code hook installation
--skip-test Skip connection test
-d, --dir <path> Target directory for .mcp.json (default: cwd)
--api-url <url> API base URL (default: https://api.doriku.io)
--help, -h Show help
--version, -v Show version
Workflow Subcommands
doriku workflow list # List all workflow definitions
doriku workflow run <slug> # Start a workflow run
doriku workflow status <runId> # Show run status and step summary
doriku workflow logs <runId> # Show step-level timeline
doriku workflow cancel <runId> # Cancel an in-progress run
Lock Subcommands
doriku lock list # List all file-lock policies
doriku lock policy # Define a new policy (interactive)
Cost Subcommands
doriku cost status # Show current cost cap config and today's usage
doriku cost set # Set daily token cap (interactive)
Links
License
MIT
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.