Using poetry
git clone https://github.com/x404xx/Gemini-CLI.git
cd Gemini-CLI
poetry shell
poetry install
Using pip
git clone https://github.com/x404xx/Gemini-CLI.git
cd Gemini-CLI
virtualenv env
env/scripts/activate
pip install -r requirements.txt
Go to https://gemini.google.com/
- Sign in with your google account
F12
for console- Firefox Session: Go to Application → Cookies →
__Secure-1PSID
and__Secure-1PSIDTS
. Copy the value of that cookie.
Note After obtaining a
__Secure-1PSID
and__Secure-1PSIDTS
you can save them somewhere and then run the program. By default, the program will ask you for a__Secure-1PSID
and__Secure-1PSIDTS
and make the JSON file automatically for you. Alternatively, you can create the .env or JSON file (gemini_cookies.json) manually.
Authenticate Gemini-CLI with command-line ::
python -m gemini -s 'YOUR__Secure-1PSID' -st 'YOUR__Secure-1PSIDTS'
Alternatively, you can run Gemini-CLI without command-line. It will prompt you for the input __Secure-1PSID
and __Secure-1PSIDTS
::
python -m gemini
Note
This was made for educational purposes only, nobody which directly involved in this project is responsible for any damages caused. You are responsible for your actions.