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.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
Computers, access requests and dialogs use Codync's own controls
leepokai9aa398d2d58c
diff --git a/apps/ios/Views/AccessRequestView.swift b/apps/ios/Views/AccessRequestView.swiftindex 64a1a82f..2b6e6533 100644--- a/apps/ios/Views/AccessRequestView.swift+++ b/apps/ios/Views/AccessRequestView.swift@@ -45,7 +45,7 @@ struct AccessRequestView: View {.multilineTextAlignment(.center)}HStack(spacing: 8) {- ProgressView()+ Spinner()Text("Waiting for approval…").foregroundStyle(Palette.secondary)Button("Cancel request", systemImage: "xmark.circle.fill") {Task {@@ -63,7 +63,7 @@ struct AccessRequestView: View {.foregroundStyle(Palette.danger).multilineTextAlignment(.center)Button("Try again") { self.error = nil }- .buttonStyle(.bordered)+ .buttonStyle(.secondary)} else if sawTicket {Text(accounts.lastError ?? "\(computer.name) didn't approve this request.").foregroundStyle(Palette.secondary)@@ -72,10 +72,10 @@ struct AccessRequestView: View {accounts.lastError = nilsawTicket = false}- .buttonStyle(.bordered)+ .buttonStyle(.secondary)} else {VStack(spacing: 10) {- ProgressView()+ Spinner()Text(computer.isOnline ? "Asking \(computer.name)…" : "\(computer.name) is offline. Turn it on to continue.").font(.subheadline).foregroundStyle(Palette.secondary)diff --git a/apps/ios/Views/BotListView.swift b/apps/ios/Views/BotListView.swiftindex 8f548c91..39e1205d 100644--- a/apps/ios/Views/BotListView.swift+++ b/apps/ios/Views/BotListView.swift@@ -83,14 +83,13 @@ struct BotListView: View {}.presentationDetents([.medium])}- .confirmationDialog("Delete \(confirmDelete?.bot.name ?? "bot")?",- isPresented: Binding(get: { confirmDelete != nil }, set: { if !$0 { confirmDelete = nil } }),- titleVisibility: .visible) {- Button("Delete bot and its conversation", role: .destructive) {- if let item = confirmDelete { accounts.store(for: item.ref.computerId)?.delete(item.bot) }- }- } message: {- Text("Files it changed on your computer stay as they are.")+ .codyncDialog("Delete \(confirmDelete?.bot.name ?? "bot")?",+ isPresented: Binding(get: { confirmDelete != nil }, set: { if !$0 { confirmDelete = nil } }),+ message: "Files it changed on your computer stay as they are.") {+ let item = confirmDelete+ return [DialogAction("Delete bot and its conversation", destructive: true) {+ if let item { accounts.store(for: item.ref.computerId)?.delete(item.bot) }+ }]}}diff --git a/apps/ios/Views/RootView.swift b/apps/ios/Views/RootView.swiftindex 005832ec..0c8d8556 100644--- a/apps/ios/Views/RootView.swift+++ b/apps/ios/Views/RootView.swift@@ -49,11 +49,7 @@ struct RootView: View {// device-level milestone across account changes and unpairing.if !empty { onboardingCompleted = true }}- .alert("Something went wrong", isPresented: errorShown) {- Button("OK", role: .cancel) {}- } message: {- Text(errorMessage ?? "")- }+ .codyncDialog("Something went wrong", isPresented: errorShown, message: errorMessage, cancel: "OK") { [] }.fullScreenCover(item: screenTarget) { target inif let store = accounts.store(for: target.computerId) {ScreenView(watching: target.request.watching)@@ -135,13 +131,13 @@ private struct UsageTab: View {.toolbar {if accounts.computers.count > 1 {ToolbarItem(placement: .topBarTrailing) {- Menu {- Picker("Computer", selection: Binding(get: { store.computer.id }, set: { id in- picked = id- accounts.storage.lastComputerId = id- WidgetCenter.shared.reloadTimelines(ofKind: "CodyncUsage")- })) {- ForEach(accounts.computers) { Text($0.name).tag($0.id) }+ DropdownMenu {+ accounts.computers.map { computer in+ MenuItem(computer.name, selected: computer.id == store.computer.id) {+ picked = computer.id+ accounts.storage.lastComputerId = computer.id+ WidgetCenter.shared.reloadTimelines(ofKind: "CodyncUsage")+ }}} label: {ComputerBadge(store.computer, size: 28)diff --git a/apps/macos/Views/ChatWindow.swift b/apps/macos/Views/ChatWindow.swiftindex 68056ba6..a28375bb 100644--- a/apps/macos/Views/ChatWindow.swift+++ b/apps/macos/Views/ChatWindow.swift@@ -348,21 +348,15 @@ private struct ChatSplitView: View {guard let target = newSessionBot else { return [] }return [DialogAction("New session") { target.store.newSession(target.bot.id); newSessionBot = nil }]}- .confirmationDialog("Delete \(confirmDelete?.bot.name ?? "bot")?", isPresented: Binding(+ .codyncDialog("Delete \(confirmDelete?.bot.name ?? "bot")?", isPresented: Binding(get: { confirmDelete != nil },set: { if !$0 { confirmDelete = nil } }- ), titleVisibility: .visible) {- if let target = confirmDelete {- Button("Delete bot and its conversation", role: .destructive) { target.store.delete(target.bot) }- }- } message: {- Text("Files it changed on your computer stay as they are.")- }- .alert("Something went wrong", isPresented: Binding(get: { errorMessage != nil }, set: { if !$0 { clearErrors() } })) {- Button("OK", role: .cancel) {}- } message: {- Text(errorMessage ?? "")+ ), message: "Files it changed on your computer stay as they are.") {+ guard let target = confirmDelete else { return [] }+ return [DialogAction("Delete bot and its conversation", destructive: true) { target.store.delete(target.bot) }]}+ .codyncDialog("Something went wrong", isPresented: Binding(get: { errorMessage != nil }, set: { if !$0 { clearErrors() } }),+ message: errorMessage, cancel: "OK") { [] }.animation(Motion.reduced(Motion.fade, reduceMotion), value: accounts.selection).animation(Motion.reduced(Motion.fade, reduceMotion), value: composing).onChange(of: accounts.selection) { _, ref in if ref != nil { composing = false } }@@ -507,14 +501,8 @@ extension ChatSplitView {fileprivate var computerPicker: some View {HStack(spacing: 8) {Text("On").foregroundStyle(Palette.secondary)- Picker("Computer", selection: Binding(get: { composeComputer ?? "" }, set: { composeComputer = $0 })) {- ForEach(onlineStores, id: \.computer.id) { store in- Text(store.hostName).tag(store.computer.id)- }- }- .labelsHidden()- .pickerStyle(.menu)- .fixedSize()+ ChoicePicker(selection: Binding(get: { composeComputer ?? "" }, set: { composeComputer = $0 }),+ options: onlineStores.map { ($0.computer.id, $0.hostName) })Spacer()}.font(.callout)diff --git a/apps/macos/Views/ComputersView.swift b/apps/macos/Views/ComputersView.swiftindex cfdae331..8e94a4d0 100644--- a/apps/macos/Views/ComputersView.swift+++ b/apps/macos/Views/ComputersView.swift@@ -84,7 +84,7 @@ struct ApprovalSheet: View {.multilineTextAlignment(.center).fixedSize(horizontal: false, vertical: true)} else {- ProgressView().controlSize(.small)+ Spinner()Text("Waiting for \(request.deviceName) to show its code…").font(.callout).foregroundStyle(Palette.secondary)@@ -93,14 +93,13 @@ struct ApprovalSheet: View {Text(error).font(.caption).foregroundStyle(Palette.danger).multilineTextAlignment(.center)}HStack(spacing: 12) {- Button("Deny", role: .destructive) { decide(false) }+ Button("Deny") { decide(false) }+ .buttonStyle(.secondary).disabled(busy)Button("Approve") { decide(true) }- .buttonStyle(.borderedProminent)- .tint(Palette.accentFill)+ .buttonStyle(.primary).disabled(busy || request.code == nil)}- .controlSize(.large)}.padding(24).frame(width: 420)@@ -272,7 +271,7 @@ private struct AccountComputerRow: View {Task { await host.accounts.cancelAccess(computer.id) }}.labelStyle(.iconOnly)- .buttonStyle(.borderless)+ .buttonStyle(.plain).help("Cancel request")}}@@ -331,30 +330,26 @@ private struct ManagedComputerCard: View {}ForEach(devices) { device in deviceRow(device) }} else {- ProgressView().controlSize(.small)+ Spinner()}}}.card().task(id: "\(store.computer.id)/\(store.connection == .online)/\(store.accessRequests.count)") { await loadDevices() }- .confirmationDialog("Revoke \(confirmRevoke?.name ?? "device")?", isPresented: Binding(+ .codyncDialog("Revoke \(confirmRevoke?.name ?? "device")?", isPresented: Binding(get: { confirmRevoke != nil }, set: { if !$0 { confirmRevoke = nil } }- ), titleVisibility: .visible) {- if let device = confirmRevoke {- Button("Revoke access", role: .destructive) {- run {- do { try await store.client?.revokeDevice(device.key) } catch { host.accounts.lastError = error.localizedDescription }- await loadDevices()- }+ ), message: "It disconnects right away and has to pair or ask again.") {+ guard let device = confirmRevoke else { return [] }+ return [DialogAction("Revoke access", destructive: true) {+ run {+ do { try await store.client?.revokeDevice(device.key) } catch { host.accounts.lastError = error.localizedDescription }+ await loadDevices()}- }- } message: {- Text("It disconnects right away and has to pair or ask again.")+ }]}- .confirmationDialog("Remove \(store.hostName) from the account?", isPresented: $confirmUnclaim, titleVisibility: .visible) {- Button("Remove from account", role: .destructive) { run { await host.unclaim(store) } }- } message: {- Text("Devices that were approved through the account lose access. Devices paired with a QR code keep it.")+ .codyncDialog("Remove \(store.hostName) from the account?", isPresented: $confirmUnclaim,+ message: "Devices that were approved through the account lose access. Devices paired with a QR code keep it.") {+ [DialogAction("Remove from account", destructive: true) { run { await host.unclaim(store) } }]}}@@ -528,11 +523,11 @@ private struct SSHProfileEditor: View {var body: some View {VStack(alignment: .leading, spacing: 16) {Text(isNew ? "Add SSH computer" : "Edit SSH computer").font(.title3.bold())- Form {- TextField("Name", text: $profile.name, prompt: Text("Optional"))- TextField("Host", text: $profile.host, prompt: Text("SSH alias or hostname"))- TextField("User", text: $user, prompt: Text("From SSH config"))- TextField("SSH port", text: $port, prompt: Text("From SSH config"))+ CardSection {+ SSHField("Name", text: $profile.name, prompt: "Optional")+ SSHField("Host", text: $profile.host, prompt: "SSH alias or hostname")+ SSHField("User", text: $user, prompt: "From SSH config")+ SSHField("SSH port", text: $port, prompt: "From SSH config")HStack {Text("Key")Spacer()@@ -543,9 +538,8 @@ private struct SSHProfileEditor: View {IconButton("Use ssh-agent", systemImage: "xmark.circle") { profile.identityFile = nil }}}- TextField("Codync port", text: $remotePort)+ SSHField("Codync port", text: $remotePort, prompt: "")}- .formStyle(.grouped)Text("Codync opens an SSH tunnel to codync-host on that computer's loopback. It uses your SSH config and ssh-agent; agent forwarding stays off.").font(.caption).foregroundStyle(Palette.secondary).fixedSize(horizontal: false, vertical: true)@@ -554,8 +548,8 @@ private struct SSHProfileEditor: View {}HStack {Spacer()- Button("Cancel", action: close).keyboardShortcut(.cancelAction)- Button(isNew ? "Add" : "Save", action: save).keyboardShortcut(.defaultAction)+ Button("Cancel", action: close).buttonStyle(.secondary).keyboardShortcut(.cancelAction)+ Button(isNew ? "Add" : "Save", action: save).buttonStyle(.primary).keyboardShortcut(.defaultAction)}}.padding(20)@@ -606,3 +600,27 @@ private extension View {.overlay(RoundedRectangle(cornerRadius: 12, style: .continuous).strokeBorder(Palette.border, lineWidth: 0.5))}}++/// A labelled text field row in the SSH card.+private struct SSHField: View {+ let label: String+ @Binding var text: String+ let prompt: String++ init(_ label: String, text: Binding<String>, prompt: String) {+ self.label = label+ _text = text+ self.prompt = prompt+ }++ var body: some View {+ HStack {+ Text(label).foregroundStyle(Palette.text)+ Spacer(minLength: 12)+ TextField(label, text: $text, prompt: Text(prompt))+ .textFieldStyle(.plain)+ .multilineTextAlignment(.trailing)+ .labelsHidden()+ }+ }+}