漂亮的 TUI
用 Vue 打造的现代终端界面。
DimCode 覆盖多模型 CLI、TypeScript SDK、ACP 编辑器集成与插件化 coding agent 工作流。
DimCode Desktop 0.2.4 提供 macOS 与 Windows 下载:
npm install -g dimcode@latest
# pnpm add -g dimcode
# yarn global add dimcode
# bun add -g dimcodedim
# or: npx dimcodeCtrl+P → Connect Provider(或输入 /connect),添加需要 API key 的提供方(OpenAI / OpenRouter 等)。Ctrl+P:命令面板(会话、连接、模型、审批、MCP、插件)。/connect:连接提供方(也可添加自定义 / 本地提供方)。/models:选择模型。/approvals:设置工具审批(auto、normal 或 strict)。Shift+Enter:换行;Enter:发送;Ctrl+O:展开/折叠工具调用与思考。默认存放在 ~/.dimcode/:
~/.dimcode/config.json~/.dimcode/mcp.json~/.dimcode/tools.json~/.dimcode/dimcode/cache.json~/.dimcode/dimcode/state/完整说明见:/zh/config。
可通过以下变量调整位置:
DIMCODE_HOME(基础目录)DIMCODE_STATE_DIR(状态目录)WebSearch 需要 Serper API Key。可在 Plugins(Ctrl+P → Plugins 或 /plugins)中配置。
在 MCP(Ctrl+P → MCP 或 /mcp)中配置。
# One-shot prompt (tools auto-approved)
dim "Review this repo and propose a refactor plan"
# One-shot prompt without interactive fallback
dim --no-interaction "Review this repo and propose a refactor plan"
# 从 stdin 执行 one-shot
echo "Review this code" | dim
# Next API OAuth 登录
dim auth next-api-oauth
# Editor integration (ACP)
dim acpACP 说明见:/zh/acp。
嵌入式 agent runtime 见 SDK 说明:/zh/sdk。
dim --help 查看命令与参数。dim --debug 启用诊断,默认写入 ./dimcode-debug.log。