cd /news/developer-tools/auto-copy-openai-codex-dictation-to-… · home topics developer-tools article
[ARTICLE · art-33129] src=gist.github.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

Auto-copy OpenAI Codex dictation to clipboard on macOS using Karabiner-Elements

A developer created a Karabiner-Elements rule that intercepts OpenAI Codex's dictation shortcut (Ctrl-Shift-V) and automatically copies the transcribed text to the macOS clipboard. The rule polls the transcription history file for new entries and pipes the text to pbcopy, enabling Codex dictation to be used in any application.

read1 min views1 publishedJun 18, 2026

OpenAI Codex's dictation shortcut (Ctrl-Shift-V

) transcribes your voice and writes the result to ~/.codex/transcription-history.jsonl

— but doesn't copy it to the clipboard. This setup does.

This means you can use Codex to transcribe text to anywhere in your laptop, not just as prompts to Codex!

Karabiner-Elements interceptsCtrl-Shift-V

, passes it through to Codex as normal, then on key-up fires a background script viato_after_key_up

.- The script snapshots the current line count of the transcription file, then polls every 0.5s for a new entry (up to 30s timeout).

  • When a new line appears, it extracts the text

field, pipes it topbcopy

, and sends a macOS notification with the copied text.

mkdir -p ~/.local/bin
chmod +x ~/.local/bin/codex-transcription-copy
mkdir -p ~/.config/karabiner/assets/complex_modifications

Then in Karabiner-Elements → Complex Modifications → Add rule, enable "Codex: copy transcription on Ctrl-Shift-V release".

Karabiner logs script output to /tmp/karabiner-codex-copy.log

.

── more in #developer-tools 4 stories · sorted by recency
── more on @openai codex 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/auto-copy-openai-cod…] indexed:0 read:1min 2026-06-18 ·