Skip to content

toxy4ny/nikki-ai-cli-assistent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🫑 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages