Hark 支持
开始使用
- 需要什么:一台可以 SSH 登录的 Mac 或 Linux 机器,装好 tmux,以及你要用的编程助手(Claude Code、Codex 等)。
- Mac 开启 SSH:系统设置 → 通用 → 共享 → 打开「远程登录」。
- 添加主机:在 Hark 主机列表点右上角「+」,填写地址、端口、用户名,选择密码或私钥登录。私钥保存在 iOS 钥匙串中。
- 不在同一个网络:可以用 Tailscale 等组网工具,或者给机器配置公网可访问的 SSH。
常见问题
切到后台后连接断了?iOS 会挂起后台 app,SSH 连接会断开。会话一直跑在服务器的 tmux 里,回到 Hark 会自动接回,不会丢失进度。想在后台也收到提醒,可以使用 Hark Push。
看不到助手状态或「允许 / 拒绝」按钮?状态识别依赖终端画面,请确认助手运行在 tmux 会话中,并且终端窗口没有被缩得太小。
对话视图是空的?对话视图读取服务器上 Claude Code 或 Codex 的会话记录,需要服务器上有 python3。
Hark Push 订阅
- 开通:在主机列表右上角「⋯」菜单中打开 Hark Push,订阅后为每台主机打开推送。Hark 会在该主机上安装一个小 hook。
- Codex:首次使用时 Codex 会询问是否信任 Hark 的 hook,在 Codex 里确认即可。
- 恢复购买:Hark Push 页面底部有「恢复购买」。
- 取消订阅:iPhone 设置 → 你的名字 → 订阅 → Hark Push。在当前周期结束前至少 24 小时取消,就不会续费。
- 退款:请通过 reportaproblem.apple.com 向 Apple 申请。
隐私
Hark 没有账号、统计、广告和追踪。详见 隐私政策。
Hark Support
Getting started
- What you need: a Mac or Linux machine you can reach over SSH, with tmux and the coding agent you want to use (Claude Code, Codex and so on).
- Enable SSH on a Mac: System Settings → General → Sharing → turn on Remote Login.
- Add a host: tap "+" on the host list and enter the address, port and username, then choose password or private-key authentication. Keys are stored in the iOS Keychain.
- Not on the same network? Use a mesh VPN such as Tailscale, or make SSH reachable from the internet.
Troubleshooting
The connection drops in the background. iOS suspends background apps, which closes the SSH connection. Your session keeps running in tmux on the server, and Hark reattaches when you come back. To get alerts while Hark is closed, use Hark Push.
No agent status or Allow/Deny buttons. Status detection reads the terminal screen. Make sure the agent runs inside tmux and the terminal is not too narrow.
The conversation view is empty. It reads Claude Code or Codex session logs on the server and needs python3 there.
Hark Push subscription
- Setup: open Hark Push from the "⋯" menu on the host list, subscribe, then turn on push for each host. Hark installs a small hook on that host.
- Codex: the first time, Codex asks whether to trust Hark's hook. Confirm it in Codex.
- Restore purchases: use "Restore Purchases" at the bottom of the Hark Push screen.
- Cancel: iPhone Settings → your name → Subscriptions → Hark Push. Cancel at least 24 hours before the current period ends to avoid renewal.
- Refunds: request them from Apple at reportaproblem.apple.com.
Privacy
Hark has no accounts, analytics, ads or tracking. See the Privacy Policy.