Skip to content

dsh-grok-tui

⭐ 11 · ✅ active · client · ⬆️ +1 recently

Type client Category Terminal
Stars ⭐ 11 Status ✅ active
Author chen-001 Updated 2026-08-15

One-liner

TUI built with grok-build.

About

把 grok-build 的 TUI 作为 DeepSeek Harness (dsh) 的前端:界面是 grok 的,内核(提示词、工具、模型路由、会话持久化)由 dsh 提供。 Grok's TUI as a frontend for DeepSeek Harness (dsh): the interface is grok's, the engine (prompts, tools, model routing, persistence) is dsh's.

📦 Install

npm install -g dsh-grok-tui
grok-dsh setup        # 把 grok bridge 挂进 dsh web 的 profile(幂等,可重复执行)
                      # wire the grok bridge into the dsh web profile (idempotent)
npx @deepseek-ai/dsh web   # 启动官方 host / start the official host
grok-dsh              # 打开 TUI,直连运行中的 dsh web
                      # open the TUI, bridging to the running dsh web

🚀 Quick Start

git clone https://github.com/chen-001/dsh-grok-tui.git
cd dsh-grok-tui && sh install.sh

📚 Learn more

安装 / Installation

前提:已安装 dsh 与 grok TUI 二进制(curl -fsSL https://x.ai/cli/install.sh | bash)。支持 macOS / Linux。 Prerequisites: dsh and the grok TUI binary (curl -fsSL https://x.ai/cli/install.sh | bash). macOS / Linux.

方式 B:git 完整安装 / Full installer

git clone https://github.com/chen-001/dsh-grok-tui.git cd dsh-grok-tui && sh install.sh This installer performs the same bridge hookup automatically, then builds and writes the grok-dsh launcher into your PATH. 两种方式安装后的行为完全一致(命令、herdr 侧栏自动配置、用量面板)。 Both paths behave identically afterwards (command, automatic herdr sidebar config, usage panels).

使用 / Usage

先启动官方 host(推荐),再打开 TUI: Start the official host first (recommended), then open the TUI: dsh web # 启动官方 host / start the official host grok-dsh # 打开 TUI:检测到运行中的 dsh web 则直连,否则启动本窗口独立后端 # open the TUI: bridges to a running dsh web, else starts a per-window backend grok-dsh stop # 停止所有独立后端 / stop all standalone backends grok-dsh status # 查看 host 桥 / 独立后端状态与 grok 版本 / host bridge & backend status, gro

用量指标展示 / Usage metrics

官方 grok 二进制即可显示 token 用量(状态栏 18K/1.0M context bar)。完整指标——缓存命中率、TTFT、TPS、输入/输出 token——在以下环境自动展示,无需编译任何 grok 源码: The stock grok binary already shows token usage (the 18K/1.0M context bar). Full metrics — cache hit rate, TTFT, TPS, in/out tokens — appear automatically in these environments, no grok source build needed: