Aun is a local AI inline completion assistant for macOS.
It watches the focused text field through macOS Accessibility APIs, shows a quiet ghost-text suggestion near the caret, and accepts it with Tab. Inference runs locally through llama.cpp.
Warning
Aun is alpha software. Features, configuration format, and APIs may change without notice. Expect rough edges. Intended for local testing on macOS, not production use.
- macOS 14 or later
- Xcode Command Line Tools
- Nix, optional but recommended
- A local GGUF completion model
Enter the development shell:
nix developDownload the default Gemma GGUF:
make modelInstall and launch the local app:
make installRebuild from a clean app bundle and reinstall:
make clean-installThen allow Aun in:
System Settings > Privacy & Security > AccessibilitySystem Settings > Privacy & Security > Input Monitoring
Open TextEdit or another editable app, type a few characters, pause briefly, and press Tab to accept the suggestion.
If Accessibility shows an old Aun entry or the permission does not seem to apply:
make reset-accessibility
make clean-installmacOS does not allow apps to grant Accessibility permission automatically. For fewer permission resets during development, sign with a stable local code-signing identity:
AUN_CODESIGN_IDENTITY="Apple Development: Your Name (...)" make clean-install| Key | Action |
|---|---|
Tab |
Accept suggestion |
Esc |
Dismiss suggestion |
Option-Space |
Manually request suggestion |
Run checks:
make checkBuild the app bundle:
make packageAun is designed to run locally. The app does not send typed text to a network service. Model files are not committed to the repository.
