How hexsecteam/hexsecgpt works
HexSecGPT is a Python CLI wrapper around third-party language-model APIs, not the repository’s private fine-tuned model. Its main workflow is API-key setup and verification, then interactive chat with session controls and streamed Markdown display. The README also documents switching between OpenRouter and DeepSeek, plus a separate script for discovering free OpenRouter models. Some implementation sections were not excerpted, so links for those documented capabilities rely on the README rather than unsampled code.
Main entry points: HexSecGPT.py App orchestration · SeeOpenRouterFreeModels.py Free-model finder
Components 9
CLI experience
- App orchestration
HexSecGPT.py - Terminal UI
HexSecGPT.py - API key setup
HexSecGPT.py
Chat runtime
- Chat brain
HexSecGPT.py - Conversation history
HexSecGPT.py - LLM API provider
Model discovery
- OpenRouter models
- Free-model finder
SeeOpenRouterFreeModels.py
Other components
- CLI user
Connections 14
- CLI user → App orchestration: starts and uses
README.md - App orchestration → Terminal UI: prompts and displays
HexSecGPT.py - App orchestration → API key setup: configures key
HexSecGPT.py - App orchestration → Chat brain: initializes
HexSecGPT.py - App orchestration → Chat brain: verifies credentials
HexSecGPT.py - App orchestration → Terminal UI: collects chat input
HexSecGPT.py - App orchestration → Chat brain: resets session
HexSecGPT.py - Chat brain → LLM API provider: requests completions
HexSecGPT.py - Chat brain → Conversation history: maintains messages
HexSecGPT.py - App orchestration → LLM API provider: selects OpenRouter or DeepSeek
README.md - Free-model finder → OpenRouter models: fetches model list
SeeOpenRouterFreeModels.py - Free-model finder → CLI user: prints free models
SeeOpenRouterFreeModels.py - CLI user → Free-model finder: runs discovery
README.md - CLI user → App orchestration: updates model choice
README.md