Claude Code
Set up dkod with Claude Code — Anthropic's agentic coding CLI.
Recommended: Install the Plugin
The dkod plugin bundles everything — MCP tools, the parallel execution skill, agents, and commands — into a single install.
/plugin marketplace add dkod-io/dkod-plugin
/plugin install dkod@dkodYou get MCP tools (including dk_review for code review intelligence), the /dkod skill, /dkod:status, /dkod:push, /dkod:watch, /dkod:land commands, and a pre-built parallel execution agent. /dkod:land is a convenience command that chains dk_approve → dk_merge → dk_push into one step. On first use, a browser window opens for GitHub OAuth authentication.
Alternative: Install MCP Directly
If you prefer to install just the MCP server without the full plugin:
Cloud (dkod.io)
claude mcp add --transport http dkod https://api.dkod.io/mcpClaude Code will open a browser window for authentication on first use. Once authenticated, dkod tools (semantic search, file operations, changeset submission) are available directly in your Claude Code session.
Self-Hosted
For self-hosted setups, see the Self-Hosted quickstart.
Point to your local dkod server:
claude mcp add --transport http dkod http://localhost:8080/mcpFor self-hosted, set your auth token before use:
export DKOD_AUTH_TOKEN=your-secret-tokenInstall the CLI
# Install via Cargo (requires Rust)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
cargo install dk-cliAuthenticate & Initialize
# Authenticate via browser (cloud only)
dk login
# Open a session on a repository (auto-detects from git remote)
dk initFor self-hosted setups, skip
dk loginand setexport DKOD_AUTH_TOKEN=your-secret-tokenandexport DKOD_GRPC_ADDR=http://localhost:50051, then rundk init.
Usage
Once configured, you can use the dkod CLI in your workflow:
# Search code semantically
dk search "authentication middleware"
# Check project status
dk status
# View changes
dk diff
# Commit and push
dk commit -m "Fix token refresh logic"
dk push