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.2.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.2-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nuralshell-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 718d3700c60a0d2f1741cb2f7857f75567899964748db5b5771c745367fd0670
MD5 157eecc0667380f2c1dabf67082c7553
BLAKE2b-256 31a0c0e81918d6672bb4e85c4b1f2bbb87cd6ae43c7398be091f70ce711fc76c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nuralshell-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17d319cbea380ca44f51dfbe6e22e36a98fbb3b3a1af85ed495c1d6fbe8a7ed9
MD5 268c5f105e2396d5b216c30f3e0fb524
BLAKE2b-256 a11e37b9e869220e827a1f9a79876663af1df2f011e386992c06edd1965fe4b0

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