@abdullahadeeb/jarvis
v1.0.1
Published
JARVIS - Your Terminal AI Companion
Downloads
2
Maintainers
Readme
JARVIS - Your Terminal AI Companion
JARVIS is a command-line interface (CLI) application that lets you chat with Google's Gemini AI directly from your terminal. It uses Google's Gemini API via an OpenAI-compatible interface.
Features
- Interactive Chat Mode: Have a back-and-forth conversation with the AI
- Single Query Mode: Get quick answers without entering a chat session
- Secure API Key Storage: Your Google API key is stored securely in your home directory
Installation
# Install globally from npm
npm install -g @abdullahadeeb/jarvisUsage
Interactive Chat Mode
Start an interactive chat session with the AI:
jarvisThis will start a conversation where you can type messages and receive responses from the AI. Type exit, quit, or bye to end the session.
Single Query Mode
Get a quick answer without starting a chat session:
jarvis "What is the capital of France?"First-Time Setup
On your first run, JARVIS will prompt you to enter your Google API key. This key will be saved in your home directory (~/.jarvis_api_key) for future use.
To get a Google API key:
- Go to the Google AI Studio
- Create an account or sign in
- Navigate to the API section and create a new API key
Troubleshooting
API Key Issues
If you need to update your API key, you can delete the existing key file and run JARVIS again:
- On Windows: Delete
%USERPROFILE%\.jarvis_api_key - On macOS/Linux: Delete
~/.jarvis_api_key
For Developers
Local Development Setup
Clone the repository:
git clone https://github.com/AbdullahAdeebx/JARVIS cd JARVISInstall dependencies:
npm installLink the package locally to test it:
npm linkNow you can run the CLI tool:
jarvis
Requirements
- Node.js 14.0 or higher
License
MIT
