- Docker [if no want usage bun]
- Package Manager NPM
- Package Manager BUN
- Ethernet
- Open AI API hub - [https://github.com/RestlessByte/usingOpenAI]
This program allows you to interact with the OpenAI API directly from the Linux terminal.
- 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
- 🧸 Before starting, add your token to the
.env
file under Environment Variables for the desired neural network. - ✨ Run the program:
bun index.ts
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
#!/bin/bash
cat >> ~/.bashrc << 'EOF'
function aiterminal(){
path=$(pwd)
cd ~/AI-CLI-LINUX/ || return
bun index.ts
cd "$path" || return
}
EOF
This script is intended for:
- 🐧 Novice LINUXOID
- 👨🏽💻 Developers
- 🔧 DevOPS
- ✨ AICoders
- 👨🏾🔬 Scientist || Analytics
- 👨🔧 SysAdmin
- 🔐 CyberSecurity
- AI Powered from LINUX TERMINAL!
- Has memory of the result of a certain command
- Beautifully designed and formatted
Now you can give commands using your microphone.
- Ensure
sox
is installed or run inside the provided Docker container. - 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.