Skip to content

CLI

One command wires your Kryton server into every AI agent host on your machine — Claude Code, Cursor, Claude Desktop, Codex, Cline, Continue, KiloCode, RooCode, OpenCode, and more.

Two npm packages under @azrtydxb/:

PackageRole
@azrtydxb/kryton-initOne-shot installer. Detects AI tool hosts, mints an API key, writes per-host MCP configs.
@azrtydxb/kryton-mcpstdio MCP shim. Bridges stdio-only hosts (Claude Desktop, Cline, …) to Kryton’s HTTP MCP endpoint.
Terminal window
npx @azrtydxb/kryton-init

The installer will:

  1. Ask for your Kryton server URL (defaults to https://kryton.ai).
  2. Sign you in via email + password (BetterAuth).
  3. Mint an API key named kryton-init-<hostname>-<timestamp>.
  4. Detect every supported AI tool on your machine.
  5. Write the appropriate MCP config to each one.

Idempotent — re-running replaces previous Kryton entries without duplicating them. A backup of every modified config is written next to it as <path>.kryton-init.bak.<timestamp> (most recent kept).

Terminal window
kryton-init install # interactive setup (default action)
kryton-init uninstall # remove Kryton entries from every detected host
kryton-init status # show which hosts are wired (token hash only)
kryton-init detect # list detected hosts without writing anything
kryton-init mcp [--host] # print the MCP JSON snippet to wire manually

Common flags:

FlagMeaning
--server <url>Override the server URL prompt
--dry-runPrint the plan without touching any file
--hosts <list>Comma-separated subset of hosts to act on
HostTransport
Claude CodeHTTP (stdio fallback)
CursorHTTP (stdio fallback)
Claude Desktopstdio
CodexHTTP (stdio fallback)
OpenCodestdio
Cline (VS Code)stdio
Continuestdio
KiloCodestdio
RooCodestdio

macOS + Linux only. Windows support is not in v1.

Hosts that only speak stdio MCP get wired to npx @azrtydxb/kryton-mcp with KRYTON_URL + KRYTON_TOKEN in their env. The shim opens a stdio MCP server and transparently forwards every JSON-RPC frame to <KRYTON_URL>/api/mcp with Authorization: Bearer $KRYTON_TOKEN, preserving the mcp-session-id header across requests and re-emitting server→client SSE notifications back onto stdio.

Set KRYTON_DEBUG=1 to enable structured stderr logging from the shim.

Terminal window
kryton-init mcp --host claude-code

Prints the JSON snippet to paste into a host whose config layout the installer doesn’t recognise yet.

HTTP shape (recent Claude Code / Cursor / Codex / VS Code MCP):

{
"mcpServers": {
"kryton": {
"type": "http",
"url": "https://kryton.ai/api/mcp",
"headers": {
"Authorization": "Bearer kryton_xxxx..."
}
}
}
}

stdio shape (Claude Desktop, Cline, Continue, …):

{
"mcpServers": {
"kryton": {
"command": "npx",
"args": ["-y", "@azrtydxb/kryton-mcp"],
"env": {
"KRYTON_URL": "https://kryton.ai",
"KRYTON_TOKEN": "kryton_xxxx..."
}
}
}
}
Terminal window
kryton-init uninstall

Removes the kryton entry from every host config touched by install, restores the most recent backup if a host’s file has been edited by hand since the install, and revokes the minted API key on the server (DELETE /api/api-keys/<id>).

The installer stores state at ~/.config/kryton-init/state.json (chmod 0600). It records the server URL, the API key id + prefix (never the full secret after first write), the list of wired host configs, and a pre-write SHA-256 hash of each one so uninstall can detect hand-edits.

Both packages publish independently to npm under @azrtydxb/. Tag the monorepo with cli-v<semver> (e.g. cli-v0.1.0) — the cli-publish workflow builds and tests both packages, then publishes them in order (kryton-mcp first so the shim is on the registry by the time kryton-init recommends it).