> For AI agents: the complete documentation index is available at https://docs.heys.ai/workstation/llms.txt, the full documentation bundle is available at https://docs.heys.ai/workstation/llms-full.txt.

# 快捷键与命令速查

## 快捷键 \{#keyboard-shortcuts}

macOS 用 ⌘，Windows / Linux 用 Ctrl。表里只写 ⌘ 的，在 Windows / Linux 上换成 Ctrl 即可。

### 全局

| 快捷键         | 作用                                                                          |
| ----------- | --------------------------------------------------------------------------- |
| ⌘K / Ctrl+K | 打开 / 关闭搜索面板（[界面总览](https://docs.heys.ai/workstation/interface-overview.md)） |
| ⌘B / Ctrl+B | 收起 / 展开二级栏；收起后鼠标移到左边，二级栏临时浮出                                                |
| Esc         | 关闭搜索框、弹窗、菜单；多选下拉里只收起下拉                                                      |

### 搜索面板（⌘K）

| 快捷键             | 作用                             |
| --------------- | ------------------------------ |
| Tab / Shift+Tab | 在 全部、操作、聊天、创新空间、文件、文本 几个分类之间切换 |
| ⌘← / ⌘→         | 同上，切到上一个 / 下一个分类               |
| ↑ / ↓、回车        | 在结果里移动、打开选中的结果                 |
| ⌘1 … ⌘9         | 直接打开第 N 条结果                    |

### 设置

| 快捷键         | 作用                |
| ----------- | ----------------- |
| ⌘F / Ctrl+F | 在设置页里聚焦左上角的「搜索设置」 |

### 输入框

| 快捷键                  | 作用                                                                              |
| -------------------- | ------------------------------------------------------------------------------- |
| 回车                   | 发送（执行中发送 = 插话，进入排队）                                                             |
| Shift+回车             | 换行；在列表里续下一项，空的一项上再按一次退出列表                                                       |
| 输入 \`\`\` 后 Shift+回车 | 得到代码框                                                                           |
| 行首输入「- 」或「1. 」       | 变成圆点或编号列表                                                                       |
| Tab                  | 把灰字的「下一步提示」填进输入框（不发送）                                                           |
| Esc                  | 这一段答复不再显示下一步提示                                                                  |
| `/`                  | 弹出技能菜单（开头输入或追问时都可以）                                                             |
| `@`                  | 引用文件、会话、浏览器，或选 @设计、@使用指南、@创建                                                    |
| ⌘V                   | 粘贴截图、文件                                                                         |
| ⌘Z                   | 撤销「增强」改写的提示词；撤销一次按住说话输入的整段                                                      |
| 按住输入框                | 按住鼠标说话，松开后文字留在输入框里（[发起任务](https://docs.heys.ai/workstation/starting-a-task.md)） |

输入法正在选字时按回车只是确认候选词，不会发送或提交。

### 会话页

| 快捷键              | 作用                          |
| ---------------- | --------------------------- |
| ⌘F / Ctrl+F      | 在当前对话里查找（你的消息与答复正文）         |
| 回车 / Shift+回车    | 跳到下一处 / 上一处命中               |
| Esc              | 关闭查找，停在当前位置                 |
| ↑ / ↓、Home / End | 焦点在会话标尺上时，逐轮移动、跳到第一轮 / 最后一轮 |
| ⌘ / Ctrl+点击链接    | 用系统浏览器打开（单击在内置浏览器打开）        |
| 回车 / Esc         | 改对话名称时保存 / 放弃               |
| Esc              | 右侧面板放大时，回到原来的排列             |

### 精灵页

| 快捷键         | 作用                  |
| ----------- | ------------------- |
| ⌘F / Ctrl+F | 搜索和精灵的聊天记录，多个词用空格隔开 |
| Esc         | 精灵资料页里只关当前弹窗        |

### 内置浏览器（焦点在浏览器面板或网页里）

| 快捷键          | 作用                               |
| ------------ | -------------------------------- |
| ⌘F           | 在页面中查找                           |
| ⌘P           | 打印                               |
| ⌘+ / ⌘- / ⌘0 | 放大 / 缩小 / 重置缩放，按网站记住             |
| Esc          | 退出批注模式；浏览器模式里 Esc 留给网页，不会退出浏览器模式 |

### 文件、表格、终端与画布

| 快捷键          | 作用                                    |
| ------------ | ------------------------------------- |
| ⌘S           | 保存正在编辑的文本、代码文件，或内置 Office 里编辑的文档      |
| ⌘C / ⌘X / ⌘V | 表格（xlsx、CSV）里复制、剪切、粘贴选区，可与 Excel 互相粘贴 |
| Delete       | 清空表格选区                                |
| ⌘ + 滚轮       | 放大看图片时缩放                              |
| ⌘C / ⌘V      | 内嵌终端里有选区时复制、粘贴（没有选区时 Ctrl+C 交给命令行中断）  |
| ⌘+回车         | Git 面板里提交                             |
| Esc          | 设计画布里退出原型试用                           |

## 设置分区速查 \{#settings-sections-at-a-glance}

设置导航从上到下的顺序。只在本机桌面端出现的分区标了「本机」；用组织账号登录时，有些分区按组织的设置出现或隐藏。

| 分组       | 分区       | 主要内容                                                                  | 详见                                                                                                                                                                                                                                     |
| -------- | -------- | --------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| —        | 工作概览     | 最近 7 / 30 天完成的任务、工作时长、估算节省                                            | [空间、外观与通用设置](https://docs.heys.ai/workstation/spaces-appearance-and-general-settings.md)                                                                                                                                               |
| 基础设置     | 积分 / 时长  | 组织模式下的余额或剩余时长、充值、显示消耗、扫码绑定办公应用账号（按组织的计费方式二选一）                         | [安装、登录组织与更新](https://docs.heys.ai/workstation/installation-sign-in-and-updates.md)、[模型与用量](https://docs.heys.ai/workstation/models-and-usage.md)                                                                                       |
|          | 通用配置     | 界面语言、字号、执行过程显示、显示模型速度、动效、下一步提示、推荐、任务完成通知、隐私目录、实验功能、托盘（Windows）、运行时、维护 | [空间、外观与通用设置](https://docs.heys.ai/workstation/spaces-appearance-and-general-settings.md)                                                                                                                                               |
|          | 外观       | 皮肤、降低透明度、加粗高亮、默认皮肤、强制统一                                               | [空间、外观与通用设置](https://docs.heys.ai/workstation/spaces-appearance-and-general-settings.md)                                                                                                                                               |
|          | 空间       | 新建与管理空间、别名、颜色、隐藏、运行参数、模型配置、生图、工具、附加规则、俏皮话                             | [空间、外观与通用设置](https://docs.heys.ai/workstation/spaces-appearance-and-general-settings.md)                                                                                                                                               |
|          | 数据同步     | 云端同步的状态、设备、恢复码、回收站、冲突副本（本机，组织开通时）                                     | [数据、云端同步与排查](https://docs.heys.ai/workstation/data-cloud-sync-and-troubleshooting.md)                                                                                                                                                  |
|          | 模型服务     | 添加与检测模型服务（组织允许自定义模型时）                                                 | [模型与用量](https://docs.heys.ai/workstation/models-and-usage.md)                                                                                                                                                                          |
|          | 环境变量     | 地址与密钥、配置导入 / 导出（不连组织时）                                                | [空间、外观与通用设置](https://docs.heys.ai/workstation/spaces-appearance-and-general-settings.md)                                                                                                                                               |
|          | 浏览器与网站资源 | 内置浏览器、不校验证书、代填密码、下载、网站权限（本机）                                          | [内置浏览器与网站](https://docs.heys.ai/workstation/built-in-browser-and-sites.md)                                                                                                                                                             |
|          | 电脑控制     | 开关、运行模式、系统授权、禁用应用（本机）                                                 | [电脑控制](https://docs.heys.ai/workstation/computer-use.md)                                                                                                                                                                               |
|          | 语音输入     | 识别引擎、按住输入框说话、录一句试试                                                    | [空间、外观与通用设置](https://docs.heys.ai/workstation/spaces-appearance-and-general-settings.md)                                                                                                                                               |
| Agent 能力 | 网站       | 网站映射表与站点手册（本机）                                                        | [内置浏览器与网站](https://docs.heys.ai/workstation/built-in-browser-and-sites.md)                                                                                                                                                             |
|          | 人格       | 人格文件                                                                  | [记忆与人格](https://docs.heys.ai/workstation/memory-and-personality.md)                                                                                                                                                                    |
|          | 记忆       | 全局记忆                                                                  | [记忆与人格](https://docs.heys.ai/workstation/memory-and-personality.md)                                                                                                                                                                    |
| 集成       | 精灵       | 名字、头像、聊天模型、渠道、连接器、邮件提醒与每天汇总、记忆（本机）                                    | [精灵](https://docs.heys.ai/workstation/sprite.md)                                                                                                                                                                                       |
|          | 邮件       | 邮件账户与账户设置、所有账户切回「每封都要我确认」、图标栏角标、网络代理、发送记录（本机）                         | [邮件](https://docs.heys.ai/workstation/mail.md)                                                                                                                                                                                         |
|          | 通知渠道     | 内置的「通知」以外的 Webhook                                                    | [定时任务与通知](https://docs.heys.ai/workstation/cron-jobs-and-notifications.md)                                                                                                                                                             |
|          | 同步外部会话   | 导入 Codex、WorkBuddy、豆包、千问办公的会话（本机）                                     | [空间、外观与通用设置](https://docs.heys.ai/workstation/spaces-appearance-and-general-settings.md)                                                                                                                                               |
|          | 连接       | 本地 / 远程模式、共享本机（协同节点）                                                  | [CoWork、协同节点、网页版与部署](https://docs.heys.ai/workstation/cowork-collaboration-node-web-app-and-deployment.md)                                                                                                                             |
|          | 账户管理     | 登录账户与角色                                                               | [CoWork、协同节点、网页版与部署](https://docs.heys.ai/workstation/cowork-collaboration-node-web-app-and-deployment.md)                                                                                                                             |
|          | 企业市场     | 公司自己的拓展市场（不连组织时）                                                      | [CoWork、协同节点、网页版与部署](https://docs.heys.ai/workstation/cowork-collaboration-node-web-app-and-deployment.md)                                                                                                                             |
| —        | 关于       | 版本、更新、测试版、各组件版本、客户端 ID、配置同步、数据目录、运行日志、诊断包、检测模型服务（组织模式）                | [安装、登录组织与更新](https://docs.heys.ai/workstation/installation-sign-in-and-updates.md)、[模型与用量](https://docs.heys.ai/workstation/models-and-usage.md)、[数据、云端同步与排查](https://docs.heys.ai/workstation/data-cloud-sync-and-troubleshooting.md) |

专家、技能、连接器、定时任务在图标栏上，不在设置里。

## 命令行速查 \{#command-line-reference}

命令行来自服务端部署或 HeyS 命令行包，桌面端没有（[命令行与 API](https://docs.heys.ai/workstation/command-line-and-api.md)）。所有查询命令支持 `--json`；多数命令接受 `--profile <名字>` 指定空间。任意命令后加 `--help` 看完整选项。

### 初始化、配置与数据目录

```bash
heys init [--force]
heys config get
heys config set currentProfile <name>
heys home show [--json]
heys home migrate <dir> [--dry-run] [--yes]
heys home migrate --to-default [--yes]
heys home use <dir> [--yes]
heys home use --default [--yes]
heys home reset --force
```

### 任务

```bash
heys task run "<目标>" [--session <id>] [--workspace <path>] [--project <idOrName>] [--no-project]
                       [--profile <name>] [--expert <name>] [--ref-session <id>]...
                       [--policy auto|ask-on-write|readonly] [--task-id <id>]
                       [--no-memory] [--json] [--debug] [--no-bg]
heys task list [--session <id>] [--json]
heys task get <taskId> [--json]
heys task state <taskId> [--json]
heys task events <taskId> [--type <事件类型>] [--json]
heys task attach <taskId>
heys task cancel <taskId>          # 暂停：跑完当前这一轮后停
heys task close <taskId>           # 结束：下一句话会新开任务
```

### 会话、项目与搜索

```bash
heys session create [--name <name>] [--workspace <path>] [--project <idOrName>] [--no-project] [--no-memory]
heys session list [--all] [--status active|archived|all] [--since 1d|3d|7d|30d]
heys session get|use|tasks <sessionId>
heys session workspace <sessionId> [<dir> | --clear]
heys session archive|unarchive|delete <sessionId>

heys project create --name <name> [--path <dir>]     # 不给 --path = 空白项目
heys project list|get|use <idOrName>
heys project dir list|add|remove|describe <project> ...
heys project rename <idOrName> --name <新名字>
heys project delete <idOrName> [--yes]
heys project memory <idOrName> [--edit|--clear]

heys search "<关键词>" [--scope session|task|all] [--project <idOrName>] [--limit <n>]
```

### 空间、人格与模型服务

```bash
heys profile list|get|use <name>
heys profile create <name> [--copy-from <src>] [--use]
heys profile copy <src> <dst>
heys profile edit <name>                 # 用编辑器修改，校验通过才写回
heys profile rename <old> <new>
heys profile delete <name> [--yes]
heys soul show|edit|reset

heys provider list
heys provider add <id> [--preset <preset>] [--base-url <url>] [--api-key <key>] [--model <id...>]
heys provider set <id> [--api chat_completions|responses] [--reasoning-effort low|medium|high]
heys provider models <id> [--refresh]
heys provider test <id> [--model <modelId>]
heys provider remove <id>
```

### 技能、专家、连接器、工具

```bash
heys skill list|get <name>
heys skill enable|disable <name>
heys skill add <path>
heys skill remove <name>
heys skill update                        # 重新扫描技能目录
heys skill test <name>

heys expert list|get <name>
heys expert create --name <name> [--prompt <人设>] [--skills <a,b>] [--connectors <x,y>]
heys expert edit|remove <name>

heys connector list|get <name>
heys connector enable|disable <name>
heys connector plugins list|get|enable|disable <name>

heys tool list
heys tool inspect <tool>
heys tool test <tool.action> --input '<json>' --workspace <path>
```

### 定时任务

```bash
heys cron add "<目标>" --schedule "<表达式或自然语言>" [--name <name>] [--project <idOrName>] [--once]
heys cron list
heys cron get <jobId>
heys cron runs <jobId>
heys cron edit <jobId> [--goal …] [--schedule …] [--name …]
heys cron enable|disable|remove <jobId>
heys cron run [--job <jobId>]
```

### 记忆

```bash
heys memory topics
heys memory show <name>
heys memory remember "<内容>"
heys memory edit|remove <name>
heys memory export [--out <file>]
heys memory settings [--chat-search on|off] [--generate on|off]
```

### 拓展市场

```bash
heys hub config [--endpoint <url>] [--api-key <key>]
heys hub status
heys hub search [关键词] [--type <类型>] [--tag <标签>]
heys hub info <slug>
heys hub install <slug>[@版本] [--force]
heys hub list
heys hub update [<slug>] [--all|--check]
heys hub provision [--show]              # 配置同步
heys market private show|set|test        # 企业市场
heys runtime list|install node|install uv|remove <name>|mirror auto|cn|official
```

### 浏览器（本机命令行）

```bash
heys browser status
heys browser sites list|match <url>|check
```

### 账户与服务

```bash
heys account add <username> --profile <name> [--admin] [--password-file <path>]
heys account list
heys account role <username> admin|user
heys account passwd <username>
heys account remove <username>

heys server [--host <addr>] [--port <n>] [--auth none|token|accounts] [--token <t>]
            [--profile <name>] [--token-ttl <天>] [--web-dist <path>] [--no-web] [--no-cron]
```

服务端部署的 `heys-server` 参数与 `heys server` 相同。

## 常用环境变量 \{#common-environment-variables}

| 变量                                                                          | 作用                                                                                                                     |
| --------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `HEYS_HOME`                                                                 | 数据目录，默认 `~/.heys`                                                                                                      |
| `HEYS_PROFILE`                                                              | 命令行使用的空间                                                                                                               |
| `HEYS_LANG`                                                                 | AI 工作语言与命令行输出语言：`zh-CN` / `en-US`                                                                                      |
| `HEYS_HUB_ENDPOINT` / `HEYS_HUB_API_KEY`                                    | 拓展市场地址与密钥                                                                                                              |
| `HEYS_DISABLE_UPDATE_CHECK`                                                 | `1` = 不检查客户端更新（Docker 镜像默认开）                                                                                           |
| `HEYS_TRUSTED_PROXIES`                                                      | 服务端前面的反向代理地址，逗号分隔的 IP 或网段                                                                                              |
| `HEYS_ALLOW_WEAK_KEYS`                                                      | `1` = 临时放过短于 32 个字符的令牌（只告警）                                                                                            |
| `HEYS_WEBAPP_PROJECT_WORKSPACE`                                             | 网页版建项目时的工作目录根                                                                                                          |
| `HEYS_SERVER_*`、`HEYS_ADMIN_*`、`PUID` / `PGID`、`HEYS_CHOWN`、`HEYS_RUN_USER` | Docker 部署用，见[CoWork、协同节点、网页版与部署](https://docs.heys.ai/workstation/cowork-collaboration-node-web-app-and-deployment.md) |
| `HEYS_DISABLE_GPU`                                                          | `1` = 桌面端走软件渲染（麒麟版白屏时用）                                                                                                |
| `OPENAI_API_FORMAT`                                                         | 主模型接口格式：`chat_completions` / `responses`                                                                               |
