Pyilot is an AI-powered desktop assistant that turns your natural language commands into executable Python code — right on your computer. It uses Google Gemini AI to generate scripts, and lets you interact with your system intelligently.
- 💡 Ask anything — the AI will generate Python code to help
- 🔒 Safe Mode — detects dangerous commands and asks for your permission
- 📂 Folder Resolver — AI understands folder names like "Documents", "Downloads"
- 🧠 Persistent memory — remembers your past prompts across sessions
- 🖥️ Simple UI
- ⚡ Run code directly from inside the app
- ⌨️ Keyboard Shortcuts
- Node.js v18 or later
- Python 3 installed and available in PATH
- Internet connection (for Gemini API)
- Clone this repo:
git clone https://github.com/x0root/Pyilot cd Pyilot
- Install dependencies:
npm install cd Frontend npm install npm install --save-dev electron
- Add your Gemini API key inside pyilotCore.js:
const API_KEY = "YOUR_GEMINI_API_KEY";
- Start the app:
npm start
⌨️ Keyboard Shortcuts:
Shortcut | Action |
---|---|
Ctrl + N | Start a new chat session |
Ctrl + K | Focus input field |
Ctrl + H | Toggle sidebar |
Shift + Enter | Newline in input box |
Enter | Send message |
Type: "List all files in the Documents folder and their sizes"
Pyilot:
- Sends the prompt to Gemini
- Displays the generated Python code
- Executes the code when you confirm
- Saves the script to logs/ and remembers the command in memory.json
This project is licensed under the GPL v3 License.
This application uses Google Gemini AI via API. You must comply with Google's terms of use when using this app.
This project is still in development. If you like this project, consider giving it a ⭐!