GeminiGo is a CLI app (REPL) written in Go that allows you to interact with Gemini, a multimodal AI language model developed by Google. With GeminiGo, you can ask Gemini questions, have conversations, and generate text.
To install and test GeminiGo, you can use the following steps:
- Clone the GeminiGo repository:
git clone https://github.com/codelikesuraj/gemini-go.git
- Change directory to the GeminiGo directory:
cd gemini-go
- Copy .env.example to .env
cp .env.example .env
- Update your API key in the .env file
GEMINI_API_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXX
- Run the program
go run main.go
-
Optional: Build the GeminiGo executable:
- run the go build command
go build
- Move the GeminiGo executable to a directory that is in your PATH environment variable. For example, on Unix systems, you can move the executable to the
/usr/local/bin
directory:
sudo mv gemini-go /usr/local/bin
- Verify that the GeminiGo executable is installed correctly by running the following command:
gemini-go
You should see the application running on the foreground.
Once GeminiGo is installed, you can use it to interact with Gemini by providing a prompts after opening it.
GeminiGo is licensed under the MIT License.