This skill should be used when the user asks to "set up khanrad", "configure khanrad", "connect to khanrad", mentions "KHANRAD_API_KEY", "KHANRAD_URL", or discusses khanrad configuration, authentication setup, or API key configuration.
This skill helps users configure their connection to the Khanrad Kanban API.
.khanrad.jsonKHANRAD_URL — the URL of the deployed Khanrad instance (e.g., https://khanrad.dev). Does not include /api/mcp.KHANRAD_API_KEY — an API key generated from the Khanrad Settings UI. Prefixed with knrd_..khanrad.json — workspace config file mapping this project to a Khanrad project and board by slug. Safe to commit. Example:
{
"project": "my-project",
"defaultBoard": "development"
}
The URL is typically set globally (one Khanrad instance), while the API key can be global or per-project (different orgs may use different keys).
Set the URL globally in ~/.claude/settings.json:
{
"env": {
"KHANRAD_URL": "https://khanrad.dev"
}
}
Set the API key per-project in .claude/settings.json in the project root:
{
"env": {
"KHANRAD_API_KEY": "knrd_your_api_key_here"
}
}
If using the same key everywhere, set both globally:
{
"env": {
"KHANRAD_URL": "https://khanrad.dev",
"KHANRAD_API_KEY": "knrd_your_api_key_here"
}
}
.khanrad.json)A .khanrad.json file in the project root maps the workspace to a Khanrad project and board by slug:
| Field | Type | Required | Description |
|---|---|---|---|
project | string | Yes | Slug of the Khanrad project |
defaultBoard | string | No | Slug of the default board |
This file is safe to commit — it contains only slugs, no secrets. At session start, Claude reads this file and resolves slugs to IDs via list-projects and list-boards. When no .khanrad.json exists, the plugin falls back to slug-based auto-discovery by matching the project name against Khanrad project slugs. The /khanrad:setup command offers to create this file after environment variable configuration.
Make sure .claude/settings.json is in .gitignore to avoid committing secrets. Project-level settings override global settings.
Users can run /khanrad:setup for a guided walkthrough that handles URL input, API key configuration, scope selection, .gitignore checks, and .khanrad.json creation.
After configuration, restart Claude Code and verify the Khanrad MCP tools are available. If the connection fails, check:
/api/mcp (the plugin appends this)