Powered by Google Gemini

Your AI Pal with Code Execution

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.

TerminalPal Lite (PowerShell)
PS C:\> irm https://terminalpal.dev/install.ps1 | iex
Installing TerminalPal Lite (PowerShell)...
Installation complete! Type 'tpal' to get started.
PS C:\> tpal "How do I reverse a string in PowerShell?"
To reverse a string in PowerShell, you can use:
$reversed = [char[]]$string[($string.length-1)..0] -join ''
PS C:\>
TerminalPal Full (Node.js)
$ npm install -g terminalpal
$ tpal config set gemini.apiKey YOUR_API_KEY
$ tpal "How do I reverse a string in JavaScript?"
To reverse a string in JavaScript, you can use:
const reversed = str => [...str].reverse().join('');
$
Features

Gemini-Powered Terminal Experience

Latest Version: v1.3.3

Harness the full power of Google's Gemini AI directly in your terminal with these powerful features.

Easy Updates

Keep TerminalPal up-to-date with a simple pal update command.

Code Execution

Execute code snippets directly in your terminal with AI assistance.

Execute Code Securely

Run and test code snippets directly in your terminal with the /exec command. Supports multiple languages with sandboxed execution.

New

Gemini Pro Integration

Powered by Google's most advanced AI model for coding assistance, explanations, and natural language understanding.

Powered by Google

/model <model_id>

Switch to a different AI model.

/update or /upd

Check for and install the latest updates.

Smart Code Completion

Get intelligent code suggestions and completions as you type, with support for multiple programming languages.

Productivity

Secure & Private

Your API keys and code stay on your machine. We don't store, log, or track your data or commands.

Security First

Context-Aware

Maintains conversation context and understands your project structure for more relevant assistance.

Smart

Developer Tools

Built-in tools for debugging, testing, and optimizing your code with AI-powered insights.

Productivity

Ready to boost your terminal productivity?

Install Now

TerminalPal Lite

100% PowerShell - No dependencies required

1

Install via PowerShell Gallery (Recommended)

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

2

Or Install from Source

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

3

Set Your API Key

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

4

Start Using TerminalPal Lite

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

Lite Version Features

  • No dependencies - 100% pure PowerShell
  • Works offline after initial setup (model dependent)
  • Lightweight and fast
  • Perfect for quick tasks and scripts
  • Windows PowerShell 5.1+ compatible
  • Automatic updates with tpal update

TerminalPal Full

Advanced features with Node.js

1

Install via npm (Recommended)

Install the latest version globally using npm:

# Install the latest version globally npm install -g @stevexinpa/terminalpal

Requires Node.js 18+

2

Or Install from Source

Clone and install the development version:

git clone https://github.com/spargatgroup/terminalpal.git cd terminalpal/full npm install npm link
3

Set Your API Key

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

4

Start Using TerminalPal

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

Full Version Features

  • All Lite version features, plus:
  • Plugin system for extending functionality
  • Support for multiple AI providers
  • Advanced configuration options
  • Cross-platform support (Windows, macOS, Linux)
  • Automatic updates with pal update
Usage

See It In Action

Explore how TerminalPal can streamline your workflow with these examples.

tpal
$ tpal 🤖 Welcome to TerminalPal! Type '/help' for commands. You: How do I sort a list in Python? AI: In Python, you can sort a list using the sort() method or the sorted() function. # Sort in-place (modifies the original list) >>> my_list = [3, 1, 4, 1, 5, 9, 2] >>> my_list.sort() >>> my_list [1, 1, 2, 3, 4, 5, 9] # Create a new sorted list (original remains unchanged) >>> another_list = [3, 1, 4] >>> sorted_list = sorted(another_list) >>> sorted_list [1, 3, 4] # Sort in descending order >>> my_list.sort(reverse=True) Type '/examples' for more code examples or '/exit' to quit. You:
tpal "your question"
$ tpal "What's the command to list files in Linux?" To list files in Linux, you typically use the ls command. Here are a few common variations: - ls : Lists files and directories in the current location. - ls -l : Lists in long format, showing details like permissions, owner, size, and modification date. - ls -a : Lists all files, including hidden ones (starting with a dot). - ls -lh : Long format with human-readable file sizes (e.g., KB, MB). # You can also ask coding questions directly $ tpal "How do I create a new React component?" Here's how to create a new React functional component: // MyComponent.js import React from 'react'; const MyComponent = () => { return (

Hello, World!

); }; export default MyComponent;
/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