Skip to main content

Sentinel AI CLI

PyPI Python License Open Source

Sentinel AI CLI is a professional, open-source cybersecurity tool for Linux. It provides real-time network monitoring, system information, intelligent connection analysis, and risk classification to help you secure your machine—instantly from your terminal.


Features

  • Network Scanner: List all active network connections with process details
  • System Information: Display OS, kernel, CPU, memory, and hostname
  • Connection Analyzer: Detect and classify suspicious connections with numeric risk scoring (0–100) and risk level (LOW, MEDIUM, HIGH)
  • Report Command: Show summary of total connections, external connections, risk counts, and overall system risk score
  • Explain Command: Explain if an IP/connection is potentially dangerous
  • Debug: Run and debug a Python file, catching exceptions and logging errors
  • Explain Code: Summarize and list functions/classes in a Python file
  • Improve Code: Auto-format a Python file using autopep8 for better readability
  • Colored Output: Professional, readable CLI with colorama
  • Logging: All actions and errors are logged for auditing
  • Production-Ready: Modular, clean, and robust code

Installation

pip install sentinel-ai-cli

From source

git clone https://github.com/Bangkah/sentinel.git
cd sentinel
pip install -r requirements.txt

Requirements

  • Python 3.7+
  • psutil
  • colorama
  • autopep8


Usage Examples

  • Scan active network connections:
    sentinel-ai scan
    
  • Show system information:
    sentinel-ai system
    
  • Analyze connections and classify risk:
    sentinel-ai analyze
    
    Example output:
    Proto  Local Address         Remote Address        PID     Process    Risk        Reason
    TCP    192.168.1.10:54321   8.8.8.8:53            1234    python3    HIGH (87)  External IP; Unusual port; Unknown process
    ...
    
  • Show summary report:
    sentinel-ai report
    
    Example output:
    === Sentinel AI CLI Security Report ===
    Total connections: 12
    External connections: 3
    High risk: 1
    Medium risk: 2
    Low risk: 9
    Overall system risk: HIGH (72/100)
    
  • Explain a specific IP address:
    sentinel-ai explain 8.8.8.8
    
  • Debug a Python file:
    sentinel-ai debug path/to/your_script.py
    
  • Explain a Python code file:
    sentinel-ai explain-code path/to/your_script.py
    
  • Improve (auto-format) a Python code file:
    sentinel-ai improve-code path/to/your_script.py
    


Screenshots

Sentinel AI CLI Demo


How GitHub Copilot CLI Helped

GitHub Copilot CLI accelerated the development of Sentinel AI by:

  • Generating modular, production-ready Python code
  • Suggesting robust error handling and logging patterns
  • Providing intelligent CLI argument parsing with argparse
  • Recommending best practices for security and code structure
  • Speeding up the implementation of colored output and risk analysis logic

Thanks to Copilot CLI, Sentinel AI was built faster, with higher code quality and maintainability.


Contributing

Contributions are welcome! Please open issues or pull requests to help improve Sentinel AI.


License

This project is licensed under the MIT License.


Metadata

Release files for sentinel-ai-cli 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentinel-ai-cli 1.0.5
File Size Uploaded
sentinel_ai_cli-1.0.5.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sentinel-ai-cli 1.0.5
File Interpreter ABI Platform
sentinel_ai_cli-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 15.7 kB

Release files / sentinel_ai_cli-1.0.5.tar.gz

Download URL sentinel_ai_cli-1.0.5.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bf1e37607e034f78edd94ab3f1a7140b89b43e3d58a08371e9d96f8345c6bbd4
BLAKE2b-256 checksum
How to use checksums
92691626aa681cf150786bcb6ce2b3d2fcdd04c1e87b2b5510f818e0d8c3efcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release files / sentinel_ai_cli-1.0.5-py3-none-any.whl

Download URL sentinel_ai_cli-1.0.5-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58247a5be0e133403f8d338e88ab66087b5f31c446f0108d776e36a3399e03f6
BLAKE2b-256 checksum
How to use checksums
f81db1ca430e61e0418b54d8f33e9e610ba9234982ff72bcd74b9f3a860465f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page