AFK Pilot is a free, open-source AFK button for Windows, built mainly for Minecraft-style tasks. Toggle walking, sprint, jump, eating, or clicking with one hotkey. It also works with other games and applications that accept the same Windows input methods.
It was built for Minecraft-style AFK tasks, but window targeting is generic and can be used with other Windows applications that accept standard window messages.
2.1.2 fixes an unintended Alt modifier when assigning a shortcut again. It keeps intentional Alt combinations. The previous 2.1.1 release fixed Num Lock capture.
- Download the latest release
- Windows builds and test results
- Publishing, signing, updates, and rollback
- Changes
- GitHub Releases
Download the Windows x64 ZIP from the release page, extract it, and run
AFKPilot.exe. Python is not required. Downloads are free, with no account,
subscription, ads, or telemetry. The executable is currently unsigned, so Windows
may show an unknown-publisher or SmartScreen prompt. Download only from this
repository's releases; checksums and GitHub build attestations let you verify the
package's origin. The legacy 2.1.0 package is
retained for rollback.
AFK Pilot is MIT licensed: use, modify, and share it freely while preserving the license notice. The project is offered free of charge, with no profit or monetization requirement. MIT also permits commercial reuse by others.
The runtime uses Python's standard library, Windows input APIs, and local settings. It makes no network requests and has no automatic update service. Release packages are built and tested by the public GitHub Actions workflow, include their source commit and checksums, and carry a verifiable build attestation. See verification instructions. Attestations prove build provenance; they are separate from a Windows publisher signature and do not guarantee compatibility with every game.
Report bugs and suggest improvements in GitHub Issues.
- Hold W for automatic walking.
- Optional sprint using a delayed Left Ctrl pulse.
- Optional jump by holding Space.
- Optional auto-eat by holding right-click.
- Left- or right-button auto-clicking from 0.1 to 100 CPS.
- Click and hold modes.
- Target a selected window without clicking the window you are actively using.
- Pause automatically when the selected target loses focus.
- Optional start delay and run timer.
- Configurable global toggle plus a dedicated emergency-stop hotkey.
- Automatic release of held input when stopped, paused, finished, or closed.
Background targeting uses Windows messages. Some games and applications ignore these messages while unfocused. AFK Pilot can confirm that Windows accepted a message, but it cannot guarantee that the target application consumed it.
Test automation somewhere safe before leaving it unattended. Keep the emergency stop hotkey available, and do not use the tool where automation violates the application or server rules.
For Minecraft, try foreground mode first if background mode is ignored. This is a desktop input tool, not a mod or an anti-cheat bypass; behavior depends on the game edition, version, input settings, and server rules. Other uses include repetitive input in local test applications that accept standard Windows input.
AFK Pilot requires Windows 10 or 11 and Python 3.11 or newer. Runtime code uses only the Python standard library.
py -3.11 AFKPilot.pyBuilt-in validation:
py -3.12 -m unittest discover -s tests -v
py -3.12 AFKPilot.py --self-test
py -3.12 AFKPilot.py --gui-self-testpy -3.12 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements-build.txt
.\build.ps1 -Python .\.venv\Scripts\python.exeCI uses Python 3.12.10 x64; local builds also support later 3.12 patches. The build runs tests, creates the
versioned executable, smoke-tests it, and writes the portable ZIP and SHA-256
checksums under dist/. See PUBLISHING.md for the complete path.
User settings are stored at:
%LOCALAPPDATA%\AFKPilot\settings.json
AFK Pilot imports settings from the previous AutoWalk Pro name when present.
Click the toggle shortcut, then press and release a key. A single key works; Ctrl, Alt, and Shift are optional. Escape, Cancel, or leaving the capture dialog keeps the previous key. Num Lock and Caps Lock do not become shortcut modifiers. Reassign a shortcut once after updating if 2.1.0 saved an unintended Alt modifier. W/Space are reserved for automation and F12 is reserved by Windows. If another app owns your chosen key, the previous working binding is restored. Startup alternatives are displayed and use plain function keys. A second AFK Pilot copy will not take over your shortcuts.
Settings are written atomically. Malformed settings fall back to defaults, and
unexpected UI errors stop automation. Local rotating diagnostics are saved beside
settings as afkpilot.log; there is no telemetry or automatic update service.
No software can guarantee input release after forced termination, power loss,
or OS input rejection; use the emergency stop and verify the target before
unattended use.