Mastering SSH Commands for Google Gemini Chat Interface

Published On Mon Jul 08 2024
Mastering SSH Commands for Google Gemini Chat Interface

Help Setting Up An SSH Command Line Chat Interface To Google ...

A few days ago I mentioned setting up a command line interface (CLI) to Google Geminii. What I am looking for initially is a chat interface to and from Gemini running on a Debian sid Intel i9-13900 remote server that I can access and use by ssh. Initially, I am not looking for a self-hosted Gemini web interface running on the remote server. The ssh capable interface on the remote server should send queries to Gemini and receive and print Gemini's responses.

I am looking for a chat interface, not just something for single questions. See the discussion of the difference between single queries and chat queries at raymondcamden.com

Exploring Project Options

Eventually, I might even want a graphical interface. But for right now, I'm focusing on a four-part process:

  1. SSH from my Chromebook to a command line on the remote server,
  2. Then from the remote server to Google Gemini,
  3. Response sent from Gemini back to the remote server, and finally,
  4. Back to me via ssh -- unless I find something that provides more options while still including the ssh CLI to Gemini and back starting option.

The initial step might be to figure out what project to use. Looking around, I found projects written in different languages, including Javascript, Python, and . . . Lua + Ruby and more! I've been looking at the GitHub Topics page for Google Gemini, which lists 149 repositories.

LangChain and Google Gemini API for AI Apps

Project Discoveries

Today I found out about Nano Bots, which the linked repository says consists of Lua 66.1% and Ruby 33.9%. Nano Bots provides a command line interface for Google Gemini as well as other AIs. The video on the Nano Bots Github page seems to show exactly what I might want.

I haven't found a LuaJIT CLI interface to Gemini. I haven't found a LuaJIT interface to any AI.

I found one interface in Python, one in Go, one in Javascript, one in PHP or Laravel, one in Rust, and one in Lua/LuaJIT. It might be fun, but that seems like too many. So, which one to try first?

Choosing the Right Implementation

Does anybody know of or use additional projects which provide an SSH CLI interface to Google Gemini? Which would be the most beginner-friendly implementation?

GitHub - icebaker/nano-bots: Repository for Nano Bots' Cartridges

I hope everyone gets the servers they want! Just for fun, I shared the above OP with Google Gemini. Here is a link to what Gemini had to say: https://g.co/gemini/share/b83cedc5a61d

A kind person suggested that I try this search on DuckDuckGo: https://duckduckgo.com/?q=llm+chat+interface+command+line+for+google+gemini&ia=web

Although I already knew about the first two DDG results (which are listed in the OP), https://github.com/eliben/gemini-cli and https://github.com/reugn/gemini-cli, I did not know about the third and fourth results.

Thanks to the kind person who provided the above link to the DuckDuckGo search! <3