Supercharge your terminal with Gemini AI. Execute code, debug, and get AI assistance directly in your terminal. The only AI terminal assistant with secure code execution capabilities.
Latest Version: v1.3.3
Harness the full power of Google's Gemini AI directly in your terminal with these powerful features.
Keep TerminalPal up-to-date with a simple pal update
command.
Execute code snippets directly in your terminal with AI assistance.
Run and test code snippets directly in your terminal with the /exec
command. Supports multiple languages with sandboxed execution.
Powered by Google's most advanced AI model for coding assistance, explanations, and natural language understanding.
/model <model_id>
Switch to a different AI model.
/update
or /upd
Check for and install the latest updates.
Get intelligent code suggestions and completions as you type, with support for multiple programming languages.
Your API keys and code stay on your machine. We don't store, log, or track your data or commands.
Maintains conversation context and understands your project structure for more relevant assistance.
Built-in tools for debugging, testing, and optimizing your code with AI-powered insights.
100% PowerShell - No dependencies required
Install directly from PowerShell Gallery:
# Install from PowerShell Gallery
Install-Module -Name TerminalPal -Scope CurrentUser -Force
# Import the module
Import-Module TerminalPal
If prompted about installing from an untrusted repository, type 'Y' and press Enter
Clone and install manually:
# Clone the repository
git clone https://github.com/spargatgroup/terminalpal.git
# Navigate to lite version
cd terminalpal\lite
# Run the install script
.\install.ps1
This will add TerminalPal Lite to your PowerShell profile
Configure your Gemini API key:
# Interactive setup (recommended)
tpal "Please set my Gemini API key"
# Or manually
tpal config set gemini.apiKey YOUR_API_KEY
Get your API key from Google AI Studio
Start an interactive chat session:
# Start interactive chat
tpal chat
# Or ask a question directly
tpal "How do I reverse a string in PowerShell?"
# Get help with commands
tpal help
After installation, you may need to restart your PowerShell session for changes to take effect
tpal update
Advanced features with Node.js
Install the latest version globally using npm:
# Install the latest version globally
npm install -g @stevexinpa/terminalpal
Requires Node.js 18+
Clone and install the development version:
git clone https://github.com/spargatgroup/terminalpal.git
cd terminalpal/full
npm install
npm link
Configure your Gemini API key:
# Interactive setup (recommended)
pal "Please set my Gemini API key"
# Or manually
pal config set gemini.apiKey YOUR_API_KEY
Get your API key from Google AI Studio
Start an interactive chat session:
# Start interactive chat
pal
# Or ask a question directly
pal "How do I reverse a string in JavaScript?"
# Get help with commands
pal help
pal update
Explore how TerminalPal can streamline your workflow with these examples.
/help
Basic
Show available commands and usage information
/model
Model
Switch between different AI models (e.g., gemini-pro, gemini-1.5-flash)
/config
Config
Show or modify configuration settings
/clear
Basic
Clear the chat history and start a new conversation
/save
Chat
Save the current conversation to a file
/exec
Tool
Execute a code block provided by the AI or written by you
/update
or /upd
System
Check for and install the latest updates