gitwtfhub

wtf is codex-folder-move?

claudio-medeiros/codex-folder-move — explained in plain English

Analysis updated 2026-05-18

2JavaScriptAudience · developerComplexity · 2/5LicenseSetup · easy

TL;DR

A command line tool that safely moves your OpenAI Codex app history and settings when you relocate a project folder on your Mac.

Mindmap

mindmap
  root((codex-folder-move))
    What it does
      Fix broken project links
      Preserve chat threads
      Preserve trust settings
      Preserve sandbox rules
    Tech stack
      Node.js
      JavaScript
      SQLite CLI
    Use cases
      Move project folders safely
      Restore from backup
      Migrate Codex metadata
    Audience
      Codex desktop users
      Mac developers

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

Why would anyone build with this?

REASON 1

Move a Codex project folder to a new location without losing chat history.

REASON 2

Merge Codex metadata when a folder has already been relocated manually.

REASON 3

Restore Codex app state from an automatic backup after a failed migration.

REASON 4

Test folder migrations safely using disposable fixture data.

What's in the stack?

JavaScriptNode.jsSQLite

How it stacks up

claudio-medeiros/codex-folder-move3imed-jaberi/cryptography-si-isamm3imed-jaberi/koa-isomorphic-router
Stars222
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-09-252021-02-06
MaintenanceDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencedeveloperresearcherdeveloper

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

How do you spin it up?

Difficulty · easy Time to first run · 5min

Requires Node.js 18+ and the sqlite3 CLI installed, and only supports the macOS Codex desktop app.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

Wtf does this do

codex-folder-move is a command line tool for people who use the OpenAI Codex desktop app on a Mac. When you move a project folder on your computer, Codex normally loses track of it and treats the moved folder as a brand new project, losing your chat threads, trust settings, and sandbox permissions along the way. This tool fixes that by updating every place Codex stores the old folder path, so your history and settings follow the folder to its new home. You run it with a single command and it opens a menu driven interface in your terminal. You pick the folder where your projects used to live, pick where they live now, then check off which projects you want to migrate from a list that shows details and warns you about any blockers. After you review a summary of exactly what will change, you type a confirmation word to proceed. The tool works whether you have already moved the folder yourself or not: if it has not been moved yet, the tool copies it for you and verifies the copy file by file, never deleting your original. If it has already been moved, the tool only updates Codex's internal records. Before changing anything, it backs up every file it is about to touch, with checksums to confirm nothing is corrupted. If any part of the process fails partway through, it automatically restores everything from that backup so you are never left in a broken state. There is also a menu option to manually restore from any past backup, newest first, and it comes with its own standalone rollback script. The project ships with an automated test suite that builds fake, disposable copies of the Codex data folder to test against, so it never touches your real files during testing, along with a separate smoke test that drives the actual interactive menus inside a real terminal session. It is a single file with no dependencies beyond Node.js version 18 or newer and the sqlite3 command line tool. It is an independent, unofficial project not affiliated with OpenAI, and it is released under the MIT license.

Yoink these prompts

Prompt 1
Explain how codex-folder-move backs up files before making changes.
Prompt 2
Help me run codex-folder-move to migrate my Codex projects to a new folder.
Prompt 3
Walk me through restoring a Codex backup using this tool's restore menu.
Prompt 4
What happens if I move a folder before running codex-folder-move versus after?

Frequently asked questions

wtf is codex-folder-move?

A command line tool that safely moves your OpenAI Codex app history and settings when you relocate a project folder on your Mac.

What language is codex-folder-move written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, SQLite.

What license does codex-folder-move use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is codex-folder-move to set up?

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

Who is codex-folder-move for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.