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)
- Host: GitHub
- URL: https://github.com/toxy4ny/nikki-ai-cli-assistent
- Owner: toxy4ny
- License: mit
- Created: 2025-12-12T16:09:26.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-13T09:15:27.000Z (6 months ago)
- Last Synced: 2025-12-14T07:36:00.254Z (6 months ago)
- Topics: ai, ai-agents, ai-assistant, cli, education, hacking, hacking-tool, hacking-tools, redteam, redteam-tools, redteaming, redteaming-tools
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)