- 版本
- v0.7.0
- 发布日期
- 2026-11-21
- 平台
- macOS
- 安装包大小
- macOS 4.2 MB
- 发布者
- zshnb
open-contexts
Open Contexts — Free, open source Mac window switcher
README
English | 简体中文
Open Contexts — Free, open-source Mac window switcher
Open Contexts is a free, open-source window switcher for macOS with app-name and window-title search, a persistent app bar, and saved window groups. Use ⌘Tab to switch between individual windows, organize them by task in the sidebar, and customize your keyboard shortcuts. All features are included, with no account or subscription.
Download for macOS · Official website · How to switch between windows on Mac · Compare Mac window switchers
Switch between windows on Mac
- Select a window directly. macOS
⌘Tabswitches between apps; Open Contexts lists individual windows in most recently used order, including multiple windows from the same app. - Keep windows within reach. Place the app bar on the left, right, or bottom edge of the screen, always visible or revealed when the pointer reaches the edge.
- Organize windows by task. Create groups for coding, research, or chat. Drag windows into groups, pin their order, and retain your groups after restarting the app.
Screenshots
Actual screenshots of the macOS app.
Left sidebar

The left and right sidebars are centered along the edge of the screen.
Bottom bar

The bottom bar lays out windows from left to right and is centered as a whole. When space is limited, each window item shrinks evenly so all windows fit on one line.
Window switcher

The window switcher displays windows in most recently used order. You can continue selecting and switching with the keyboard.
Mac window switcher features
| Feature | How it works |
|---|---|
| Window switching | Displays and switches individual windows rather than apps, and tracks most recently used (MRU) order |
| Screen edge sidebar | Supports the left, right, or bottom edge; always visible, shown on hover, or off; left and right sidebars can align to the top, center, or bottom; optionally shows icons alone or icons with titles |
| Keyboard switcher | Defaults to ⌘Tab for all windows and Command + backtick for the current app; both shortcuts are customizable in Settings; supports Shift for reverse switching, arrow keys, Esc, and releasing a shortcut modifier to confirm |
| All desktops | Enable Settings → General → Show windows from all desktops to group the switcher by desktop. Current desktops appear first in recent order; other desktops follow in desktop order, with windows sorted by app and title |
| Switcher display | Choose in Settings → General whether the window switcher appears on all displays, only on the primary display, or on the display with the focused window. All displays is the default |
| Sidebar shortcut | Press ⌃⌘B to keep the sidebar open on the screen under the pointer, even when set to Off; move the pointer into the sidebar and away, press again, or press Esc to return to its visibility setting. Customize or disable it in Settings → Shortcuts |
| Window search | Search by app name or window title: hold the switcher modifier, type, then release to switch; matches are highlighted in yellow |
| Search shortcut | Enable it in Settings → General, then press ⌥Space to open the switcher ready for typing, filter by name, and press Return to switch. No key needs to be held. Change the shortcut in Settings → Shortcuts |
| Active window highlight | Keeps the current window highlighted in the app bar with the same blue background and white text as the window switcher |
| Window activation | Attempts to restore minimized or hidden windows when activated |
| Window information | Displays app icons, window titles, and notification badges readable from the system Dock |
| Native macOS app | Built with Swift, AppKit, and SwiftUI; app updates use Sparkle |
Saved window groups
Keep related windows together in the sidebar, even when they belong to different apps:
- Create, rename, and delete groups; drag windows or groups to reorder them.
- Right-click a window and select “Pin” to keep it at its current position in the group during automatic updates; drag it to change that position.
- Restore group names and order after a restart, along with the group, order, and sidebar position of windows that can be matched.
Saved groups organize the window list; they do not reopen apps or restore desktop window sizes and positions.
Looking for a Contexts or AltTab alternative?
Open Contexts recreates the app bar and window switcher experience of Contexts and adds saved custom window groups. It is worth considering if you want a free, open-source tool with a compact window title list and a persistent sidebar.
Open Contexts currently does not support trackpad switching gestures. Full-screen behavior still needs verification in more real-world environments. See the Mac window switcher comparison to choose a tool that fits your workflow.
Download and install on macOS
Requirements: macOS 13 or later. macOS 13 has not yet been verified on physical devices.
- Download the Universal DMG from the latest release.
- Open the DMG, drag
OpenContexts.appto the Applications folder, and launch it from there. - Once launched, Open Contexts stays in the menu bar; it has no Dock icon or main window. Click the Open Contexts menu bar icon and select “Settings…” or “Grant Accessibility Permission…”.
- Follow the prompt to System Settings → Privacy & Security → Accessibility and grant access to Open Contexts. If the features do not take effect immediately, quit and relaunch the app.
Accessibility permission lets Open Contexts discover and switch windows and handle keyboard shortcuts. Without permission, or while the app is closed, Open Contexts does not take over ⌘Tab. If permission stops working after an update, remove Open Contexts from the Accessibility list, then add it back and grant access again.
You can open “Settings…” or select “Quit OpenContexts” from the menu bar icon at any time.
After installing a version with update support, you can select “Check for Updates…” from the menu bar and install new versions in the app. The published v0.2.1 has no updater: install the first Sparkle-enabled version, v0.3.0, manually. Subsequent updates can be installed in the app.
If macOS says the app cannot be opened
Builds without a Developer ID signature and Apple notarization may be blocked by Gatekeeper. After confirming the installer came from this repository, run:
xattr -dr com.apple.quarantine "/Applications/OpenContexts.app"
Usage
⌘Tab: Open the switcher for all windows. PressTabagain or↓to move forward; press⇧Tabor↑to move backward.Command + backtick: Open the switcher for windows of the current app.- Group mode: With the switcher open, press
←or→to enter the highlighted window’s group. Keep holding the opening modifier.Taband⇧Tabcycle within the group,←and→switch groups, and⇧←or⇧→returns to all windows. In Settings, choose the default view under General or record a single shortcut for entering and leaving group mode under Shortcuts. Turn off Enable window switcher groups in General to hide group labels and controls and disable the group mode shortcut. Groups remain available in the sidebar. - Search: Open the switcher, hold its modifier, type an app name or window title, then release to switch. Matching ignores case and uses contiguous text. Combine terms with spaces, such as
chr context.Backspacedeletes characters; clearing the query restores the list. With no matches, releasing only closes the switcher. Input supports English letters, numbers and symbols (printable ASCII). Chinese names and titles match full toneless pinyin, such asweixinorweixfor 微信; initials such aswxand Chinese input are not supported. Esc: Cancel switching. Release a modifier key of the shortcut to activate the selected window (⌘by default).- Custom shortcuts: Click either shortcut in Settings, then press a combination using Command, Option, or Control and a key. Shift is reserved for reverse switching; Esc cancels recording. Changes take effect immediately and persist after restarting. “Restore defaults” restores
⌘TabandCommand + backtick. +in the sidebar: Create a group.- Right-click a group title: Rename or delete the group.
- Drag a window to move it into a group or change its order; drag a group title to reorder groups.
- Group visibility: Hide Ungrouped and its windows or the New Group button in settings. Ungrouped hides automatically when empty; custom empty groups remain. Hiding does not delete groups or windows.
- Menu bar settings: Place the sidebar on the left, right, or bottom, and choose always visible, show on hover, or off. Left and right sidebars support top, center, and bottom alignment. The keyboard switcher stays available while the sidebar is off; reopen settings from the menu bar to enable it. Settings persist across restarts.
- Display options: Show app icons only, or icons and window titles. If the bottom bar runs out of space, it shrinks window items evenly so all windows stay on one line without scrolling.
- Sidebar width: Drag the slider in settings to resize left and right sidebars with titles from 94 to 376 points (default: 188). Changes apply immediately and persist across restarts. Bottom and icons-only layouts keep their existing widths.
When testing, first quit other tools that take over ⌘Tab to avoid global shortcut conflicts.
Build from source
Requires macOS 13 or later and Xcode Command Line Tools with Swift 5.9 support.
If you do not have an Apple developer certificate, build with ad-hoc signing:
git clone https://github.com/zshnb/open-contexts.git
cd open-contexts
swift test
SIGNING_MODE=adhoc ./scripts/build-app.sh
dist/OpenContexts.app/Contents/MacOS/OpenContexts --self-check
dist/OpenContexts.app/Contents/MacOS/OpenContexts --ui-self-check
open dist/OpenContexts.app
--ui-self-check requires a logged-in graphical session. It briefly creates and closes the sidebar and switcher without requesting Accessibility permission or installing global keyboard shortcuts.
By default, ./scripts/build-app.sh uses the sole Apple Development certificate in your keychain. If you have multiple certificates, set CODE_SIGN_IDENTITY to a certificate SHA-1 or full name. A stable development signature can reduce lost Accessibility permissions after rebuilding. Apple Development signing is still different from the Developer ID signing and Apple notarization needed for public distribution.
Data
Groups and expected positions of restorable windows are saved in:
~/Library/Application Support/OpenContexts/groups.json
The app first matches windows by app identifier and document URL, falling back to the title when there is no document URL. Windows with neither a title nor a document URL, and records in “Ungrouped” with ambiguous matches, can still be displayed and dragged during t