lucija8320nhung4/HacxGPT

GitHub: lucija8320nhung4/HacxGPT

开源的跨平台命令行工具,通过多提供商访问AI模型,支持提示词注入研究,适用于安全评估场景。

Stars: 911 | Forks: 312

# HacxGPT HacxGPT CLI — 用于无限制访问 AI 模型的开源命令行界面,支持多提供商、提示注入研究功能、可配置 API 端点、Termux/Linux/Windows 兼容,以及用于安全研究和红队评估的 Rich 终端 UI
``` $$$\ $$\ $$$$$$\ $$$$$$$\ $$$$$$$$\ $$ | $$ | $$ __$$\ $$ __$$\__$$ __| $$ | $$ | $$$$$$\ $$$$$$$\ $$\ $$\ $$ / \__|$$ | $$ | $$ | $$$$$$$$ | \____$$\ $$ _____|\$$\ $$ |$$ |$$$$\ $$$$$$$ | $$ | $$ __$$ | $$$$$$$ |$$ / \$$$$ / $$ |\_$$ |$$ ____/ $$ | $$ | $$ |$$ __$$ |$$ | $$ $$< $$ | $$ |$$ | $$ | $$ | $$ |\$$$$$$$ |\$$$$$$$\ $$ /\$$\ \$$$$$$ |$$ | $$ | \__| \__| \_______| \_______|\__/ \__| \______/ \__| \__| ``` # HacxGPT-CLI **用于无限制 AI 访问的开源 CLI — 无需严格审查即可访问强大的模型** [![许可证](https://img.shields.io/badge/License-PUOL%201.0-green?style=for-the-badge)](LICENSE) [![Python](https://img.shields.io/badge/Python-3.10+-3776AB?style=for-the-badge&logo=python&logoColor=white)](https://www.python.org/) [![平台](https://img.shields.io/badge/Platform-Windows%20%7C%20Linux%20%7C%20macOS%20%7C%20Termux-00C853?style=for-the-badge)]() [![开源](https://img.shields.io/badge/Open%20Source-Yes-brightgreen?style=for-the-badge)](https://github.com/HacxGPT-Official/HacxGPT-CLI) [功能](#-features) • [入门指南](#-getting-started) • [配置](#-configuration) • [使用方法](#-usage) • [常见问题](#-faq)
## 官方链接 | 资源 | 网址 | |----------|-----| | **网站** | [hacxgpt.com](https://hacxgpt.com) | | **GitHub** | [HacxGPT-Official/HacxGPT-CLI](https://github.com/HacxGPT-Official/HacxGPT-CLI) | | **Telegram** | [t.me/HacxGPT](https://t.me/HacxGPT) | | **API 文档** | [hacx-gpt.github.io/Docs](https://hacx-gpt.github.io/Docs/) | | **OpenRouter 密钥** | [openrouter.ai/keys](https://openrouter.ai/keys) | | **Groq 密钥** | [console.groq.com/keys](https://console.groq.com/keys) | | **联系方式** | [contact@hacxgpt.com](mailto:contact@hacxgpt.com) | ## 功能
| 功能 | 状态 | |---------|:------:| | 多提供商支持(OpenRouter、Groq、HacxGPT) | ✓ | | 本地 API 密钥存储(密钥永不离开您的设备) | ✓ | | 跨平台(Windows、Linux、macOS、Termux) | ✓ | | 一键依赖安装 | ✓ | | 交互式设置菜单 | ✓ | | 带面板和表格的 Rich 终端 UI | ✓ | | 功能 | 状态 | |---------|:------:| | 使用 `/clear` 和 `/exit` 命令进行聊天 | ✓ | | 状态和配置预览 | ✓ | | 内置路线图和链接 | ✓ | | 免费使用(需自备 API 密钥) | ✓ | | 不向我们的服务器发送任何数据 | ✓ | | 高级模型选择 | ✓ |
## 入门指南 ### 前置条件 - **Python 3.10+** — [python.org](https://www.python.org/downloads/) - **API 密钥** 来自至少一个提供商: - [OpenRouter](https://openrouter.ai/keys)(推荐,有免费套餐) - [Groq](https://console.groq.com/keys)(快速,有免费套餐) - [HacxGPT](https://hacxgpt.com)(生产级模型) ### 安装 **Windows** ``` git clone https://github.com/HacxGPT-Official/HacxGPT-CLI.git cd HacxGPT-CLI python -m pip install -r requirements.txt python -m main ``` 或者克隆后双击 `run.bat`。 **Linux / macOS** ``` git clone https://github.com/HacxGPT-Official/HacxGPT-CLI.git cd HacxGPT-CLI pip install -r requirements.txt python3 -m main ``` ### 依赖项 | 包 | 版本 | 用途 | |---------|---------|---------| | `rich` | ≥13.0.0 | 终端 UI、面板、表格 | | `colorama` | ≥0.4.6 | Windows ANSI 颜色支持 | | `requests` | ≥2.28.0 | HTTP API 调用到提供商 | ## 配置 配置存储在 `~/.hacxgpt_cli/config.json`(仅本地存储)。 **配置示例:** ``` { "provider": "openrouter", "model": "mimo-v2-flash", "api_key": "sk-or-v1-xxxxxxxxxxxxxxxxxxxxxxxx" } ``` **提供商选项:** | 提供商 | 示例模型 | 密钥网址 | |----------|---------------|---------| | `openrouter` | `mimo-v2-flash`、`devstral-2512`、`deepseek-r1t-chimera` | openrouter.ai/keys | | `groq` | `kimi-k2-instruct-0905`、`qwen3-32b` | console.groq.com/keys | | `hacxgpt` | `hacxgpt-lightning` | hacxgpt.com | ## 使用方法 启动 CLI 并使用交互式菜单: ``` ┌─────────────────────────────────────────────────────────┐ │ Menu │ ├──────┬──────────────────────────────────────────────────┤ │ Key │ Action │ ├──────┼──────────────────────────────────────────────────┤ │ 1 │ Install dependencies │ │ 2 │ Settings │ │ 3 │ Start Chat │ │ 4 │ Status │ │ 5 │ About │ │ 6 │ Roadmap │ │ 7 │ Links │ │ 8 │ Disclaimer │ │ 0 │ Exit │ └──────┴──────────────────────────────────────────────────┘ Select option: 3 ``` **聊天命令:** | 命令 | 描述 | |---------|-------------| | `/clear` | 清除对话历史 | | `/exit` 或 `/quit` | 返回主菜单 | ## 项目结构 ``` HacxGPT-CLI/ ├── main.py # Launcher & menu logic ├── chat.py # AI chat request handler (OpenRouter/Groq) ├── config_manager.py # Local config read/write ├── requirements.txt # Python dependencies ├── run.bat # Windows double-click launcher ├── README.md └── tags.txt # GitHub topics ``` ## 常见问题
使用 HacxGPT-CLI 需要付费吗? 不需要。CLI 是免费和开源的。您只需要来自提供商的 API 密钥 — OpenRouter 和 Groq 都提供慷慨的免费套餐。HacxGPT 生产级 API 是用于高级用例的独立付费服务。
我的 API 密钥存储在哪里? 密钥本地存储在 `~/.hacxgpt_cli/config.json`。不会向 HacxGPT 服务器发送任何内容。所有请求直接发送到您选择的提供商(OpenRouter、Groq 等)。
我应该使用哪个提供商开始? 推荐 OpenRouter 给初学者 — 在 openrouter.ai/keys 注册,获取免费密钥,即可访问多种模型。Groq 非常适合快速响应。对于生产级编码,请考虑使用 hacxgpt.com 的 HacxGPT API。
它能在 Termux(Android)上运行吗? 可以。从项目目录运行 `python3 -m main`。确保已通过 pip 安装 Python 3.10+ 和依赖项。
支持哪些模型? OpenRouter:mimo-v2-flash、devstral-2512、glm-4.5-air、kimi-k2、deepseek-r1t-chimera、llama-3.3-70b。Groq:kimi-k2-instruct-0905、qwen3-32b。HacxGPT:hacxgpt-lightning。使用设置(选项 2)进行切换。
如何报告错误或请求功能? 在 [GitHub](https://github.com/HacxGPT-Official/HacxGPT-CLI/issues) 上开 issue 或通过 [Telegram](https://t.me/HacxGPT) 联系社区。
这个工具可以合法使用吗? 该工具仅用于教育和研究目的。您有责任确保您的使用符合适用法律以及您访问的任何第三方 API 的服务条款。请参阅免责声明部分。
## 免责声明 此工具仅用于**教育和研究目的**。用户有责任确保其使用符合适用法律以及其访问的任何第三方 API 的服务条款。 - **API 使用:** 第三方提供商(OpenRouter、Groq)有自己的服务条款。 - **隐私:** 您的提示会发送到您选择的提供商,而不是我们这里。 - **API 密钥:** 安全存储,切勿分享。 - **责任:** 您对此工具的使用方式负责。 开发者**不会**收集 API 密钥或提示,**不会**对滥用负责,并鼓励负责任和合法地使用 AI 技术。
**支持该项目** ETH: `0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb2` [![在 GitHub 上加星](https://img.shields.io/badge/⭐_Star_this_repo-If_you_found_it_useful!-gold?style=for-the-badge)](https://github.com/HacxGPT-Official/HacxGPT-CLI)
标签:AI模型访问, API工具, DLL 劫持, Python, Rich终端UI, Termux, Uncensored AI, 人工智能, 命令行界面, 多提供商, 大语言模型, 开源, 提示注入, 无后门, 用户模式Hook绕过, 红队评估, 终端工具, 网络安全, 逆向工具, 隐私保护, 集群管理