{"id":28003619,"url":"https://github.com/schbenedikt/ai-agent","last_synced_at":"2025-05-09T02:15:31.627Z","repository":{"id":286837925,"uuid":"962727175","full_name":"SchBenedikt/ai-agent","owner":"SchBenedikt","description":"Testing macOS AI Agent with Google Gemini Live Web API","archived":false,"fork":false,"pushed_at":"2025-04-09T18:43:16.000Z","size":39,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-09T02:15:25.769Z","etag":null,"topics":["agent","ai","free","gemma","google","google-ai","macos"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SchBenedikt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-08T15:26:26.000Z","updated_at":"2025-05-08T06:24:13.000Z","dependencies_parsed_at":"2025-04-08T16:43:19.010Z","dependency_job_id":null,"html_url":"https://github.com/SchBenedikt/ai-agent","commit_stats":null,"previous_names":["schbenedikt/ai-agent"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SchBenedikt%2Fai-agent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SchBenedikt%2Fai-agent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SchBenedikt%2Fai-agent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SchBenedikt%2Fai-agent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SchBenedikt","download_url":"https://codeload.github.com/SchBenedikt/ai-agent/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253176444,"owners_count":21866143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai","free","gemma","google","google-ai","macos"],"created_at":"2025-05-09T02:15:31.083Z","updated_at":"2025-05-09T02:15:31.621Z","avatar_url":"https://github.com/SchBenedikt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gemini Assistant macOS App\nA native macOS application that connects to Google's Gemini AI. The app automatically accesses your camera and microphone to provide a seamless AI assistant experience.\n![image](https://github.com/user-attachments/assets/8fa117b0-f19a-4aca-a684-619789f2af1d)\n\n## Features\n- Audio input through your microphone\n- Visual context through your camera\n- Text responses displayed in the app\n- Audio responses played through your speakers\n\n## Setup\n\n### Prerequisites\n1. Python 3.8+\n2. A Google Gemini API key\n\n### Installation\n1. Install the required dependencies:\n   ```\n   pip install google-generativeai opencv-python pyaudio pillow mss PyQt5 pynput python-dotenv pyinstaller\n   ```\n\n2. Set your Gemini API key as an environment variable (optional):\n   ```\n   export GEMINI_API_KEY=\"your-api-key-here\"\n   ```\n   If not set as an environment variable, the app will ask for it on startup.\n\n### Building the macOS App\n\nThere are two ways to build the app:\n\n#### Method 1: Using PyInstaller (Recommended)\nPyInstaller creates a more reliable standalone application that better handles dependencies:\n\n1. Make sure PyInstaller is installed:\n   ```\n   pip install pyinstaller\n   ```\n\n2. Run the build process:\n   ```\n   # First clean any previous builds\n   rm -rf build dist\n   \n   # Create the app bundle using the spec file\n   pyinstaller gemini.spec\n   ```\n\n3. The app will be created as `Gemini Assistant.app` in the `dist` folder\n\n#### Method 2: Using py2app (Alternative)\nThis method may have issues with certain dependencies:\n\n1. Make sure py2app is installed:\n   ```\n   pip install py2app\n   ```\n\n2. Run the build process:\n   ```\n   # First clean any previous builds\n   rm -rf build dist\n   \n   # Create the app bundle\n   python setup.py py2app --alias\n   ```\n\n3. The app will be created in the `dist` folder. Using the `--alias` flag creates a development version that's easier to build.\n\n### Running Without Building\nTo run directly without building:\n```\npython app.py\n```\n\n## Usage\n1. Launch the app\n2. Grant camera and microphone permissions when prompted\n3. The app will automatically start listening and capturing video\n4. Click the button to toggle listening on/off\n\n## Troubleshooting\n\n### Common Issues\n- **Missing Modules**: If you encounter \"No module named 'xyz'\" errors, install the missing dependency with `pip install xyz`\n- **Permission Issues**: If camera or microphone access doesn't work, check your macOS privacy settings\n- **Build Errors**: If PyInstaller fails with recursion errors, try using the '--debug' flag to identify problematic dependencies\n\n### Building Tips\n- The PyInstaller spec file (`gemini.spec`) is configured to include all necessary dependencies\n- For development, the alias mode (`--alias`) creates a simpler app bundle that points to your source files\n- For distribution, use the default (non-alias) mode to create a completely standalone application\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschbenedikt%2Fai-agent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschbenedikt%2Fai-agent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschbenedikt%2Fai-agent/lists"}