Grok-iOS – 通过 ACP 从 iPhone 远程构建 Grok
Grok-iOS – remote Grok Build from your iPhone over ACP

原始链接: https://github.com/Pedroshakoor/grok-build-ios

该项目为 **Grok Build** 生态系统提供了 iOS 客户端,允许你将 iPhone 用作运行在 Mac 上的官方 Grok 智能体的移动端接口(“寻呼机”)。 **工作原理:** macOS 智能体通过 `grok agent serve` 命令运行,并使用基于 WebSocket 的 ACP 协议与 iOS 应用通信。你的 Mac 负责主要的智能体运行时,而基于 SwiftUI 开发的 iOS 应用则充当远程控制器。 **快速设置:** 1. **准备 Mac:** 确保已安装 Grok CLI 并导出了 `XAI_API_KEY`。运行 `grok agent serve` 并复制生成的 Secret。 2. **启动 iOS:** 在 Xcode(16+)中打开项目,并在模拟器或实体设备上运行。 3. **连接:** 在应用的“设置”菜单中输入 Secret。若使用模拟器,地址填 `127.0.0.1`;若使用同一 Wi-Fi 下的实体设备,请填入 Mac 的局域网 IP。 **关键细节:** * **要求:** Xcode 16+、iOS 17+ 以及 Grok CLI。 * **状态:** 开源(Apache-2.0),未上架 App Store;仅供侧载或在模拟器中使用。 * **架构:** 采用模块化结构,智能体运行于 Mac,用户界面运行于手机。

对不起。
相关文章

原文

iOS client for Grok Build.

The phone is the pager UI. Your Mac runs the official agent via grok agent serve. They talk ACP over WebSocket.

Author: Pedro Shakour
License: Apache-2.0

Welcome screen

  • macOS with Grok CLI (grok)
  • xAI API key
  • Xcode 16+ (Simulator or device)
  • iOS 17+
git clone --recurse-submodules https://github.com/Pedroshakoor/grok-build-ios.git
cd grok-build-ios

If you already cloned without submodules:

git submodule update --init --recursive

1. Start the agent on your Mac

export XAI_API_KEY=xai-...
lsof -ti tcp:2419 | xargs kill -9 2>/dev/null
grok agent serve

The CLI prints a Secret. Leave this terminal open.

Open ios/GrokApp/GrokApp.xcodeproj in Xcode → run on Simulator or device.

Or:

./scripts/run-simulator-demo.sh

In the app: Setup → paste the Secret → connectcontinueNew worktree.

Client Host Port
Simulator 127.0.0.1 2419
Physical iPhone (same Wi‑Fi) your Mac LAN IP 2419
iOS (SwiftUI)  ──ACP / JSON-RPC over WebSocket──►  grok agent serve (Mac)

Optional legacy LAN bridge (TLS + Bonjour) lives under companion/ for experiments. The default path is official grok agent serve.

Path Purpose
ios/GrokApp/ SwiftUI app
companion/ Legacy ACP TCP/TLS bridge
shared/ Themes + slash catalog from upstream
upstream-grok-build/ Pinned xai-org/grok-build submodule
scripts/ Demo + smoke helpers
docs/ Screenshots
bash scripts/check-source-rev.sh
bash scripts/smoketest.sh

Stub ACP (CI / no API key):

./scripts/run-simulator-stub-demo.sh
  • Not on the App Store — open-source / sideload / Simulator only.
  • Agent runtime stays on the Mac; the phone is a remote pager.
  • Themes and slash names are taken from upstream Grok Build.

Apache-2.0. See LICENSE, NOTICE, and THIRD-PARTY-NOTICES.

联系我们 contact @ memedata.com