Skip to content

x0root/Pyilot

Repository files navigation

Pyilot

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.

License: GPL v3 Open-Source Tested on Windows 11 Built with Electron Made with TypeScript Made with React Python Backend Gemini API


🚀 Features

  • 💡 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

Built With


Requirements

  • Node.js v18 or later
  • Python 3 installed and available in PATH
  • Internet connection (for Gemini API)

Installation

  1. Clone this repo:
    git clone https://github.com/x0root/Pyilot
    cd Pyilot
  2. Install dependencies:
    npm install
    cd Frontend
    npm install
    npm install --save-dev electron
  3. Add your Gemini API key inside pyilotCore.js:
    const API_KEY = "YOUR_GEMINI_API_KEY";
  4. 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

How It Works:

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

License

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.

Note

This project is still in development. If you like this project, consider giving it a ⭐!