explaingit

coimgrain/codex-history-sync-tool-mac-account-api-switch

Analysis updated 2026-08-08 · repo last pushed 2026-05-10

44PythonAudience · generalComplexity · 1/5MaintainedSetup · easy

TLDR

A Mac app that re-links your existing local Codex Desktop chat history so old conversations reappear in the sidebar after you switch between account or API login methods.

Mindmap

mindmap
  root((repo))
    What it does
      Re-links local chat history
      Updates sidebar index
      Backs up database first
    How it works
      Reads local config files
      Identifies old login method
      Matches to current login
    Use cases
      Switch between Plus and API
      Recover hidden conversations
      Auto-sync on Codex launch
    Audience
      Mac users on macOS 11+
      Codex Desktop users
      Multi-account switchers
    Tech stack
      Python
      macOS app
      Apple and Intel builds
    Setup notes
      Download and double-click
      Unsigned app warning
      Accessibility for advanced mode

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Re-link old conversations after switching between an OpenAI Plus login and an API key login.

USE CASE 2

Recover visibility of older chat threads after changing API providers or models.

USE CASE 3

Enable auto-sync so conversations always reappear when Codex Desktop launches.

USE CASE 4

Use advanced restart mode to quit and relaunch Codex before syncing after an account switch.

What is it built with?

PythonmacOSSQLite

How does it compare?

coimgrain/codex-history-sync-tool-mac-account-api-switchajay150313/agentsre-langchaineatwhiteporridge/outlook-k12
Stars444444
LanguagePythonPythonPython
Last pushed2026-05-10
MaintenanceMaintained
Setup difficultyeasyeasyhard
Complexity1/52/54/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Download the correct version for your Mac chip and Python setup, since the app is unsigned, right-click and confirm to bypass macOS Gatekeeper the first time.

The license for this tool is not specified in the available information.

In plain English

If you use Codex Desktop on a Mac and you've ever switched between an OpenAI/Plus account login and an API login, you may have noticed your old conversations disappear from the sidebar, even though the data is still on your computer. Codex History Sync Tool fixes exactly that problem. It re-links your existing local chat history so it shows up again in Codex Desktop's sidebar after you switch login methods. The tool works by reading Codex's local configuration files and database to figure out which login method (called a "provider") your old conversations belong to, then updating the sidebar index and metadata so those conversations appear under your current login. Before making any changes, it automatically backs up your database and related files, so you can roll back if something goes wrong. You can trigger a sync with a single button, or turn on an optional setting that automatically syncs whenever Codex Desktop launches. There's also an advanced mode that quits and relaunches Codex for you before syncing, which is handy after switching accounts but not recommended for everyday use. This is for macOS users (11 or later) who run Codex Desktop and switch between account types, API providers, or models, for example, someone who logs in with an OpenAI Plus account at home but uses an API key at work, or someone who changed API providers and lost visibility of older threads. It's strictly a local tool: it doesn't sync conversations to the cloud, transfer chats between computers, or recover deleted files. Everything happens on your machine and no data is uploaded anywhere. The project ships as a standard Mac app you download and double-click. There are three versions depending on whether you already have Python installed and whether your Mac uses Apple or Intel chips, the "built-in Python" versions bundle their own runtime so you don't need to install anything yourself. Since the app isn't signed by an Apple Developer ID, macOS will warn you the first time you open it, you just right-click and confirm to get past that. The advanced restart feature requires granting Accessibility permission in macOS settings so the tool can confirm Codex's quit dialog automatically.

Copy-paste prompts

Prompt 1
I use Codex Desktop on a Mac and switched from my OpenAI Plus login to an API key login. My old conversations vanished from the sidebar but the data is still on my computer. How do I use Codex History Sync Tool to make them reappear?
Prompt 2
Help me set up the auto-sync option in Codex History Sync Tool so my old conversations automatically re-link every time I open Codex Desktop.
Prompt 3
I downloaded the Codex History Sync Tool Mac app but macOS says it can't be opened because it's from an unidentified developer. Walk me through how to open it and get it running.
Prompt 4
I want to use the advanced restart mode in Codex History Sync Tool to quit Codex, switch accounts, and relaunch. How do I grant the Accessibility permission it needs and what should I watch out for?
Prompt 5
Which version of Codex History Sync Tool should I download if I have an Apple Silicon Mac and don't want to install Python myself? Explain the difference between the three available versions.

Frequently asked questions

What is codex-history-sync-tool-mac-account-api-switch?

A Mac app that re-links your existing local Codex Desktop chat history so old conversations reappear in the sidebar after you switch between account or API login methods.

What language is codex-history-sync-tool-mac-account-api-switch written in?

Mainly Python. The stack also includes Python, macOS, SQLite.

Is codex-history-sync-tool-mac-account-api-switch actively maintained?

Maintained — commit in last 6 months (last push 2026-05-10).

What license does codex-history-sync-tool-mac-account-api-switch use?

The license for this tool is not specified in the available information.

How hard is codex-history-sync-tool-mac-account-api-switch to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is codex-history-sync-tool-mac-account-api-switch for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.