# Codex CLI in your Mac’s notch

> Watch Codex CLI sessions in the notch, allow or deny tool calls, check your Codex limits and jump back to the right terminal. macOS 12 and later.

Source: https://voidisland.app/codex · Updated 2026-11-23

Void Island shows every Codex CLI session in the notch and tells you when one needs you. If you turn on island approvals, you can allow or deny Codex's requests from the notch instead of finding the terminal first.

Codex support is close to Claude Code, with a few differences: approvals are allow or deny only, and Codex has to trust the hooks once before they run.

Using the Codex desktop app or the ChatGPT app? See [Codex desktop and ChatGPT](https://voidisland.app/chatgpt.md).

## What works with Codex CLI

| Feature | Codex CLI |
|---|---|
| Live status | Yes |
| Approvals on the island | Yes, after you turn it on. Allow or deny only; you can't edit the command |
| Dangerous-command guard | Flagged in red on the island; Codex is not stopped |
| Usage | Codex limit windows and token totals, read from local files |
| Jump back | Exact tab in Terminal and iTerm2, exact terminal in Ghostty |
| SSH remote | Yes |

## Approvals

Island approvals are **off by default**. Turn on **Answer approvals and questions on the island** in Settings → AI assistants → Approvals and alerts.

When Codex asks for permission, the request pops up in the notch. Press ⌘Y to allow or ⌘N to deny. Unlike Claude Code, you can't edit the command first.

The Codex prompt in your terminal keeps working. Whichever side answers first wins.

**Dangerous commands.** Void Island spots commands like `rm -rf`, force pushes or `git reset --hard`. For Claude Code it can make them ask first; Codex doesn't support that yet, so Codex sessions get a red Danger flag instead.

Approvals and jumping back need a license. After the 2-day trial, free mode shows only the current session, its notifications and its usage. See [License](https://voidisland.app/docs/license.md) and [Approvals and questions](https://voidisland.app/docs/approvals-and-questions.md).

## How it connects

Click **Connect** in Settings → AI assistants, or in the first-run setup. Codex is only connected if `~/.codex` already exists on your Mac.

- Void Island adds hooks to `~/.codex/hooks.json` for 10 Codex events (session start and end, prompts, tool calls, permission requests, compaction, subagent stop and stop).
- Before the first write, the original file is copied to `~/.codex/hooks.json.void-island.bak`.
- Every hook calls `~/.void-island/bin/void-island-hook`, which sends the event over a local socket and always exits with 0. If the island isn't running, it does nothing.

**Trust the hooks.** Codex only runs hooks you have trusted. After connecting, Settings → AI assistants shows **Confirm the Codex hooks** with a **Trust Hooks** button. If automatic confirmation doesn't work, do it in Codex: run `/hooks` in Codex CLI and trust Void Island, or in the Codex desktop app go to Settings → Hooks.

If another tool later edits `hooks.json`, Codex may stop running the hooks and your sessions disappear from the island. Settings → AI assistants then shows **Re-confirm the Codex hooks**.

**To disconnect**, open Settings → AI assistants, click **Disconnect**, then **Confirm Disconnect**. Only Void Island's entries are removed. The backup stays on disk. See [Uninstall](https://voidisland.app/docs/uninstall.md).

## Jump back to the session

Press ⌘G on a session, or ⌘-click it:

- **Terminal and iTerm2:** the exact tab.
- **Ghostty:** the exact terminal.
- **VS Code, Cursor, Windsurf, WezTerm, Warp, Zed, kitty, Alacritty:** the app comes to the front.

With Accessibility permission, Void Island also moves to the right desktop space. See [Jump back](https://voidisland.app/docs/jump-back.md).

From the island you can send a message to a Codex session, or interrupt it with Esc, in tmux, iTerm2 and Ghostty. In Terminal you can send but not interrupt. You can also start a new Codex session from the island in Ghostty, iTerm, Terminal or tmux.

Threads you archive in Codex are cleared from the island too.

## Usage and limits

Void Island reads your Codex limit windows and token totals from the newest session file in `~/.codex/sessions/`. It only reads local files; nothing is requested from OpenAI.

The meters sit next to the cat, and you get one alert when any window reaches 90%. See [Usage](https://voidisland.app/docs/usage.md) and [Check your Codex usage](https://voidisland.app/guides/check-codex-usage.md).

## Notifications and sounds

- The island pops up when a session needs you or finishes.
- Built-in 8-bit sounds, or your own sound pack in `~/.void-island/sounds/`.
- A macOS notification when a terminal session that kept you waiting finishes or fails.
- Optional Bark push to your iPhone.

See [Notifications](https://voidisland.app/docs/notifications.md) and [Codex notifications on Mac](https://voidisland.app/guides/codex-notifications-mac.md).

## SSH remote

Add hosts from `~/.ssh/config` in Settings → AI assistants → SSH Remote and click **Deploy to hosts**. Void Island installs the hook for Codex (and Claude Code) on each host and keeps an SSH tunnel back to your Mac. It needs key-based login and `python3` on the remote. See [SSH remote](https://voidisland.app/docs/ssh-remote.md).

## Common questions

### Why don't my Codex sessions show up?

Usually because Codex hasn't trusted the hooks yet, or the trust no longer matches. Open Settings → AI assistants and click **Trust Hooks** or **Re-confirm**. If that fails, run `/hooks` in Codex CLI and trust Void Island.

### Can I edit a Codex command before approving it?

No. For Codex the island offers allow or deny. Editing the command is only available for Claude Code.

### Does Void Island send my Codex data anywhere?

No. Codex usage is read from local session files. Session content stays on your Mac unless you set up Bark push or SSH remote yourself.

### Does it work with Codex in VS Code?

Sessions show up, and jumping back brings VS Code to the front. It doesn't pick the exact editor tab.
