CmdIME

One key per input source. No cycling. No guessing.

CmdIME gives every input source on your Mac its own key.

Install

Interactive preview: press a key or tap a cap to play a sample. Your Mac's input source is not changed.

Install

Free and open source (MIT). Requires macOS 13 or later on Apple silicon (Intel Macs are not supported). Preview build: signed, not notarized.

Paste into Terminal

curl -fsSL https://raw.githubusercontent.com/ShunmeiCho/cmd-ime/main/script/install.sh | bash
  1. Run the command in Terminal.
  2. Allow Accessibility and Input Monitoring in System Settings > Privacy & Security.
  3. Follow the in-app Setup guide to your first switch.
What the installer does

The installer downloads the latest release, verifies it against the published SHA-256, installs CmdIME.app in /Applications, links keyboardctl and opens the app. Later updates install from inside the app with Update Now.

Why not Control+Space

Control+Space cycles English, Chinese, Japanese and takes two presses to reach Japanese; CmdIME reaches Japanese with one press of Right Shift.
The demo shows the Switcher, Glass and Liquid Glass indicator themes.
  • It cycles. With three or more input sources you look at the menu bar to see where you landed. With CmdIME each key always lands on the same source.
  • Even with two input sources, it toggles. Control+Space flips to the other source, so you have to know which one you are in before you press. A CmdIME key always means the same source: press Left Command and you are in English, wherever you were before.
  • One thumb instead of a chord. Left and Right Command sit under your thumbs and take one tap; Control+Space is two keys pressed together.
  • Taps and shortcuts stay apart. Command+C, Command+Tab and other chords never count as a Command tap, so the keys you already use keep working.

How a switch works

One switch: tap the slot's key, CmdIME selects its source, checks that macOS switched and retries if not, then shows an indicator near the caret.
CmdIME selects that source directly, checks that macOS really switched, and shows a small indicator near the caret.

Inside CmdIME 0.15.0

App Rules: a slot for each app

On the Apps page, drag an app from the list, Finder or the Dock onto a slot and it gets that slot every time it comes to the front. Drag it onto Keep as is and CmdIME leaves it alone. A trigger you press still wins.

Dragging WeChat onto the Chinese slot and Chat onto the Japanese slot on the App Rules board.
Drag an app onto a slot to give it that slot.
Clicking between Code and Chat selects English and Chinese respectively, with an input-source bubble for each switch.
App Rules: Code gets English, Chat gets Chinese. Clicking between them is all it takes.

Website rules: a slot for each site

Give a website its own slot. While a page on github.com is in front, you are on English; the tab next to it can be on Chinese. A rule covers the site's subdomains unless you turn that off, and a trigger you press still wins.

Only the address, and none of it kept

CmdIME reads only the site address of the page in front and keeps none of it. It works in any browser that registers to open web links; switching was tested in Safari and Chrome.

The rule board with website chips: github.com and stackoverflow.com on English, wikipedia.org and zhihu.com on Chinese, docs.google.com on Japanese, localhost on Keep as is.
Websites sit on the same lanes as apps.

Program rules: a slot for each program in the terminal

English at the zsh prompt, Chinese inside claude. Give a program its own slot by the command it is started with; while it runs in the terminal pane in focus you are on that slot, and the rule is applied again every time the pane comes into focus. A trigger you press still wins, and a program without a rule changes nothing.

Only the program's name

CmdIME reads only the name of the program running in the terminal, never what is on the screen. It works best in Herdr: there CmdIME follows every pane, also when you come back to one that is already running its program. In other terminals zsh reports the program through one line in .zshrc, and the switch happens only when a program starts or exits.

App Memory

Let CmdIME remember the input source you last used in each app. Off by default, kept in memory only.

A default slot for other apps

Pick a slot for every other app.

The Apps settings page with App Rules and app-switching preferences.
Apps: rules and input-source preferences in one place.

Your input source returns after a password field

macOS leaves ABC selected after a password field. CmdIME switches back to the input source you had before. On by default.

Chinese in Name, ABC in Password, then Chinese returns in Note.
After a password field, the input source you had comes back.

A slot board

Installed input sources on the left, your slots on the right. Drag a source in to add a slot, drag a handle to reorder, rename, color or remove a slot, and undo a removal. The list follows System Settings as you add or remove input sources.

Three optional triggers per slot

A single tap or a double tap of one of the eight modifier keys, and a shortcut such as Option+J. Set any of them; any one you set switches to that slot.

The Slots page: input sources on the left, slots and triggers on the right, Live keys below.
The slot board in the dark appearance. Three slots here; add one for every input source you use.

A switch indicator near the caret

Eighteen built-in themes, including Glass, Liquid Glass on macOS 26 and later, paper styles, a switcher that shows every slot, a badge that shrinks it to the glyphs, a mark that keeps only the source you switched to, and two Adaptive themes, plus your own themes and fonts. Every slot takes any color you pick, and the indicator can fill with it.

All eighteen built-in indicator themes in Settings, including two Adaptive themes.
All eighteen built-in themes, as they appear in Settings.

Adaptive: from a mark to the whole row

The two Adaptive themes show the mark for a single switch and widen into the badge row when you switch again while it is up or when you Peek.

Switching to Chinese shows a single mark; switching again to Japanese expands the A 中 あ row.
One switch shows the mark; switch again while it is up and it widens into the row.

An indicator for every switch

The bubble also shows when the input source changes through Control+Space, the Globe key or the menu bar, and optionally after an app switch. Hide it in chosen apps and set how long it stays.

Peek / Caps Lock

A Peek trigger shows the current input source without switching. An optional Caps Lock bubble shows when Caps Lock turns on or off.

One bubble per switch

macOS 14 and later draw their own small badge under the text cursor on every input source change, CmdIME's switches included. While the switch indicator is on, CmdIME hides that badge for your user account, so a switch shows one bubble; turning the indicator off, or General > Quit CmdIME, brings it back. Apps pick the change up as they relaunch, and logging out applies it everywhere. With the badge hidden, Control+Space shows the older list in the middle of the screen.

Control+Space switches between Chinese and English in TextEdit, with a bubble each time.
Control+Space is not CmdIME, and the bubble still shows.

Settings you can move

Export your slots, triggers, App Rules, themes, fonts and activation recipes to a folder and import them on another Mac. Edits that keyboardctl or an editor makes to the config apply while CmdIME runs. Copy Diagnostics on About gathers what a bug report needs.

General in the dark appearance, including Export Settings and Import Settings.
General: appearance, updates, and exporting or importing your settings.

Updates from inside the app

A check every six hours by default, a summary of what changed beside Update Now, and an in-place install that keeps your permissions. CmdIME asks GitHub for the newest release (nothing else is sent), and Check automatically can be switched off in General.

A settings window that follows light and dark

Or stays on the one you pick.

Settings in English, Simplified Chinese and Japanese

The settings window follows the macOS language. To give CmdIME a language of its own, pick one in General > Language, or use System Settings > General > Language & Region > Applications.

keyboardctl

A command-line tool for scanning, binding, switching, App Rules, moving settings and diagnosing, plus the on-device reliability lab.

Troubleshooting

"CmdIME is damaged" or "Apple cannot check it for malicious software"

The app is not damaged. Preview builds are signed but not notarized, and a zip downloaded in a browser carries a quarantine flag, so Gatekeeper blocks the first launch. The "is damaged" message usually offers no Open Anyway. Either of these works:

  1. Delete the downloaded zip and app, then install with the one-line installer from Install, which does not go through the browser quarantine.
  2. Or keep the downloaded app: move CmdIME.app to /Applications, then remove the quarantine flag:

    xattr -dr com.apple.quarantine /Applications/CmdIME.app

If macOS shows "Apple cannot check it for malicious software" instead, System Settings > Privacy & Security may offer Open Anyway; removing the flag as above also works. Apple's documentation on Gatekeeper and Developer ID explains the checks.