Skip to content
ใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆ

ๆฆ‚่ฆ

๐Ÿซก Nikki โ€” AI Assistant for Red Team & DevOps in the Terminal (fish-shell)

ๅญฆ็ฟ’ใƒปๆ•™่‚ฒ

ใ“ใฎๆ•ฐๅ€คใฎๆธฌใ‚Šๆ–น

ใงใใ‚‹ใ“ใจ

  • โœ… 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

่จˆๆธฌใ—ใŸใ‚นใ‚ฟใƒผๅข—ๅŠ 

24ๆ™‚้–“
-1
7ๆ—ฅ้–“
+1
15ๆ—ฅ้–“
+2
1ใ‹ๆœˆ
ๅฑฅๆญดใ‚’ๅŽ้›†ไธญ

ๆœŸ้–“ใ”ใจใฎ็ด”ๅข—ๆ•ฐใงใ™ใ€‚ๆœŸ้–“ใฏ้‡่ค‡ใ—ใฆใŠใ‚Šใ€ๆ—ฅๅˆฅใฎๅ€คใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚ๆœช่จˆๆธฌใฎๅ€คใฏ็ฉบๆฌ„ใงใ™ใ€‚ใ‚นใ‚ฟใƒผๆ•ฐใฏๆณจ็›ฎๅบฆใฎๆŒ‡ๆจ™ใงใ‚ใ‚Šใ€ๅ“่ณชใฎไฟ่จผใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚

๐Ÿซก 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 (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)

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

./install.sh

Installs:

  • nikki.fish โ†’ ~/.config/fish/functions/
  • setup-rag.fish โ†’ ~/bin/
  • config & role templates

โš™ Setup

  1. Start Ollama:

    systemctl --user enable --now ollama
    
  2. Pull models:

    ollama pull rnj-1:latest
    ollama pull nomic-embed-text
    
  3. Configure aichat (manual install only):

    cp config/aichat-config.yaml ~/.config/aichat/config.yaml
    
  4. Load knowledge repos:

    setup-rag
    

๐Ÿ’ฌ Usage

One-off query

Nikki Generate a reverse TCP shell in bash?

Multi-turn conversation

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)

> .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


โš ๏ธ 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

้–ข้€ฃใƒ—ใƒญใ‚ธใ‚งใ‚ฏใƒˆใ‚’ๆŽขใ™

่ชญใฟ่พผใฟไธญโ€ฆ