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.3.tar.gz (2.6 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.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nuralshell-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 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.3.tar.gz
Algorithm Hash digest
SHA256 fca61c280fed35aed0b00bf3fd9d22dcda37601ded352c0884abff2323eaf5d8
MD5 5155e1f8d29c840ec27f723fe3aadb9e
BLAKE2b-256 58af8197690e1e26e29abef62d7a4e2b272300aa86d2f77e34cea3aa5e307269

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nuralshell-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf18bb28845a9a6357177a427183e2f1ca6f2e46dea104dfd9cc877d8cea8b62
MD5 171b046404ee1e824a8e28222c0bfdd6
BLAKE2b-256 3c6f2c1f899677f1e2fae5b5c8837a8ac47392a923a3cb73e143825d44e6a89d

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