Skip to content

RestlessByte/AI-CLI-LINUX

Repository files navigation

CLI ASSISTANT FOR LINUX

🐧 SUPPORTS: ALL DESTRIBUTIONS USAGE BASH AND PACKAGE MANAGER

Requirement:

🧠 OpenAI API Interaction Program

This program allows you to interact with the OpenAI API directly from the Linux terminal.

👨🏽‍🔬 How to use?

  1. Install dependencies:
#!/bin/bash

original_dir=$(pwd)
cd ~ || exit
git clone [email protected]:RestlessByte/AI-CLI-LINUX.git
cd AI-CLI-LINUX || exit
git clone [email protected]:RestlessByte/usingOpenAI.git
bun install
cp .env.example .env
code .env
cd "$original_dir" || exit
  1. 🧸 Before starting, add your token to the .env file under Environment Variables for the desired neural network.
  2. ✨ Run the program:
bun index.ts

🐳 Docker Usage

cp .env.example .env   # create env file and add your API keys

docker build -t ai-cli-linux .

# Run the CLI inside a container
docker run --rm -it --env-file .env -v "$(pwd)":/app ai-cli-linux bun index.ts

# Start voice mode with Docker Compose (uses docker-compose.yml)
docker compose up
# Stop with Ctrl+C or:
# docker compose down

HOW USING AI TERMINAL WITH OTHER PATH? BASH SCRIPT

#!/bin/bash
cat >> ~/.bashrc << 'EOF'
function aiterminal(){
  path=$(pwd)
  cd ~/AI-CLI-LINUX/ || return
  bun index.ts
  cd "$path" || return
}
EOF

👥 For Whom?

This script is intended for:

  • 🐧 Novice LINUXOID
  • 👨🏽‍💻 Developers
  • 🔧 DevOPS
  • ✨ AICoders
  • 👨🏾‍🔬 Scientist || Analytics
  • 👨‍🔧 SysAdmin
  • 🔐 CyberSecurity

🌟 Features

  • AI Powered from LINUX TERMINAL!
  • Has memory of the result of a certain command
  • Beautifully designed and formatted

🎙 Voice Mode

Now you can give commands using your microphone.

  1. Ensure sox is installed or run inside the provided Docker container.
  2. Start voice mode:
bun voice.ts

In Docker:

docker compose up

The container must have access to /dev/snd on the host. Say exit to finish.

Releases

No releases published

Packages

No packages published

Languages