Skip to main content

AI Terminal Assistant with multi-provider support

Project description

CarthageAI Multi-provider AI terminal assistant

Python 3.8+ License: MIT GitHub last commit

๐Ÿš€ Features

AI-Powered Assistance

โœ” Multi-Provider Support - (OpenAI/DeepSeek)

โœ” File Analysis - Reference files with @file.txt for context-aware responses

โœ” Session Persistence - Save/load conversations with !save and !load

โœ” Rich Markdown Rendering

Terminal Productivity

โŒจ Interactive CLI - Natural language queries or commands

๐Ÿ“‚ File Integration - Supports .py, .json, .txt, and 10+ file types

โฑ Real-Time Processing - Loading spinners and timeout handling

Sysadmin Toolkit (Built-in Commands)

๐Ÿ”Œ Test open ports | ๐Ÿ“ถ Network connectivity check

๐Ÿ’ฝ Disk usage summary | ๐Ÿ” Find running processes

๐Ÿ›ก Audit sudo users | ๐Ÿ” SSH config analyzer

๐Ÿ“ฆ Installation

# Clone the repository
git clone https://github.com/alaadotcom/CarthageAI.git
cd CarthageAI

# Install dependencies
pip install -r requirements.txt

๐Ÿ–ฅ๏ธ Usage
Basic Commands:
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Command      โ”‚ Description                             โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ !help        โ”‚ Show help menu                          โ”‚
โ”‚ !model       โ”‚ Switch AI models                        โ”‚
โ”‚ @file.txt    โ”‚ Analyze file content                    โ”‚
โ”‚ !save        โ”‚ Save current conversation               โ”‚
โ”‚ !load <id>   โ”‚ Load previous session                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Examples:

# Direct query
python carthage_ai.py "Explain Python decorators"

# File analysis
python carthage_ai.py "Fix this code" @broken_script.py

# Interactive mode:
python carthage_ai.py
> @config.json What's wrong with this configuration?

๐Ÿ› ๏ธ Sysadmin Tools

  _________________________________________
 / Port Check | Disk Space | Process Find  \
| SSH Audit   | Ping Test  | Sudo Check    |
 \________________________________________/

 Example:

!portcheck example.com 80
!diskspace
!findproc nginx

API keys stored locally in config.json

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

carthageai-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

carthageai-0.1.0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file carthageai-0.1.0.tar.gz.

File metadata

  • Download URL: carthageai-0.1.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for carthageai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d29bcf78884e8a5180616d0a05a55370cce05d80c4585a383cc56fff2e2ff74c
MD5 b94e49206caa7f24981656f23228dbeb
BLAKE2b-256 fa6e58e12bfe92e11e3ddd7df2c2fe93007b10787e7a5cc8c4162971a0e29b15

See more details on using hashes here.

Provenance

The following attestation bundles were made for carthageai-0.1.0.tar.gz:

Publisher: publish.yml on alaadotcom/CarthageAI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file carthageai-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: carthageai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for carthageai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b2c7834f24da6287c02f0fe7b175687b68f8019e9b8cbd13ed6a73e6e295eae
MD5 0704cab10368eef453ad6617778fecda
BLAKE2b-256 d4e0982755d452d3a24c6f11d1dd7a5e584da9d543e5c9f3926326b04b5d07a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for carthageai-0.1.0-py3-none-any.whl:

Publisher: publish.yml on alaadotcom/CarthageAI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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