Voice coding with Claude Code, Cursor and Codex

Coding agents take plain-language instructions, which makes them easy to talk to. Claude Code, Cursor and Codex each have their own voice input now. These steps follow each tool's own documentation.

Updated

  1. Claude Code

    Run /voice, then hold Space while you speak. Release to stop.

  2. Cursor

    Click the microphone in the chat input, or press Cmd Shift Space in the editor.

  3. Codex

    In the ChatGPT desktop app, select Dictate in the composer and start talking.

Code by voice all day? Try Monologue

Built-in voice input works inside one tool. Monologue dictates into Claude Code, Cursor, your terminal and every other app on your Mac, with a coding mode that keeps code and commands as you say them.

Feature comparison between Monologue and Claude Code /voice
FeatureMonologueClaude Code /voice
Dictation into Claude CodeYes — availableYes — available
Works in your editor, terminal and every other appYes — availableNo — not available
Works in SSH sessionsYes — availableNo — not available
Works with an API key, Bedrock or VertexYes — availableNo — not available
Custom dictionary for names and jargonYes — availableNo — not available
Runs on Linux and WindowsNo — not availableYes — available
Included with your Claude sign-inNo — not availableYes — available
What it costsClaude Code's voice dictation comes with a Claude.ai sign-in and doesn't use your messages or tokens. Monologue starts with a free trial of 1,000 dictation words and 10 recorded notes. Monologue Pro is $15/month billed monthly, or $144/year billed annually ($12/month equivalent, save 20%).

Voice mode in Claude Code

Claude Code has dictation built in. Your speech is typed into the prompt, where you can edit it before you send.

Turn it on with /voice

Run /voice in Claude Code. It stays on between sessions, and /voice off turns it off. Words land at your cursor, so you can mix talking and typing. Anthropic's voice dictation docs cover every option.

Hold or tap

Hold mode is the default: hold Space, wait for listening…, speak, then let go. Run /voice tap to tap once to start and again to send.

Change the key

Bind voice:pushToTalk to another key in ~/.claude/keybindings.json, such as meta+k. A key with a modifier starts recording straight away.

If it won't start

Voice mode needs a Claude.ai sign-in. It isn't available with an API key, Bedrock, Vertex or Foundry, or in SSH and cloud sessions. On a Mac, allow your terminal app in System Settings > Privacy & Security > Microphone.

Audio goes to Anthropic's servers to be transcribed. Recording stops after 15 seconds of silence or two minutes, and Escape cancels it. In the VS Code extension, press Cmd D with Claude focused, as the extension docs say.

Voice input in Cursor and Codex

Both let you dictate a prompt, and both now offer a separate live voice chat with the agent.

Dictate in Cursor

Click the microphone in the chat input, or press Cmd Shift Space in the editor. In the Agents Window, hold Ctrl M while you talk. Cursor's docs suggest naming files and functions as you speak and checking the text before you send. For a live call with the agent, use voice chat instead.

Dictate in Codex

In the ChatGPT desktop app, select Dictate in the composer and talk. You can review the text before sending. In the Codex CLI, /voice starts a spoken conversation rather than dictation.

How to talk to a coding agent

Describe the change, not the syntax. “Add a loading state to the settings page while the profile fetch runs” is easier to say and easier for the agent to act on than spelling out the code.

Name the file, function or component you mean, and say what done looks like, such as which test should pass.

Read the text before you send it. A misheard function name costs the agent a wrong turn, so fix it by typing, then send.

Code by voice in any editor on a Mac

Outside these tools, your Mac's own voice features work in Terminal and every editor.

Mac Dictation

Types what you say anywhere you can type. Turn it on in System Settings > Keyboard > Dictation, then press the Microphone key. Our Mac dictation guide has the steps.

Voice Control

Controls your Mac by voice. Its Swift mode writes Swift code as you read it out loud, and its spelling mode enters one character at a time. Apple's Voice Control guide lists the commands.

A dictation app

Apps such as Monologue type into every editor and terminal, and can keep code and commands as you say them.

Frequently asked questions

Does Claude Code have a voice mode?

Yes. Run /voice in Claude Code, then hold Space while you speak. Your speech is typed into the prompt, so you can edit it before sending. It needs a Claude.ai sign-in.

Why is /voice missing or not working in Claude Code?

Voice mode needs a Claude.ai sign-in. It's hidden or unavailable when Claude Code uses an API key, Bedrock, Vertex or Foundry, and it doesn't work in SSH or cloud sessions. On a Mac, also allow your terminal app in System Settings > Privacy & Security > Microphone.

Does Claude Code's voice mode cost extra?

No. Anthropic says transcription doesn't use your Claude messages or tokens and doesn't count toward your usage limits.

Does Cursor have voice input?

Yes. Click the microphone in the chat input, or press Cmd Shift Space in the editor. In the Agents Window, hold Ctrl M while you talk. Cursor also has a separate voice chat for live calls with the agent.

Can I code by voice on a Mac without a coding agent?

Yes. Mac Dictation types what you say in any editor or terminal, and Voice Control's Swift mode writes Swift code as you read it aloud.