Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

Staging lives at staging-api.codync.dev

leepokai20fae806245b
diff --git a/apps/ios/Resources/AccountConfig.plist b/apps/ios/Resources/AccountConfig.plist
index 54f36659..96dfb506 100644
--- a/apps/ios/Resources/AccountConfig.plist
+++ b/apps/ios/Resources/AccountConfig.plist
@@ -5,6 +5,6 @@
<key>clerkPublishableKey</key>
<string>pk_test_c3VubnktbW9sbHVzay04NjUxLmNsZXJrLmFjY291bnRzLmRldiQ</string>
<key>cloudURL</key>
- <string>https://codync-cloud-staging.kevin2005ha.workers.dev</string>
+ <string>https://staging-api.codync.dev</string>
</dict>
</plist>
diff --git a/apps/macos/Resources/AccountConfig.plist b/apps/macos/Resources/AccountConfig.plist
index 54f36659..96dfb506 100644
--- a/apps/macos/Resources/AccountConfig.plist
+++ b/apps/macos/Resources/AccountConfig.plist
@@ -5,6 +5,6 @@
<key>clerkPublishableKey</key>
<string>pk_test_c3VubnktbW9sbHVzay04NjUxLmNsZXJrLmFjY291bnRzLmRldiQ</string>
<key>cloudURL</key>
- <string>https://codync-cloud-staging.kevin2005ha.workers.dev</string>
+ <string>https://staging-api.codync.dev</string>
</dict>
</plist>
diff --git a/cloud/README.md b/cloud/README.md
index b389ef52..1555d0da 100644
--- a/cloud/README.md
+++ b/cloud/README.md
@@ -49,7 +49,7 @@ npx wrangler d1 create codync-staging # put database_id into [env.stagi
npx wrangler d1 migrations apply codync-staging --env staging --remote
npx wrangler secret put CLERK_SECRET_KEY --env staging
npx wrangler secret put CLERK_WEBHOOK_SECRET --env staging
-npx wrangler deploy --env staging # → https://codync-cloud-staging.<subdomain>.workers.dev
+npx wrangler deploy --env staging # → https://staging-api.codync.dev
```
| Name | Kind | Purpose |
diff --git a/cloud/wrangler.toml b/cloud/wrangler.toml
index 05e9a07b..c31f19e5 100644
--- a/cloud/wrangler.toml
+++ b/cloud/wrangler.toml
@@ -32,6 +32,7 @@ crons = ["*/15 * * * *"]
[env.staging]
name = "codync-cloud-staging"
+routes = [{ pattern = "staging-api.codync.dev", custom_domain = true }]
vars = { CLERK_ISSUER = "https://sunny-mollusk-8651.clerk.accounts.dev" }
d1_databases = [{ binding = "DB", database_name = "codync-staging", database_id = "8956a285-8c88-4a5b-a05c-5f79be324448", migrations_dir = "migrations" }]
durable_objects.bindings = [{ name = "RELAY", class_name = "ComputerRelay" }]
diff --git a/docs/remote-relay-spec.md b/docs/remote-relay-spec.md
index cf82e54d..2dddf129 100644
--- a/docs/remote-relay-spec.md
+++ b/docs/remote-relay-spec.md
@@ -1092,9 +1092,9 @@ npx wrangler d1 create codync-staging # 將 database_id 填入 [env.sta
npx wrangler d1 migrations apply codync-staging --env staging --remote
npx wrangler secret put CLERK_SECRET_KEY --env staging # owner 輸入 sk_test_…
npx wrangler secret put CLERK_WEBHOOK_SECRET --env staging # owner 輸入 whsec_…
-npx wrangler deploy --env staging # → https://codync-cloud-staging.<account subdomain>.workers.dev
+npx wrangler deploy --env staging # → https://staging-api.codync.dev(custom domain;production 用 api.codync.dev)
```
-Host 測 staging:`codync-host cloud --url https://codync-cloud-staging.<sub>.workers.dev`(或 env `CODYNC_CLOUD_URL`)。Apple:`AccountConfig.plist` 的 `cloudURL`。
+Host 測 staging:`codync-host cloud --url https://staging-api.codync.dev`(或 env `CODYNC_CLOUD_URL`)。Apple:`AccountConfig.plist` 的 `cloudURL`。
### 14.2 Secrets 與 vars
@@ -1109,7 +1109,7 @@ Host 測 staging:`codync-host cloud --url https://codync-cloud-staging.<sub>.w
### 14.3 Owner 手動步驟
0. 允許實作者建立 staging 資源:`wrangler login` 已登入的 Cloudflare 帳號(或提供 `CLOUDFLARE_API_TOKEN`,權限 Workers Scripts:Edit、D1:Edit、Durable Objects)。
-1. Clerk Dashboard(staging = `sunny-mollusk-8651`):確認 iOS native app(`com.pokai.Codync.ios`)已註冊並允許 `com.pokai.Codync.ios://callback`;**Sessions → Customize session token** 加入 `{"email": "{{user.primary_email_address}}"}`;**Webhooks** 新增 `https://codync-cloud-staging.<sub>.workers.dev/v1/webhooks/clerk`,訂閱 `user.deleted`,複製 signing secret。
+1. Clerk Dashboard(staging = `sunny-mollusk-8651`):確認 iOS native app(`com.pokai.Codync.ios`)已註冊並允許 `com.pokai.Codync.ios://callback`;**Sessions → Customize session token** 加入 `{"email": "{{user.primary_email_address}}"}`;**Webhooks** 新增 `https://staging-api.codync.dev/v1/webhooks/clerk`,訂閱 `user.deleted`,複製 signing secret。
2. 輸入上面兩個 secrets。
3. Production:另建 Clerk production instance、`wrangler d1 create codync`、填 `wrangler.toml` 頂層、secrets 不加 `--env`、`npx wrangler deploy`;把 production URL 填入 `host/src/cloud.rs` 的 `DEFAULT_CLOUD_URL` 與 Release 版 `AccountConfig.plist`。
4. Apple Developer:新增 `com.pokai.Codync.ios.NotificationService` App ID 與 keychain access group 後,讓 Xcode 自動簽章更新 provisioning profiles。