Cline

Set up dkod with Cline — the autonomous coding agent for VS Code.


Quick Setup

Paste the prompt below into your Cline chat. It will automatically install and configure the dkod CLI.

Install MCP

Connect Cline to dkod's MCP server for direct access to semantic code tools.

Cloud (dkod.io)

In Cline's sidebar, click the MCP Servers icon (plug icon), then click "Add MCP Server". Select "Streamable HTTP" as the transport type and enter:

  • Name: dkod
  • URL: https://api.dkod.io/mcp

Cline will prompt for authentication on first use.

Self-Hosted

For self-hosted setups, see the Self-Hosted quickstart.

Add a Streamable HTTP server in the same MCP settings UI with your local server URL:

  • Name: dkod
  • URL: http://localhost:8080/mcp

For self-hosted, set your auth token before use:

export DKOD_AUTH_TOKEN=your-secret-token

Install 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-cli

Initialize & Authenticate

# Authenticate via browser (cloud only)
dk login

# Open a session (auto-detects from git remote)
dk init

For self-hosted setups, skip dk login and set export DKOD_AUTH_TOKEN=your-secret-token and export DKOD_GRPC_ADDR=http://localhost:50051, then run dk init.

Usage with Cline

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