OCO
OpenAI Codex Overlay — A floating desktop overlay for OpenAI Codex CLI
Motivation ·
Installation ·
Features ·
Shortcuts ·
Commands ·
Development ·
한국어
What is OCO?
OCO is an always-on-top, click-through overlay that wraps OpenAI's Codex CLI in a modern desktop interface. It floats above your editor, terminal, or any app — giving you instant access to AI without switching windows.
Think of it as a HUD for AI coding — transparent when idle, responsive when needed.
Motivation
OCO was heavily inspired by Clui CC, a polished Claude Code overlay that wraps claude -p with NDJSON streaming. While Clui CC spawns individual CLI processes per tab, OCO takes a different architectural approach — it connects directly to the Codex CLI app-server via WebSocket JSON-RPC, enabling native integration with the Codex runtime without shell-level process management.
The goal was simple: bring the same floating-overlay UX to the Codex ecosystem, built Codex-native from the ground up.
Features
Core
- Transparent overlay — Click-through when not in use; interacts only where UI elements exist
- Multi-tab conversations — Run parallel Codex sessions in separate tabs
- Session persistence — Browse, search, and resume past conversations
- Live streaming — Real-time token streaming with tool call visualization
Collapsed view — minimal footprint on your screen
Interface
- Glassmorphism UI — Semi-transparent surfaces with backdrop blur and smooth animations
- Draggable window — Grab any non-interactive area to reposition
- Auto-resize — Window height adapts to content automatically
- Command palette — Quick switchers for models, reasoning levels, and session history
- Dark & Light themes — Follows system appearance
Quick settings popover — toggle theme, width, and notifications inline
Integrations
- File attachments — Attach code files and images directly to prompts
- Screenshot capture — Region-select screenshot → automatic attachment
- Clipboard paste — Paste images directly into the input
- Open in Terminal — Resume any session in a native terminal window
- Skill autocompletion — Type
$ to browse and insert Codex skills
- Voice input — Push-to-talk transcription via local Whisper (WhisperKit or whisper-cpp)
Customization
- Global hotkeys — Toggle overlay with
Alt+Space or ⌘+Shift+K (configurable)
- Adjustable opacity — Dial overlay transparency from settings
- Font presets — Choose from multiple font families and sizes
- Custom keybindings — Remap every shortcut from the settings window
- Default model & reasoning — Persist your preferred model and reasoning level
Settings — defaults, appearance, opacity, and global shortcuts
Installation
Homebrew (Recommended)
brew tap rapidrabbit76/tap
brew install --cask oco
Download
Grab the latest pre-built binary from the Releases page:
Quick start: Download the DMG → drag OCO.app to Applications → launch → toggle with Alt+Space.
Prerequisites
- macOS 12+ (Apple Silicon / Intel)
- OpenAI Codex CLI — Install guide
From Source
If you prefer building from source:
git clone https://github.com/rapidrabbit76/OpenAI-Codex-Overlay.git
cd OpenAI-Codex-Overlay
pnpm install
pnpm dev
Keyboard Shortcuts
All shortcuts are fully customizable from Settings → Shortcuts
Global
| Shortcut |
Action |
Alt+Space |
Toggle overlay |
⌘+Shift+K |
Toggle overlay (secondary) |
⌘+, |
Open settings |
Tabs
| Shortcut |
Action |
⌘+T |
New tab |
⌘+W |
Close tab |
⌘+[ / ⌘+] |
Previous / Next tab |
⌘+1–⌘+9 |
Switch to tab N |
Navigation
| Shortcut |
Action |
⌘+E |
Toggle expanded view |
⌘+K |
Clear conversation |
⌘+L |
Focus input |
Escape |
Hide window |
Ctrl+H |
Open session history |
Chord Shortcuts
Press Ctrl+X first (chord prefix), then:
| Key |
Action |
M |
Switch model |
T |
Switch reasoning level |
Slash Commands
Type / in the input bar to access built-in commands:
| Command |
Description |
/clear |
Clear conversation history |
/new |
Start a new conversation tab |
/model |
Show or switch active model |
/resume |
Open session history picker |
/fork |
Fork current conversation to new tab |
/cost |
Show token usage and cost |
/copy |
Copy latest assistant response |
/status |
Show session and app status |
/diff |
Ask Codex for git diff |
/mention |
Attach files to prompt |
/compact |
Ask Codex to compact context |
/review |
Ask Codex to review changes |
/plan |
Ask Codex to enter plan mode |
/init |
Ask Codex to generate AGENTS.md |
/fast |
Toggle fast preset (gpt-5.4 + low reasoning) |
/personality |
Show communication personality options |
/permissions |
Show approval policy settings |
/mcp |
Show MCP server configuration hint |
/exit |
Hide OCO window |
/quit |
Hide OCO window |
/help |
Show all commands |
Architecture
How It Works
- Main process spawns a Codex CLI app-server as a child process
- WebSocket transport connects to the app-server's JSON-RPC interface
- Control plane manages multiple tab sessions with a request queue
- Renderer receives normalized events via IPC and renders the streaming conversation
- Click-through is managed by tracking mouse position over UI elements in real-time
Configuration
Settings are stored at ~/.config/oco/settings.json:
{
"defaultModel": "gpt-5.4",
"defaultReasoning": "medium",
"defaultDirectory": "~",
"overlayOpacity": 1,
"rememberPosition": false,
"fontFamily": "-apple-system, BlinkMacSystemFont, ...",
"micEnabled": true,
"voiceLanguage": "",
"voiceKey": "Alt"
}
Global shortcuts are stored separately at ~/Library/Application Support/OCO/shortcut-settings.json.
Tech Stack
Development
# Development mode with hot reload
pnpm dev
# Build for production
pnpm build
# Package as macOS DMG
pnpm dist:dmg
# Package as Windows EXE
pnpm dist:win
# Run diagnostics
pnpm doctor
Debug mode:
OCO_DEBUG=1 pnpm dev
Troubleshooting
- Overlay not appearing — Check that
Alt+Space isn't captured by another app
- "Cannot connect" errors — Ensure Codex CLI is installed and
codex is in your PATH
- macOS permission dialogs — Grant accessibility permissions for global shortcuts
License
MIT © rapidrabbit76 (yslee.dev@gmail.com)