# AutoKey

AutoKey tool for keyboard\-driven desktop automation or reusable text expansion\.

ID: Q752 · Revision: 800

Type: software · License: GPL\-3\.0[^autokey] · Status: active

Website: https://github.com/autokey/autokey



AutoKey is an open\-source desktop automation utility for Linux X11 sessions\. It combines reusable text phrases with Python scripts, activated through abbreviations, hotkeys or menus\. Its platform requirement is significant: the project warns that it does not function correctly when Wayland replaces Xorg\.[^autokey][^autokey-guide]

## Text phrases and triggers

A phrase can insert a block of text, while an abbreviation or key combination selects when it runs\. Phrases can also contain dynamic placeholders for values such as the current date\. Folders organize phrases and scripts, allowing one collection to serve repeated writing tasks across applications instead of duplicating snippets in each editor\.[^autokey-guide]

## Python automation

Scripts are Python programs that can launch applications, manipulate windows and send keyboard or mouse input\. AutoKey supplies APIs for common desktop interactions, while Python provides the broader programming environment\. A shared script is consequently executable automation, not merely a text template, and its behavior depends on the code and available dependencies\.[^autokey-guide][^autokey-api]

## Sending text and filtering

The engine API offers different phrase\-delivery modes, including simulated typing and clipboard\-based pasting\. Window filters use regular expressions against titles or application class information, and a phrase can require confirmation before expansion\. These options help adapt a snippet to the target application rather than assuming one insertion method works identically everywhere\.[^autokey-api]

## Configuration migration

The beginner guide describes each phrase or script as a body file plus associated metadata\. Both parts need to move together to preserve the item and its trigger configuration\. It also notes that configuration directories are not continuously rediscovered in the described workflow, so copying files alone may not immediately refresh the running application\.[^autokey-guide]

## Licensing and display system

The project identifies GPLv3 licensing and Python 3 support\. Its X11 dependence is an operational limit, not simply a packaging preference\. A Linux distribution's name does not establish compatibility if the active desktop session uses Wayland; the display system must be part of the requirement before selecting AutoKey\.[^autokey]

## Substitution considerations

AutoKey can substitute for [Espanso](/espanso) for reusable text and scripted expansions on Linux X11\. It offers a Python\-centered automation model and different configuration files\. Espanso's other platforms and experimental Wayland path are outside that substitution, and existing snippet definitions require adaptation rather than being assumed directly compatible\.[^autokey][^autokey-api][^espanso][^espanso-linux]

## Capabilities and substitutions

### Wayland session support — unsupported

The project warns that the X11 application will not function correctly under Wayland\.[^autokey]

Use case: Desktop automation and text expansion · Platforms: Linux X11 · Region: Operating\-system, application and permission requirements apply

### [Substitute for Espanso](/espanso) — limited

Suitable for text and scripted expansions on Linux X11; configuration and broader platform support differ\.[^autokey][^autokey-guide][^espanso]

Use case: Reusable text expansion · Platforms: Linux X11 · Region: Operating\-system, application and permission requirements apply

## References

[^autokey]: [AutoKey](<https://github.com/autokey/autokey>) — Linux X11 requirement; Wayland limitation; Python3; GPLv3 (vendor; retrieved 2026-10-07T05:10:14Z)

[^autokey-guide]: [AutoKey beginner guide](<https://github.com/autokey/autokey/wiki/Beginners-Guide>) — Phrases, Python scripts, hotkeys and body/metadata file pairs (vendor; retrieved 2026-10-07T05:11:13Z)

[^autokey-api]: [AutoKey engine API](<https://autokey.github.io/api/engine.html>) — Send modes; window filters; phrase creation and confirmation (vendor; retrieved 2026-10-07T05:11:59Z)

[^espanso]: [Espanso](<https://espanso.org/>) — Cross\-platform text expansion; GPL3; search bar and scripts (vendor; retrieved 2026-10-07T05:10:26Z)

[^espanso-linux]: [Espanso Linux support](<https://espanso.org/docs/install/linux/>) — Separate X11 and Wayland installation paths (vendor; retrieved 2026-10-07T05:11:00Z)

Source revision: https://substitutefor.net/entities/Q752?revision=800
