# neuralagent **Repository Path**: rwwang/neuralagent ## Basic Information - **Project Name**: neuralagent - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 3 - **Created**: 2025-07-27 - **Last Updated**: 2025-10-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![NeuralAgent](docs/images/neuralagent_github_cover.jpg)](https://www.getneuralagent.com) **NeuralAgent** is your AI personal assistant that actually *gets things done*. It lives on your desktop, types, clicks, navigates the browser, fills out forms, sends emails, and performs tasks automatically using modern large language models all powered by a fast, extensible, and open architecture. NeuralAgent uses your computer both in the foreground and the background. > Real productivity. Not just conversation. --- [![Star NeuralAgent](https://img.shields.io/github/stars/withneural/neuralagent?style=social)](https://github.com/withneural/neuralagent/stargazers) > โญ๏ธ If NeuralAgent inspires or helps you, give it a star! --- In this demo, NeuralAgent was given the following prompt: "Find me 5 trending GitHub repos, then write about them on Notepad and save it to my desktop!" It took care of the rest! ![Demo](docs/images/demo.gif) --- ## ๐ŸŒ Website & Community - ๐ŸŒ **Website**: [https://www.getneuralagent.com](https://www.getneuralagent.com) - ๐Ÿ’ฌ **Discord**: [Join NeuralAgent Discord](https://discord.gg/eGyW3kPcUs) --- ## ๐Ÿš€ Features - โœ… Desktop automation with `pyautogui` - โœ… Background automation (Windows Only For Now) via WSL (browser-only). - โœ… Supports Claude, GPT-4, Azure OpenAI, and Bedrock - โœ… Modular agents: Planner, Classifier, Suggestor, Title, and more - โœ… Multimodal (text + vision) - โœ… FastAPI backend + Electron + React frontend --- ## ๐Ÿ–ฅ๏ธ Project Structure ``` neuralagent/ โ”œโ”€โ”€ backend/ # FastAPI + Postgres backend โ”œโ”€โ”€ desktop/ # ElectronJS desktop app โ”‚ โ””โ”€โ”€ neuralagent-app/ # React frontend inside Electron โ”‚ โ””โ”€โ”€ aiagent/ # Python code (pyautogui) โ””โ”€โ”€ README.md ``` --- # ๐Ÿ”ง Prerequisites Before running **NeuralAgent**, make sure the following dependencies are installed on your machine: | Tool | Purpose | Recommended Version | |-------------------|---------------------------------------------------|----------------------| | ๐Ÿ **Python** | Required for backend and local AI agent daemon | `>= 3.9` | | ๐Ÿ˜ **PostgreSQL** | Relational database used by the backend | `>= 13` | | ๐ŸŸฆ **Node.js + npm** | Needed to run the Electron + React frontend | `Node >= 18`, `npm >= 9` | --- ## ๐Ÿ“ฅ Installation Guides - **Python**: [https://www.python.org/downloads/](https://www.python.org/downloads/) - **PostgreSQL**: [https://www.postgresql.org/download/](https://www.postgresql.org/download/) - **Node.js (includes npm)**: [https://nodejs.org/en/download](https://nodejs.org/en/download) --- ## โš ๏ธ OS Notes - NeuralAgent works on **Windows**, **macOS**, and **Linux**. - However, **background automation (browser control via WSL)** is **Windows-only** for now. --- ## โš™๏ธ Setup Instructions > ๐Ÿงช Open **two terminal windows** - one for `backend` and one for `desktop`. --- ### ๐Ÿ Backend Setup 1. **Create and activate a virtual environment (optional but recommended):** ```bash cd backend python -m venv venv # Activate: source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows ``` 2. **Install requirements:** ```bash pip install -r requirements.txt ``` 3. **Create a local Postgres database. (You have to install Postgres on your computer)** 4. **Copy `.env.example` to `.env` and fill in:** ```env DB_HOST= DB_PORT= DB_DATABASE= DB_USERNAME= DB_PASSWORD= # Not Needed, Just keep empty DB_CONNECTION_STRING= JWT_ISS=NeuralAgentBackend # Generate a Random String for the JWT_SECRET JWT_SECRET= # Keep Empty, for now! REDIS_CONNECTION= # Optional: For Bedrock AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= BEDROCK_REGION=us-west-2 # Optional: For Azure OpenAI AZURE_OPENAI_ENDPOINT= AZURE_OPENAI_API_KEY= OPENAI_API_VERSION=2024-12-01-preview # Optional: OpenAI/Anthropic OPENAI_API_KEY= ANTHROPIC_API_KEY= # Optional: For Gemini GOOGLE_API_KEY= # Needed if using Ollama, customize if needed OLLAMA_URL=http://127.0.0.1:11434 # Model config per agent CLASSIFIER_AGENT_MODEL_TYPE=openai|azure_openai|anthropic|bedrock|ollama|gemini # Select one CLASSIFIER_AGENT_MODEL_ID=gpt-4.1 TITLE_AGENT_MODEL_TYPE=openai|azure_openai|anthropic|bedrock|ollama|gemini # Select one TITLE_AGENT_MODEL_ID=gpt-4.1-nano SUGGESTOR_AGENT_MODEL_TYPE=openai|azure_openai|anthropic|bedrock|ollama|gemini # Select one SUGGESTOR_AGENT_MODEL_ID=gpt-4.1-mini PLANNER_AGENT_MODEL_TYPE=openai|azure_openai|anthropic|bedrock|ollama|gemini # Select one PLANNER_AGENT_MODEL_ID=gpt-4.1 COMPUTER_USE_AGENT_MODEL_TYPE=openai|azure_openai|anthropic|bedrock|ollama|gemini # Select one COMPUTER_USE_AGENT_MODEL_ID=us.anthropic.claude-sonnet-4-20250514-v1:0 # Internal use only by Neural for optional screenshot logging during training (off by default). # This is not used by the open-source app or contributors. ENABLE_SCREENSHOT_LOGGING_FOR_TRAINING=false AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET= # For Tracing, Keep false if you don't need langsmith tracing. LANGCHAIN_TRACING_V2=false LANGCHAIN_ENDPOINT= LANGCHAIN_API_KEY= LANGCHAIN_PROJECT= # Optional for Google Login GOOGLE_LOGIN_CLIENT_ID= GOOGLE_LOGIN_CLIENT_SECRET= GOOGLE_LOGIN_DESKTOP_REDIRECT_URI=http://127.0.0.1:36478 ``` 5. **Run database migrations:** ```bash alembic upgrade head ``` 6. **Start the backend server:** ```bash uvicorn main:app --reload --host 0.0.0.0 --port 8000 ``` --- ### ๐Ÿ–ฅ๏ธ Frontend (Desktop + Electron) Setup 1. **Install dependencies in the Electron root:** ```bash cd desktop npm install ``` 2. **Navigate to the React app:** ```bash cd neuralagent-app npm install ``` 3. **Copy `.env.example` to `.env` and fill in:** ```env REACT_APP_PROTOCOL=http REACT_APP_WEBSOCKET_PROTOCOL=ws REACT_APP_DNS=127.0.0.1:8000 REACT_APP_API_KEY= ``` 4. **Go back to the desktop root:** ```bash cd .. ``` 5. **Set up the local AI agent daemon (Python service):** ```bash cd aiagent python -m venv venv source venv/bin/activate # Or use `venv\Scripts\activate` on Windows pip install -r requirements.txt deactivate ``` 6. **Start the Electron desktop app:** ```bash cd .. npm start ``` --- ## ๐Ÿค– Agents & Model Providers You can configure different model providers (`OpenAI`, `Azure OpenAI`, `Anthropic`, `Bedrock`, `Ollama`, `Gemini`) per agent in `.env`. Agent types include: - `PLANNER_AGENT` - `CLASSIFIER_AGENT` - `TITLE_AGENT` - `SUGGESTOR_AGENT` - `COMPUTER_USE_AGENT` --- ## ๐Ÿ“ฃ Contributing We welcome pull requests and community contributions! --- ## ๐Ÿ›ก๏ธ License MIT License. Use at your own risk. This tool moves your mouse and types on your behalf, test responsibly! --- ## ๐Ÿ’ฌ Questions? Feel free to open an issue or start a discussion.