An open API service indexing awesome lists of open source software.

https://github.com/toxy4ny/nikki-ai-cli-assistent

🫑 Nikki β€” AI Assistant for Red Team & DevOps in the Terminal (fish-shell)
https://github.com/toxy4ny/nikki-ai-cli-assistent

ai ai-agents ai-assistant cli education hacking hacking-tool hacking-tools redteam redteam-tools redteaming redteaming-tools

Last synced: 1 day ago
JSON representation

🫑 Nikki β€” AI Assistant for Red Team & DevOps in the Terminal (fish-shell)

Awesome Lists containing this project

README

          

# 🫑 Nikki β€” AI Assistant for Red Team & DevOps in the Terminal

> **Nikki** is your local, offline, uncensored AI teammate in the CLI β€” purpose-built for:
> - generating battle-tested offensive code (PowerShell, C, Rust, Bash),
> - analyzing vulnerabilities and exploits from GitHub repositories,
> - writing and debugging scripts,
> - multi-turn conversations directly from your shell.

All processing happens **locally**, with **no cloud dependency** and **no prompt leakage**.
Powered by **aichat**, **Ollama**, **RAG**, and curated red team repositories like `PayloadsAllTheThings`, `Atomic Red Team`, and `SharpCollection` and top or new repositories of Github.

---

## 🌟 Key Features

- βœ… **Fully offline** β€” works without internet after setup
- βœ… **No censorship** β€” uses uncensored `base` models
- βœ… **RAG over GitHub repos** β€” always up to date with latest offensive techniques
- βœ… **Multi-turn dialogue** via `--session`
- βœ… **Fish shell integration** β€” just type `Nikki ...`
- βœ… **Ready for [Athena OS](https://athenaos.org)** (Arch-compatible packaging) (https://github.com/Athena-OS)

---

## 🧠 Architecture

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Nikki CLI β”‚ ← fish function: `Nikki`
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ aichat β”‚ ← Rust CLI frontend
β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Ollama │◄───►│ RAG: nomic-embed-textβ”‚
β”‚ (LLM + Embedding)β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ GitHub Repos β”‚ ← PayloadsAllTheThings, SharpCollection, Atomic Red Team...
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

- **LLMs**:
- `rnj-1-instruct` (uncensored, for red team)
- **Embedding**: `nomic-embed-text` (local, via Ollama)
- **Knowledge base**: cloned repos in `~/rag-data/redteam`
- **Config**: roles, sessions, RAG β€” all in `~/.config/aichat/`

---

## ⚠️ Why This Isn’t Just β€œAnother Chatbot”

- Nikki **won’t hallucinate APIs** β€” if a technique isn’t in the source repos, she replies: _β€œNo information found in my sources.”_
- All payloads are **cross-referenced** with real repositories (use `.sources rag` to verify).
- **Zero ethical disclaimers** β€” only working, executable code.

---

## πŸ›  Installation

### Requirements
- **Athena OS** (or any Arch-based distro)
- `aichat` β‰₯ 0.30.0
- `ollama` β‰₯ 0.1.33
- `git`, `fish`

### Option 1: PKGBUILD (Recommended for Athena OS)

```bash
git clone https://github.com/toxy4ny/nikki-ai-cli-assistent.git
cd nikki-ai
makepkg -si
```

> After install:
> - `Nikki` is available in your shell,
> - `setup-rag` updates your knowledge base,
> - config template: `/etc/aichat/config.yaml.example`

### Option 2: Manual Install

```bash
./install.sh
```

Installs:
- `nikki.fish` β†’ `~/.config/fish/functions/`
- `setup-rag.fish` β†’ `~/bin/`
- config & role templates

---

## βš™ Setup

1. **Start Ollama**:
```fish
systemctl --user enable --now ollama
```

2. **Pull models**:
```fish
ollama pull rnj-1:latest
ollama pull nomic-embed-text
```

3. **Configure aichat** (manual install only):
```fish
cp config/aichat-config.yaml ~/.config/aichat/config.yaml
```

4. **Load knowledge repos**:
```fish
setup-rag
```

---

## πŸ’¬ Usage

### One-off query
```fish
Nikki Generate a reverse TCP shell in bash?
```

### Multi-turn conversation
```fish
Nikki --session c2 "Generate a reverse TCP shell in C"
Nikki --session c2 "Add XOR encryption with key 0x42"
Nikki --session c2 "Compile it with mingw"
```

### Verify sources (inside `aichat`)
```fish
> .rag nikki-kb
> How does Unicorn do DDE attacks?
> .sources rag
```

---

## πŸ“¦ Repository Structure

```
nikki-ai/
β”œβ”€β”€ PKGBUILD # For Athena OS / AUR
β”œβ”€β”€ install.sh # Manual install script
β”œβ”€β”€ bin/setup-rag.fish # RAG update utility
β”œβ”€β”€ config/aichat-config.yaml
β”œβ”€β”€ roles/redteam-ru.yaml
β”œβ”€β”€ fish/nikki.fish
β”œβ”€β”€ LICENSE
└── README.md
```

---

## 🀝 Contribution & Athena OS Integration

Nikki aligns with **Athena OS philosophy**:
- minimalism,
- security,
- offline-first,
- open-source.

We welcome inclusion in the **official Athena OS repositories**.
The project is audit-ready and supports automated builds.

πŸ”— [Athena OS](https://athenaos.org)

---

## ⚠️ Ethical Notice

> Nikki is designed for **authorized** penetration testing, red team operations, and closed-lab education.
> Do not use it for illegal activities.
> Always review generated code before execution.

---

## πŸ“œ License

MIT Β© [toxy4ny](https://github.com/toxy4ny)