auto-resume
English (US) · 简体中文
Source code on GitHub · Downloads · Issues

A Ride On The "Gentle" Luminous Dragon, drawn by GPT Image
Leave a prompt for one of your Codex chats, and have it sent for you later: right after your usage
limit resets, or at a time you pick.
Scope: it works only with Codex chats (sessions). ChatGPT workspace and document-style sessions
aren’t supported.
App languages: English, 简体中文, 日本語, and, needing proofreading, Español, Português (Brasil)
and 한국어. If you speak one of these, corrections are welcome: the text is in
desktop/ui/locales.
Independent project. Not affiliated with, endorsed by, or sponsored by OpenAI. Codex and ChatGPT are
trademarks of OpenAI.
Why I built this
I kept running into Codex’s usage limit in the middle of long tasks, often late at night. The only way
to continue was to stay up until the limit reset, just to type “continue”. Codex used to let you
schedule a task for a single chat, but a recent update (26.1117.31558) removed that option.
So I built a small tool that waits for the reset and hands the next prompt to Codex for me.
⚠️ How this was made: read before using
This project was built almost entirely by AI coding agents (“vibe coding”). The code was written,
reviewed, tested and debugged by DeepSeek, Anthropic’s Claude and Google’s Gemini. I directed the
work, set the rules and tested it; I did not write the code by hand.
If you’d rather not use software made this way, please don’t use this tool.
What it does
It lives on your Codex window. A small pill sits on Codex itself, so you schedule from the
chat you’re already in: no separate app to switch to, no chat IDs to look up, no panel to dig out.
- Click the pill: the chat you’re looking at is already chosen. Keep the ready-made prompt
(“Continue the task from where you left off.”) or write your own, pick when to send it, and click
Queue. The pill then counts down to the next scheduled prompt.
- After reset (the default) sends the prompt once your usage window has reset, and shows you the
actual reset time. You can also pick a time, or send now.
- It recognises which chat is open in Codex, so you rarely have to choose one. When it isn’t sure, it
asks.
- At the chosen time it hands the prompt to Codex with Codex’s own
codex queue command. Codex
runs the turn, in that chat, with that chat’s own settings and permissions.
- You can attach files and images to the prompt, as in Codex’s own message box.
- You can add the chat’s Codex skills to the prompt, shown as pills as in Codex.
- Everything stays on your computer. There’s no account, server or telemetry.
Status: works on macOS and Windows 11, both tested on real machines. Waking a
sleeping computer at the scheduled time isn’t supported yet (see Limitations).
What you need
- The Codex desktop app, signed in with your ChatGPT account (an API-key login is refused).
- The Codex CLI, recent enough to have
codex queue.
- macOS:
codex installed the usual way; the app finds it in common install locations.
- Windows:
codex.exe. With an npm install, the app uses the codex.exe inside the package
rather than the codex.cmd shim, which can’t pass a multi-line prompt safely.
- If it’s somewhere unusual, set
AUTO_RESUME_CODEX to its full path.
Getting it
Download it from the Releases page. The builds aren’t code-signed yet, so your system will
warn you the first time (see the code signing policy).
- Windows: either the installer (
…-windows-x64-setup.exe: installs for your user only, no
admin rights, with a Start menu entry and an uninstaller) or the portable zip (…-windows-x64-portable.zip: unzip
anywhere and run auto-resume-desktop.exe). Both include a README.txt. When SmartScreen warns,
choose More info → Run anyway.
- macOS (Apple Silicon): open the
.dmg and drag Auto Resume to Applications. The first
time you open it, macOS blocks it; go to System Settings → Privacy & Security and click
Open Anyway. On an Intel Mac, build it from source. Then choose
Grant Accessibility… from its menu-bar icon, or add the app under
System Settings → Privacy & Security → Accessibility (called Device Control & Data Access
on macOS 26/27). It uses that permission to see which chat is open.
Removing it:
- Windows, installed copy: uninstall from Settings → Apps. This also removes Open at login and
the app’s browser cache, and asks whether to delete your schedules and settings too.
- Windows, portable copy: quit it, run
clear_reg.cmd in its folder (removes Open at login), then
delete the folder. To remove everything, also delete %LOCALAPPDATA%\auto-resume (schedules and
settings) and %LOCALAPPDATA%\io.github.rigel-prometheus.auto-resume (browser cache).
- macOS: choose Quit auto-resume and move the app to the Trash; macOS 13 and later remove its
login item with it (on macOS 12, untick Open at login first). Like most Mac apps, it leaves its
folders in your Library; to remove everything, also delete
~/Library/Application Support/auto-resume (schedules and settings),
~/Library/WebKit/io.github.rigel-prometheus.auto-resume and
~/Library/Caches/io.github.rigel-prometheus.auto-resume (browser data).
Using it
- Open the chat you want to continue in Codex.
- Click the pill. The panel opens with that chat already chosen. If it’s the wrong chat, click
its name (▾) to pick another; the list shows each chat’s folder and when it was last edited.
- Write the prompt. Make it something Codex can do without asking you anything (see below).
- Choose when: After reset (default), At time…, or Now.
- Click Queue (or ⌘↵ / Ctrl+↵).
A few more things:
- Editing: open the panel on a chat that already has a schedule and it opens for editing.
+ New adds another one for the same chat; Delete removes the open one. N scheduled at
the bottom lists all of them.
- Unsent prompts: a prompt you closed the panel on without queueing (or a schedule you edited
without updating) comes back when you open the panel on that chat again. It’s kept only in the
app’s memory, never on disk, so quitting the app clears it.
- Attachments: the paperclip in the prompt box opens a drop box that stays in front while you drag
files over from Finder or Explorer (or use Browse…); you can also paste a screenshot. Click a
file to show it in Finder or Explorer, or an image to preview it. A file is read by Codex when the
prompt runs; an image is sent with the prompt.
- Skills: type
$ in the prompt, or click the cube next to the paperclip, and pick one of the
chat’s skills: it shows as a pill. Where two skills have the same name, the list shows the folder
each comes from; a pill whose name two skills share turns amber until you pick which one (click
it). The prompt keeps skills as text Codex understands: $name, or [$name](path) for a shared
name. The list is read again each time the panel opens, so a newly installed skill appears without
restarting, and pills copied between this panel and Codex’s message box paste back as pills.
- Moving the pill: drag it anywhere on the Codex window. Marks on the window’s edges show the
corners and edges it can attach to; the longer blue one is where it attaches. It keeps that place
as Codex moves or resizes. Keep it near the input box, for example. Reset position in the menu
puts it back.
- The menu (menu-bar icon on macOS, notification-area icon on Windows) also has Appearance,
Language (English, Español, Português, 日本語, 한국어, 简体中文), Open at login, Check for
updates…, About (version and license) and Quit. Codex’s own theme can’t be read, so set
Appearance to match it if needed.
Please keep in mind:
- Keep the app running. Prompts are only sent while it’s running. Quitting it pauses sending; your
schedules are kept and go out once it runs again.
- Keep Codex open, with that chat open since Codex last started. Codex only runs a queued prompt
in a chat it currently has loaded. After Codex restarts (an update, a reboot), a waiting prompt
stays in Codex’s queue until you open that chat again; opening Codex alone isn’t enough. This
was measured and documented by codex-auto-resume-windows; see its
“Please read this limitation first”.
- Write prompts that need no answers or approvals. auto-resume can’t see or answer Codex’s
questions or permission prompts; Codex’s own window handles those.
- Try it on a throwaway chat first, with a harmless prompt like
Reply with exactly: test-ok.
Queued prompts really run, with that chat’s permissions.
How it stays safe
- It uses public Codex interfaces. It does not read existing conversation content, and it does
not modify existing turns, settings, approvals or message contents. For an existing chat it adds
only the scheduled user message to Codex’s queue; Codex owns delivery and the resulting new turn.
Images use Codex’s experimental queue API; that call is still only a queue insertion. It does not
call
turn/start, and it does not read Codex’s internal files, settings or credentials.
- To see which chat is open, it reads what Codex shows on screen through the operating system’s
accessibility interface (the one screen readers use). It only compares that with your chat names
and keeps nothing but the chosen chat’s ID; it never stores or logs message text.
- When it can’t tell which chat is open (no match, two chats with the same name), it asks you instead
of guessing.
- Each schedule is sent at most once. If a send may or may not have gone through, it’s marked
unknown and never retried automatically.
Privacy
- All data stays local:
~/Library/Application Support/auto-resume on macOS,
%LOCALAPPDATA%\auto-resume on Windows. Nothing is written into Codex’s own folders.
- No telemetry, and no network access of its own: the only network traffic is what the Codex CLI
itself does. The one exception is Check for updates…, and only when you choose it: one
request to GitHub’s public API for this project’s latest release (GitHub sees your IP address, as
with any web request). Nothing checks on its own. If a newer version exists and you click
Install, it downloads that release’s installer from this project’s GitHub releases, checks it
against the checksum GitHub publishes (on macOS also that it’s signed like the app you have), and
installs it. To see what’s in it before installing, click What’s new for that release’s page
on GitHub. The Windows portable copy only offers the release page.
- A text-only prompt is passed to
codex queue as a command-line argument (it has no other input
option), so while that command runs, other programs on your computer can see the prompt in the
process list. Image schedules use the local app-server instead of argv.
Text-only prompts are capped at 20,000 characters; image schedules use Codex’s app-server limit.
Limitations
- It can’t wake a sleeping computer. Its keep-awake option only stops an awake computer from going
to sleep while it waits (and for 5 minutes after sending), and a closed laptop lid still sleeps. For
the turn itself, turn on Codex’s own keep-awake setting.
- Codex updates can change what’s on screen. If chat recognition stops working after an update,
you can still pick the chat yourself (see also Troubleshooting).
- Codex chats only. It can schedule only the chats the public Codex CLI lists. Other kinds of
sessions in the ChatGPT app (for example workspace or document-style ones) don’t appear in its chat
list and can’t be scheduled. That would need a public interface from OpenAI.
- No new-chat creation yet. It can only schedule an existing chat. Creating a brand-new chat
automatically is pending: the experiments did not produce a reliable public path, so it is not
part of this release.
- No code signing yet, on either platform, so your system warns you the first time (see
Getting it).
FAQ
How do I make Codex continue automatically after my usage limit resets? Open the chat in the
Codex app, click the auto-resume pill on the Codex window, keep the ready-made prompt (“Continue the
task from where you left off.”) or write your own, leave After reset selected and click Queue.
auto-resume sends it with Codex’s own codex queue command as soon as the usage window resets.
Can I send a prompt to Codex at a specific time? Yes: choose At time… instead of After reset,
or use auto-resume schedule --thread <chat-id> --message "…" --at "2026-12-01 09:30".
Does Codex have to be open? Yes. Codex runs a queued prompt only in a chat it has loaded since it
last started, and auto-resume (the desktop app, or auto-resume run) has to be running at that time.
It can’t wake a sleeping computer.
Does it read my Codex login or files? No. It never reads Codex’s credentials, settings or internal
files; it uses public Codex interfaces and never reads existing conversation content. See
How it stays safe.
Does it work with the Codex CLI alone, or with ChatGPT chats? It schedules prompts for chats
(sessions) of the Codex desktop app, and needs the Codex CLI installed for codex queue. ChatGPT
workspace and document-style sessions aren’t supported.
Which systems? macOS (Apple Silicon; Intel by building from source) and Windows 10/11.
Can an AI agent use it? Yes, through the command-line tool: see For AI agents.
Troubleshooting
- The pill doesn’t appear: make sure Codex is the app in front, and on macOS that Auto Resume has
the Accessibility permission (Device Control & Data Access on macOS 26/27). The data folder (see
Privacy) has a short log,
desktop.log, of start-up and when the pill was shown or
hidden; it has no chat names or prompts.
- The wrong chat, or none, is recognised: click the chat name in the panel to pick it. To see what
went wrong, run
auto-resume detect (see Chat recognition).
- A prompt wasn’t sent: check that the app was running and Codex open at the time, and run
auto-resume list; the schedule states explain what happened.
Credits
@YanagionSabigi · what each contributed
Full source, build, release, command-line, detection and testing documentation is in the GitHub README.