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
Settings on iPhone: Start over signs out of every account, forgets every computer and shows the welcome again
leepokaicb07db3aa180
diff --git a/apps/ios/App/CodyncApp.swift b/apps/ios/App/CodyncApp.swiftindex f2b040c2..be7c0e02 100644--- a/apps/ios/App/CodyncApp.swift+++ b/apps/ios/App/CodyncApp.swift@@ -15,7 +15,7 @@ struct CodyncApp: App {var body: some Scene {WindowGroup {RootView()- .id(app.contextID)+ .id("\(app.contextID)#\(app.generation)").environment(app).environment(app.accounts).environment(app.account)@@ -71,6 +71,8 @@ final class AppStore {/// The signed-in account's cloud; nil when signed out or the build has no cloud.private(set) var cloud: CloudClient?private(set) var contextID: String+ /// Bumped by Start over so the whole UI is rebuilt, even though the local context keeps its id.+ private(set) var generation = 0var tab = AppTab.botsvar showComputers = false/// The computer whose marketplace is open.@@ -119,6 +121,31 @@ final class AppStore {SharedStore.Context(accountID: userID).erase()}+ /// Settings → Start over: signs out of every account and forgets every computer, key and cache+ /// on this iPhone, then shows the welcome again. The computers keep their bots and chats.+ func startOver() async {+ let userIDs = account.accounts.map(\.id)+ await account.signOutAll()+ accounts.retire()+ PushRegistrar.shared.deactivate()+ LiveActivities.shared.endAll()+ for id in userIDs { SharedStore.Context(accountID: id).erase() }+ let storage = SharedStore.Context(accountID: nil)+ storage.erase()+ storage.bots = []+ SharedStore.activeAccountID = nil+ UserDefaults.standard.set(false, forKey: "onboardingCompleted")+ showComputers = false+ account.showSwitcher = false+ marketplace = nil+ tab = .bots+ contextID = storage.id+ (accounts, cloud) = Self.makeAccounts(storage, session: account)+ generation += 1+ BotsWidgetFeed.reset()+ WidgetCenter.shared.reloadAllTimelines()+ }+func pair(_ pairing: Pairing) async throws -> Computer {let computer = try await accounts.pair(pairing, deviceName: UIDevice.current.name, platform: "ios")Task { _ = await PushRegistrar.shared.requestAuthorization() }diff --git a/apps/ios/Views/SettingsView.swift b/apps/ios/Views/SettingsView.swiftindex 9b07e388..736a845b 100644--- a/apps/ios/Views/SettingsView.swift+++ b/apps/ios/Views/SettingsView.swift@@ -18,6 +18,7 @@ struct SettingsView: View {@State private var confirmForget: Computer?@State private var confirmRevoke: CloudComputer?@State private var access: AccessTarget?+ @State private var confirmStartOver = falsevar body: some View {CardForm {@@ -104,6 +105,20 @@ struct SettingsView: View {.buttonStyle(.plain).foregroundStyle(Palette.text)}++ CardSection {+ Button { confirmStartOver = true } label: {+ Label("Start over", systemImage: "arrow.counterclockwise")+ .foregroundStyle(Palette.danger)+ .frame(maxWidth: .infinity, alignment: .leading)+ .contentShape(Rectangle())+ }+ .buttonStyle(.plain)+ }+ }+ .codyncDialog("Start over?", isPresented: $confirmStartOver,+ message: "Signs out of every account and forgets every computer on this iPhone, then shows the welcome again. Your computers keep their bots and chats; pair again to use them.") {+ [DialogAction("Start over", destructive: true) { Task { await app.startOver() } }]}.refreshable { await accounts.refreshCloud() }.page("Computers & settings", pushed: pushed)diff --git a/apps/shared/AccountSession.swift b/apps/shared/AccountSession.swiftindex 416b9440..9dcac0c7 100644--- a/apps/shared/AccountSession.swift+++ b/apps/shared/AccountSession.swift@@ -129,6 +129,17 @@ final class AccountSession {}}+ /// Every account on this device, for starting over.+ func signOutAll() async {+ guard let clerk else { return }+ isBusy = true+ errorMessage = nil+ defer { isBusy = false }+ for session in clerk.auth.sessions {+ try? await clerk.auth.signOut(sessionId: session.id)+ }+ }+func switchAccount(_ account: Account) async {guard !isBusy, let clerk, account.id != userID else { return }isBusy = true