Loading repository dataβ¦
Loading repository dataβ¦
adeelahmad / repository
π€ AI-powered macOS automation framework - Control your Mac with natural language using GPT models. No code needed, just English instructions!
Native macOS UI Automation with GPT-Powered Intelligence
Key Features β’ Architecture β’ Installation β’ Usage β’ Roadmap β’ Contributing
MacPilot is a state-of-the-art macOS UI automation framework that combines native Apple technologies with GPT intelligence to enable human-like interaction with your Mac. Write instructions in plain English, and let MacPilot handle the automation.
graph TD
A[Natural Language Instructions] --> B[GPT Analysis Layer]
B --> C[Action Planning]
C --> D[Actor System]
D --> E[UI Interaction Layer]
E --> F[State Management]
F --> B
# Install from PyPI
pip install macpilot
# Or install from source
git clone https://github.com/adeelahmad/macpilot.git
cd macpilot
pip install -e .
from macpilot import MacPilot
async def main():
pilot = MacPilot()
# Simple automation
await pilot.execute("Open Chrome and search for 'Python tutorials'")
# Complex workflows
await pilot.execute("""
1. Find all PDFs in Downloads
2. Create a folder named 'Documents'
3. Move PDFs older than 30 days
4. Create a summary spreadsheet
""")
if __name__ == "__main__":
asyncio.run(main())
from macpilot.patterns import register_pattern
@register_pattern("login_flow")
async def handle_login(username: str, password: str):
return [
{"action": "click", "target": "username_field"},
{"action": "type", "text": username},
{"action": "click", "target": "password_field"},
{"action": "type", "text": password},
{"action": "click", "target": "login_button"}
]
User Interface
Core Features
Documentation
Testing
Contributions are welcome! Areas we're focusing on:
Check our Contributing Guide for details.
MacPilot is MIT licensed. See LICENSE for details.
Made with β€οΈ by the MacPilot Team