// 开始使用get started

三步,把 AI 终端装进自己的机器 Three steps to your own AI terminal

优先建议自建 omts 服务端(也可以先用官方试用地址体验),再装客户端,最后把目标机器接进来。 We recommend a self-hosted omts server (or try the official trial servers first), then install the client and add a machine.

1服务端:优先自建,或先试用体验Server: self-host (recommended), or try first

推荐Recommended

自建 omts(推荐)Self-host omts (recommended)

自己掌控服务端和数据,可以按需开启加密中继(直连不通也能连)、配置飞书/钉钉/GitHub 等第三方登录,或部署多节点高可用。Keep full control of your server and data. Enable encrypted relay for restricted networks, set up third-party sign-in, or deploy multiple nodes for high availability.

试用 · 未开启 relayTrial · Relay disabled

官方试用 omtsOfficial trial omts

免部署快速试用。试用地址未开启 relay,只提供 P2P 打洞辅助;如果客户端与目标设备间无法完成 P2P 打洞,可能无法正常体验。不活跃账号会定期清理,长期或生产使用请自建服务端。客户端登录页的 Server 栏可填:Zero-setup trial instances. Trial servers have relay disabled and only assist P2P hole-punching — if your client and device cannot establish a direct P2P path, connection may fail. Inactive accounts are periodically cleaned up; self-host for long-term or production use. Enter one of these in the Server field:

中国大陆Mainland Chinahttps://public.ohmyterm.cn
美国UShttps://public-us.ohmyterm.com
01

单机部署Single node

在一台 Linux 服务器上用 Docker Compose 启动 omts 和 MySQL,由 nginx 处理 HTTPS。omts 默认只监听本机(127.0.0.1),容器以非 root 用户运行并移除多余权限。适合个人与小型团队。On one Linux host, run omts and MySQL with Docker Compose and let nginx handle HTTPS. omts listens on 127.0.0.1 only, and containers run as non-root with capabilities dropped. Suits individuals and small teams.

02

集群部署(高可用)Cluster (high availability)

需要高可用时,在云商负载均衡(LB)后挂多个 omts 实例,共用高可用 MySQL(如 RDS)。节点本身无状态,滚动升级时目标机器上的任务不受影响,客户端会自动重连。For HA, place several omts instances behind a cloud load balancer backed by a managed HA MySQL (such as RDS). Nodes are stateless: during rolling upgrades, tasks keep running on the target machines and clients reconnect automatically.

给 CLI 智能体的部署提示词Deployment prompt for CLI agents
按下面的指南在这台 Linux 主机部署 omts。Deploy omts on this Linux host using the guide below.
https://ohmyterm.com/docs/omts.html#deploy

下载后校验发布文件,配置 MySQL 和 nginx。部署完成后,Verify the release download and configure MySQL and nginx.
检查 /healthz 和 /api/v1/version,再用客户端验证登录和连接设备。Check /healthz and /api/v1/version, then verify sign-in and device connection from the client.

2客户端下载Download the client

下载源Source

Windows

x64(x86_64)构建,zip 压缩包,附 SHA-256 校验和。x64 (x86_64) build as a zip, with a SHA-256 checksum.

桌面版免费下载。GitHub Releases 和 Gitee 镜像都提供桌面安装包及 SHA256SUMS.txt 校验文件。The desktop app is free. GitHub Releases and the Gitee mirror carry desktop downloads and SHA256SUMS.txt checksum files.

3添加机器,创建会话Add a machine, open a session

如果电脑能通过 SSH 连上目标机器,直接在桌面客户端的「添加机器」向导里选 SSH 安装即可;也可以按下面三步手动安装。 If you can reach the target over SSH, choose SSH install in the desktop client's Add a machine wizard. You can also follow these three steps to add it manually.

1在客户端里点「添加机器」,复制向导生成的一次性安装命令(1 小时内有效)。In the client, click "Add a machine" and copy the generated install command (one-time token, valid for 1 hour).
2到目标机器上执行这条命令完成安装与注册。注册后会生成 16 位设备指纹,保存在 ~/.omt/bootstrap-commit(也可运行 omtc init --bootstrap-only 查看)。Run that command on the target machine to install and register omtc. Its 16-character fingerprint is saved at ~/.omt/bootstrap-commit (or run omtc init --bootstrap-only to print it).
3回到客户端创建会话。首次连接时填入目标机器上的 16 位指纹完成身份核验(类似 SSH 首次连新主机,防止中间人冒充),之后再连无需重复核对。Back in the client, open a session. On first connect, enter the machine's 16-character fingerprint to verify its identity (TOFU, similar to SSH) and prevent man-in-the-middle attacks.

在目标机器上查看指纹:Reading the fingerprint on the target machine:

omtc@build-server
# 在目标机器上执行「添加机器」生成的安装命令,然后查看指纹:on the target machine, run the install command from the client, then check the fingerprint:
$ cat ~/.omt/bootstrap-commit
a3f9 27c1 88b4 0e6d   # 16-character device fingerprint
✓ registered — omtc is up and will start on boot

首次连接弹出的信任确认框有三个选项:填入指纹(推荐)、跳过验证(客户端会直接信任第一次收到的公钥,存在中间人风险)、拒绝(默认安全选项)。如果你没动过这台机器,指纹却对不上,请点拒绝并排查原因。The first-connect trust dialog gives three choices: enter the fingerprint (recommended), skip verification (the client trusts the first key it receives, carrying MITM risk), or reject (safe default). If you have not changed the machine and the fingerprint does not match, reject and investigate.