Documentation Index
Fetch the complete documentation index at: https://docs.trykode.xyz/llms.txt
Use this file to discover all available pages before exploring further.
kode tui launches Kode’s interactive Terminal User Interface — a full-featured front end for browsing your codebase, running tasks, reviewing Ghost Branch results, and inspecting verification output. On first run, Kode downloads the TUI binary from GitHub Releases and caches it in ~/.kode/tui/. Subsequent runs start instantly from the cached binary. You can also launch the TUI simply by running kode with no arguments.
Synopsis
What it does
- Checks the cache — looks for a versioned TUI binary in
~/.kode/tui/bin/ - Downloads if missing — fetches the platform-specific binary from GitHub Releases and writes it to
~/.kode/tui/bin/kode-tui(orkode-tui.exeon Windows) - Launches the TUI — starts the binary, passing through port, hostname, and mDNS flags; the TUI binary connects back to
kodevia theKODE_BINenvironment variable - Logs TUI output — redirects the TUI’s stderr to
~/.kode/tui/kode-tui.logso diagnostic lines do not interfere with the terminal screen buffer
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--port | int | auto-assigned | HTTP server port for the TUI |
--hostname | string | unset | HTTP server hostname |
--mdns | bool | false | Advertise the TUI over mDNS for local network access |
Examples
First-run behavior
On first run (or when the cached binary does not match the current Kode version),kode tui downloads the platform binary from GitHub Releases:
~/.kode/tui/bin/kode-tui and a version marker is written to ~/.kode/tui/.kode-tui-version. Future runs skip the download and start immediately.
The download URL is constructed as:
<os> is linux, darwin, or windows, and <arch> is x64 or arm64.
Environment overrides
| Variable | Description |
|---|---|
KODE_TUI_DIR | Override the directory where the TUI binary is cached (default: ~/.kode/tui) |
KODE_TUI_BUNDLE_URL | Override the full download URL for the TUI binary (useful for air-gapped environments or mirrors) |
TUI log file
TUI stderr output is written to~/.kode/tui/kode-tui.log. If the TUI behaves unexpectedly or crashes, inspect this file for diagnostic output:
Running
kode with no arguments is equivalent to kode tui. Both commands go through the same binary resolution and download path.Related
kode loop— run tasks from the command line without the TUIkode mcp serve— expose Kode as an MCP server for Claude Desktop