Overview
Export bookmarks from Chrome and Brave, let Codex CLI merge and regroup copies of the files in one local folder, then import the result after you have checked it.
Problem or Objective
More in Personal Productivity
AI Agents and Models
Tools and Integrations
- Tools
- Codex CLI · Chrome · Brave
- Prerequisites
- Codex CLI installed and signed in, bookmark export files from both browsers, and backups of the originals.
How It Works
Check how each browser exports bookmarks to a file, export from Chrome and from Brave, and copy the exports into a new empty folder, keeping the originals elsewhere. Open Codex CLI in that folder and set it to ask before editing. Ask it first for a report only: how many entries each file has, which addresses appear more than once, which entries look broken from their text alone, and a proposed folder structure. Correct the proposal and approve it. Codex then writes a new bookmarks file beside the originals, plus a list of every entry it merged, moved or left out. Compare the counts, spot-check the list, and try the import somewhere disposable first, such as a spare browser profile if yours offers one. Delete or replace nothing in your everyday profile until the imported copy looks right.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Codex CLI.
- Connect the toolsConnect the tools this workflow relies on: Codex CLI, Chrome, Brave.
- Check the prerequisitesCodex CLI installed and signed in, bookmark export files from both browsers, and backups of the originals.
- Gather your detailsCollect what the prompt asks for: Exported Chrome bookmarks file, Exported Brave bookmarks file, How you want folders organised, Name for the new combined file.
- Run the starter promptPaste the starter prompt below into Codex CLI and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at developers.openai.com before you rely on it.
Practical Starter Prompt: Merge and regroup two bookmark exports
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
This folder holds bookmark exports: [Exported Chrome bookmarks file] and [Exported Brave bookmarks file]. Do not modify them. First report the number of entries in each, exact duplicate addresses, and near-duplicates, and propose folders based on [How you want folders organised]. Wait for my approval of the proposal. Then write [Name for the new combined file] in a format the browsers can import, along with changes.csv listing every entry that was merged, moved or dropped and why. Do not visit the links, and do not delete any file.Keep Codex in a mode that asks before editing, approve the folder proposal before it writes anything, and import the result yourself only after checking the counts and the change list.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Codex CLI documentation describes inspecting files, making edits and running tools on your machine, with permission controls. It says nothing about browser bookmarks, so the export and import steps are yours to check in each browser.
Limitations and Considerations
Bookmark exports can reveal private interests, internal addresses and links that carry access codes, so remove those before Codex reads the folder and check how your account handles the content it reads. Keep untouched copies of both exports. Matching addresses is not the same as matching pages, so decide yourself which near-duplicates to keep. Check your plan and usage limits. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About openai/codex
Meet the New Codex CLI (opens in a new tab)
Published by the project’s official channel.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Codex CLI | ChatGPT Learn (opens in a new tab)
Project documentation · developers.openai.com · Undated · Source checked 2 Dec 2026, 16:09 UTC
What this source supports
- Let Codex inspect files, make edits, and run the tools already installed on your machine.
- Choose when Codex can edit files or run commands without asking, and inspect the active sandbox and writable roots before you continue.
- Create Git checkpoints before and after a task so you can revert changes.
