Skip to content

Ahmedmk11/shell-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShellAI

An AI-powered CLI agent that lives in your terminal. Ask it questions or have it run shell commands on your behalf.

Python License


Table of Contents


Screenshots

Agent Capabilities Overview

Startup

Automatic Git Commit and Push

Commands

File System Commands & Safety Guardrails

PR

MCP tool calls: PR Request & Issue Creation

Issue


Prerequisites

  • Python 3.13+
  • An Anthropic API key

Installation

# macOS / Linux
git clone https://github.com/Ahmedmk11/shell-ai.git
cd shell-ai
python -m venv .venv
source .venv/bin/activate
pip install -e .

# Windows (PowerShell)
git clone https://github.com/Ahmedmk11/shell-ai.git
cd shell-ai
python -m venv .venv
.venv\Scripts\Activate.ps1
pip install -e .

Configuration

Export your credentials before running:

export ANTHROPIC_API_KEY=your_api_key_here
export ANTHROPIC_MODEL=claude-opus-4-5

To avoid doing this every session, add them to your ~/.bashrc or ~/.zshrc. or create a .env file in the project root with the following content:

ANTHROPIC_API_KEY=your_api_key_here
ANTHROPIC_MODEL=claude-opus-4-5

Usage

shellai
shellai --no-exec --no-usage

Options

Flag Description
--temperature Model temperature (default: 0)
--no-exec Disable command execution
--no-path Show only current folder name instead of full path
--no-usage Hide token usage stats

Example

(ShellAI) bash ~/projects/shell-ai> how many python files are in this project?
(ShellAI) bash ~/projects/shell-ai> run git status
(ShellAI) bash ~/projects/shell-ai> clear
(ShellAI) bash ~/projects/shell-ai> exit

Type naturally to talk to the AI, or prefix with run to execute shell commands directly, bypassing the AI entirely. The agent will always show you the exact command it ran and its output.

About

AI-powered CLI agent with shell execution, safety guardrails, and MCP-based GitHub automation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors