Skip to main content

A powerful CLI agent for system automation and file management.

Project description

NuralShell: Your AI-Powered Terminal Assistant

NuralShell is an intelligent AI assistant designed to streamline your terminal interactions, especially for server deployment and automation tasks. It operates with root permissions, allowing it to execute shell commands (with your explicit confirmation for safety), read and write files, and maintain a persistent chat history across sessions. NuralShell is flexible, supporting both OpenAI/ChatGPT and Google Gemini as its underlying AI model.

Features

  • Intelligent Command Execution: Safely execute shell commands with user confirmation.
  • File System Interaction: Read and write files to manage code, configurations, and data.
  • Persistent Chat History: Maintains conversation context across sessions for a seamless experience.
  • Configurable AI Model: Easily switch between OpenAI/ChatGPT and Google Gemini, with simple API key and model name setup.
  • Modular Architecture: Built with a clean, modular design using sub-agents for specific tasks like command execution and file I/O.

Installation

You can install NuralShell as a Python package using pip.

pip install NuralShell

Configuration

Upon its first run, NuralShell will guide you through a one-time setup process to configure your AI model (ChatGPT or Gemini), API key, and desired model name. This configuration is saved in ~/.NuralShell/config.json.

You can also set your API keys as environment variables:

  • For OpenAI/ChatGPT: OPENAI_API_KEY
  • For Gemini: GEMINI_API_KEY

Usage

Once installed, you can launch NuralShell directly from your terminal:

nuralshell

Basic Interaction

NuralShell acts like a conversational terminal. You can ask it to perform tasks, run commands, or read/write files.

You: List all files in the current directory.
NuralShell: Do you want to Execute `dir`? (Y/N)
You: Y
NuralShell: (output of `dir` command)

Example Commands

  • Read a file:
    You: Read the content of `my_script.py`
    
  • Write to a file:
    You: Write "Hello, World!" to `output.txt`
    
  • Execute a shell command:
    You: Update the system packages.
    NuralShell: Do you want to Execute `sudo apt update && sudo apt upgrade -y`? (Y/N)
    You: Y
    

Exiting NuralShell

To exit the NuralShell session, simply type exit or quit:

You: exit

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nuralshell-0.1.5.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nuralshell-0.1.5-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file nuralshell-0.1.5.tar.gz.

File metadata

  • Download URL: nuralshell-0.1.5.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for nuralshell-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c91be5ec84258910891afb81aec9885c092ad18242f23b4708c789df1adf6408
MD5 e487e25e3b4853b24b0b721cd090ae35
BLAKE2b-256 19b7329fdd051dc550b6be6fc87bfefdf7aeef7c8cc26c2a6729b6f566e33099

See more details on using hashes here.

File details

Details for the file nuralshell-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: nuralshell-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for nuralshell-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b6e90212313cd50cebb4a0a88a8fae991ddab0d648891eceff3478feebd1bea9
MD5 b02586ba08959db1e0db1ff90015a0e1
BLAKE2b-256 e3c629903f469d1534e83d925b52f98a756bb23f4716c1664ec0768ebdd3244c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page