UNPKG

genkit-shell

Version:

AI CLI interpreter using Genkit and Gemini

91 lines (62 loc) โ€ข 1.59 kB
# Genkit Shell **AI-powered terminal interface using Genkit + Gemini + node-pty** A CLI tool that brings AI assistance directly into your terminal. Built with Genkit, Google Gemini, and a real bash session using `node-pty`. ![log](https://github.com/user-attachments/assets/e4cf6af1-f554-4be3-bddc-44a55b667c5a) --- ## ๐Ÿš€ Features - `!<your command>` โ†’ Converts natural language into real shell commands via AI. - `?` โ†’ Starts an interactive AI chat session. - `model?` โ†’ Switch between different Gemini AI models. - `lang?` โ†’ Choose AI communication language (EN, RU, DE, FR, ES, UA, ZH, JA). - `autostart-remove` โ†’ Removes Genkit Shell from auto-start in `.bashrc`. - Full bash environment using `node-pty`, not emulated. --- ## ๐Ÿ›  Installation ```bash npm install -g genkit-shell ``` Or run via `npx` (without installing globally): ```bash npx genkit-shell ``` --- ## ๐Ÿงช Usage Start the shell: ```bash genkit-shell ``` Then you can use: ### AI Commands ```bash !create a folder called logs and move all .txt files into it ``` ### Ask about commands ```bash ping? ``` ### Switch AI Model ```bash model? ``` ### Change Language ```bash lang? ``` ### Start Chat Mode ```bash ? ``` Exit with `exit`. --- ## ๐Ÿ” Environment Variables Create a `.env` file in your project root: ``` GOOGLE_API_KEY=your_google_genai_api_key_here ``` You can get your key from [Google AI Studio](https://makersuite.google.com/). --- ## ๐Ÿ’ป Author Created by [CyberScoper](https://github.com/CyberScoper) On npmjs [Npmjs](https://www.npmjs.com/package/genkit-shell) ---