A text-only Python assistant powered by the Groq API (openai/gpt-oss-20b). Runs in a terminal, responds in Arabic or English, remembers recent messages during the current session, and has /clear and /exit commands.
-
Extract the ZIP to your Documents folder.
-
Open PowerShell in the extracted
PyMindAIfolder. -
Create a virtual environment:
py -m venv .venv -
Install dependencies (without activating the environment):
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
-
Copy
.env.exampleto.env:Copy-Item .env.example .env -
Edit
.envlocally, replacingpaste_your_groq_key_herewith your real key. Never commit or share this file. -
Run:
.\.venv\Scripts\python.exe bot.py
/clear— erase the current session chat context./exit— close the bot.
.\.venv\Scripts\python.exe -m unittest discover -s tests -v- Only text is supported. You need an internet connection and a valid Groq API key.
- Groq offers a free tier with usage limits; limits can change. Consult https://console.groq.com/docs/rate-limits.
- Chat history is kept in RAM during this run, not saved to a file.
- The
.envfile is excluded by.gitignore.