---
title: "Voice input for Claude Code and Codex on Mac · Typd"
description: "Talk to Claude Code and Codex instead of typing. Dictate into the terminal, or let the agent ask you questions by voice through Typd's local MCP server."
url: https://gettypd.app/blog/voice-input-claude-code/
---

[Blog](https://gettypd.app/blog/)

# Voice input for Claude Code and Codex on Mac

Updated 17 November 2026

You can talk to Claude Code and Codex on a Mac in two ways. The first is plain dictation: press your shortcut, say the prompt, and a dictation app types it into the terminal. The second goes the other way: the agent shows you a question through an [MCP](https://modelcontextprotocol.io/) server, you answer by voice, and the agent gets your answer as text.

Typd, a [Mac dictation app with an MCP server](https://gettypd.app/features/), does both. Dictation is free and has no limits. The MCP server is part of [Typd Pro](https://gettypd.app/pricing/). Both run on your Mac: the audio is never uploaded, and only the text reaches the agent.

## Dictate your prompts into the terminal

This is the simple way, and it works with any agent that reads from a terminal: Claude Code, Codex, Gemini CLI, Aider, or a chat box in Cursor. The dictation app does not need to know which agent you use.

1.  Install Typd and download a model. The [getting started guide](https://gettypd.app/docs/getting-started/) walks through it.
2.  Allow **Accessibility** when Typd asks, so it can paste where you type. Without it, the text is only copied. See [Permissions](https://gettypd.app/docs/permissions/).
3.  Click in the terminal window where the agent waits for input.
4.  Press your shortcut, say the prompt, and press it again. The text appears at the prompt.
5.  Read it, fix anything, and press Return yourself.

Step 5 matters with agents. A dictation app pastes text, but it does not press Return for you, so the agent never runs a prompt you have not read.

Speaking is useful for the long part of a prompt: what you want, what you tried, what the agent got wrong. It is easy to give the agent more context when you do not have to type it. Typing is still faster for a path or a single flag, so mix the two.

Typd’s dictation is free, with no limits. [See the download page](https://gettypd.app/download/).

## Let the agent ask you by voice

The second way is for long tasks. You start the agent, walk away from the keyboard, and the agent needs a decision: which port, which branch, whether to delete a file. With Typd’s MCP server, the agent can show a question and wait for your spoken answer.

The MCP server gives the agent these tools:

| Tool | What the agent gets |
| --- | --- |
| `ask_user` | Shows a question (up to 2,000 characters) and returns the text of your spoken answer. It waits 120 seconds by default, up to 900. |
| `dictate` | Listens without a question and returns what you said. |
| `transcribe_file` | The text of an audio or video file on your Mac. |
| `search_history` | Matching entries from your Typd history. |
| `get_vocabulary` | Your vocabulary terms and replacements. |

What it looks like:

1.  The agent calls `ask_user`. Typd shows its recording pill, plays the start sound, and shows a card above it: “Claude Code asks”, then the question.
2.  You answer out loud and press your recording shortcut.
3.  The pill says “Sent”, and the agent continues with your words.

The answer goes only to the agent. Typd does not paste it into the window in front, and your clipboard stays as it was. If you click ✕ on the pill and then **Delete**, the agent gets an error saying you canceled. If you are away and the timeout passes, the recording is thrown away. The full list of outcomes is in [MCP & agents](https://gettypd.app/docs/mcp/#how-a-question-ends).

### Set it up in Claude Code

Open the Typd menu bar icon › **Settings…** › **Automation**. Check that **Other apps can control Typd** is not **Off**. Its default is **Ask before recording**. Then click **Copy Claude Code Command** and run it in Terminal. For a copy of Typd in `/Applications`, the command is:

```sh
claude mcp add --transport stdio --scope user typd -- /Applications/Typd.app/Contents/Helpers/typd mcp
```

`--scope user` makes Typd available in every project. Claude Code needs no timeout setting.

To try it, type this in Claude Code: *Ask me via typd which port to use.*

### Set it up in Codex

In the same Automation pane, click **Copy Codex Config** and add it to `~/.codex/config.toml`:

```toml
[mcp_servers.typd]
command = "/Applications/Typd.app/Contents/Helpers/typd"
args = ["mcp"]
tool_timeout_sec = 960
```

Keep `tool_timeout_sec = 960`. Codex stops waiting for a tool after 60 seconds by default, and a spoken answer can take longer.

### Other MCP clients

The server is the `typd` tool inside the app, started as `typd mcp`, over stdio. Any client that can start a stdio MCP server can use it.

### Tell the agent when to ask

The agent only calls `ask_user` when it thinks it should. Say so in your prompt or in your project’s instructions file (`CLAUDE.md` for Claude Code, `AGENTS.md` for Codex). For example: “When you need a decision from me, ask me with the typd ask\_user tool and keep the question short.”

Keep questions short for a practical reason: you read the question on the card, so a paragraph is hard to take in from across the room.

### Is it safe to let an agent start a recording?

The MCP server is local. The `typd` tool talks to the app over a private socket that only your user can open. No network port is opened. You always see a recording: the pill appears and the start sound plays as soon as the agent asks. Nothing is sent until you press your shortcut. To turn off every agent, script and link at once, set **Other apps can control Typd** to **Off**. The details are in [MCP & agents › Security](https://gettypd.app/docs/mcp/#security).

## Use the command line from scripts

If you script your own workflows, the same features are on the command line, also part of Pro. `typd ask` works like `ask_user`:

```sh
typd ask "Ship it today?" --json
```

`typd dictate` listens without a question. Install the command from Settings › **Automation** › **Install Command-Line Tool**. All commands and exit codes are in [CLI & URL scheme](https://gettypd.app/docs/cli/).

## Get code words right with vocabulary

Speech models know English well. They do not know your project. Two things in Typd help:

-   **Words.** Add names spelled the way you want them: your product, your libraries, your colleagues (“Kubernetes”, “Qdrant”, “FluidAudio”). Typd fixes near misses in spacing and capitals, such as “fluid audio” → “FluidAudio”.
-   **Replacements.** For things you say differently from how you write them. “dot env” → “.env”, “package json” → “package.json”, “type d” → “Typd”. A replacement matches whole words, in any capitalization.

Vocabulary is free and applies to dictation and to answers you give an agent. You can import an existing list from superwhisper or a CSV file. See [Vocabulary](https://gettypd.app/docs/vocabulary/).

A few habits help too. Say file names as words and let the agent find the file: “the settings view” works better than spelling `SettingsView.swift`. And when exact syntax matters, type it.

## Other ways to talk to coding agents

Typd is not the only way. For editors, see [voice coding in Cursor, VS Code and JetBrains](https://gettypd.app/blog/voice-coding-mac/). These are the other options we found, each checked on the vendor’s own page on 13 November 2026.

| Option | How it works | Where the speech is transcribed |
| --- | --- | --- |
| Typd | Dictation into any app (free). MCP server with `ask_user` and `dictate` (Pro). | On your Mac |
| Claude Code `/voice` | Built-in dictation in Claude Code. Hold or tap a key to talk. Needs a Claude.ai sign-in. Stops after 15 seconds of silence or two minutes. | Anthropic’s servers |
| Codex CLI | `/voice` is a realtime voice conversation. There is no dictation into the prompt, and OpenAI has no plans for it. A dictation app can paste a prompt you review before sending. | Depends on the voice tool |
| superwhisper | Dictation into any app. A coding-agents setup, on macOS, that adds a plugin and a `superwhisper` MCP server to Claude Code. | On your Mac with local models, or in the cloud with cloud models |
| Spokenly | Dictation into any app. An MCP tool, `ask_user_dictation`, in the version from its website. | On your Mac with local models, or in the cloud with cloud models |
| Apple Dictation | Built into macOS. Types into the terminal like any other text field. | On your Mac or on Apple’s servers: Keyboard settings show which |

**Claude Code’s own voice mode** is the easiest to start with if you already use Claude Code: turn it on with `/voice`. Anthropic’s docs say it “streams your recorded audio to Anthropic’s servers for transcription” and that audio “is not processed locally”. It works on macOS, Linux and Windows, and in the VS Code extension. It has two things a general dictation app does not: it adds your project name and git branch name as recognition hints by itself, and it follows Claude’s `language` setting, in 20 languages. It also stops recording after 15 seconds of silence or two minutes in total, so a long prompt takes several takes. Typd has no time limit. If you are fine with the cloud, `/voice` needs no extra app. If you want the audio to stay on your Mac, or you use more than one agent, a dictation app is the better fit.

**Codex CLI** has `/voice`, but it is a realtime conversation, not dictation. A [GitHub issue](https://github.com/openai/codex/issues/46698) asked for dictation into the prompt, as “an editable draft the user reviews and submits themselves”. It was closed as not planned, and an OpenAI maintainer wrote on 20 September 2026: “We don’t have plans to bring dictation to the CLI.” So for dictated Codex prompts, use a dictation app such as Typd: it pastes the text into the terminal for you to review and send.

**superwhisper** has a coding-agents guide for Claude Code, Codex, Cursor and others, on macOS only. For Claude Code, it installs a plugin and a `superwhisper` MCP server. It also has AI modes that rewrite what you say, which Typd does not have. **Spokenly** offers an MCP tool that lets Claude Code, Codex and Cursor ask for spoken answers, in the version you download from its website (not the App Store version). Both also run cloud models if you choose them.

**Apple Dictation** works in Terminal too, at no cost. It has no custom vocabulary on Apple’s page, so code words and names are harder, and it has no way for an agent to ask you something.

## What Typd does not do

Typd writes down what you said. It does not rewrite your prompt with an AI model, and it has no cloud models. If you want your rambling cleaned up into a tidy prompt before the agent sees it, a tool with AI rewriting does that, and the agent itself is usually good at reading spoken text as it is. Typd runs only on Macs with Apple Silicon and macOS 26 or later.

## Questions

### Can I talk to Claude Code instead of typing?

Yes. Any dictation app that types into the terminal works: you press your shortcut, speak, and the prompt appears in Claude Code. Typd does this for free, on your Mac.

### What does Typd's MCP server do?

It gives the agent tools such as ask\_user and dictate. The agent shows you a question, you answer out loud, and the agent gets your words as text. MCP is part of Typd Pro.

### Does my voice go to Anthropic or OpenAI?

Your audio does not. Typd transcribes on your Mac and hands only the text to the agent. What the agent then does with that text, such as send it to its model, is up to the agent.

### Why does Codex need tool\_timeout\_sec = 960?

Codex stops waiting for a tool after 60 seconds by default. A spoken answer can take longer: a question waits up to 900 seconds, plus the time to transcribe.

### How do I get code words and file names right?

Add them to Typd's vocabulary, spelled the way you want them, and add replacements for words you say differently from how you write them.

## Sources

-   [Claude Code docs: voice dictation](https://code.claude.com/docs/en/voice-dictation), checked 13 Nov 2026
-   [Codex issue #46698: dictation in the CLI](https://github.com/openai/codex/issues/46698), checked 13 Nov 2026
-   [ChatGPT: voice](https://learn.chatgpt.com/docs/features/voice), checked 13 Nov 2026
-   [superwhisper docs: coding agents](https://superwhisper.com/docs/get-started/coding-agents.md), checked 13 Nov 2026
-   [Spokenly docs: voice for agents](https://spokenly.app/docs/macos/voice-for-agents), checked 13 Nov 2026
-   [Apple: dictate messages and documents on Mac](https://support.apple.com/guide/mac-help/mh40584/mac), checked 30 Oct 2026
