AI Integration & Features Setup Guide
Trafexia 3.0 integrates a state-of-the-art AI Request Analyzer & Security Assistant system, supporting OpenAI (ChatGPT), Anthropic Claude, Google Gemini, and a local ChatGPT Bridge server.
1. Selecting an AI Provider
Open Settings ➔ AI Request Analyzer Settings:
Under AI Provider, select one of the three primary providers:
Option A: OpenAI (ChatGPT)
- OpenAI API Key: Enter your secret API key (
sk-...). - Model: Enter or select your model (e.g.,
gpt-4o,gpt-4o-mini,gpt-5.5). - Custom Base URL (Optional): Specify an API endpoint if using custom proxies or third-party providers (e.g.,
https://openrouter.ai/api/v1).
Option B: Anthropic Claude (Official API)
- Claude API Key: Enter your Anthropic API key (
sk-ant-api...). - Model: Enter your preferred Claude model (e.g.,
claude-3-7-sonnet-latest,claude-3-5-haiku-20241022).
Option C: Google Gemini
- Gemini API Key: Enter your Google AI Studio API key (
AIzaSy...). - Model: Enter your Gemini model (e.g.,
gemini-1.5-flash,gemini-2.5-flash,gemini-2.5-pro).
2. Local ChatGPT Bridge Server (chatgpt2api)
If you hold a ChatGPT web account (Free, Plus, or Team) and want to leverage it without API Key costs:
- Navigate to Settings ➔ ChatGPT Bridge.
- Click Install & Start (Trafexia automatically downloads
chatgpt2apiand standaloneuvbinaries in the background). - Specify your secure Auth Key.
- Import Token via cURL / Access Token:
- Paste cURL copied from
chatgpt.com/api/auth/sessioninto BridgeAutoCurl and click Import cURL & Fetch Token. - Alternatively, add Access Tokens manually into the Account Pool.
- Paste cURL copied from
- Click Sync to AI Config: Trafexia will automatically set the Base URL (
http://127.0.0.1:3040/v1) and Auth Key into your AI settings!
3. AI Powered Capabilities in Trafexia
AI Payload Analyzer & Replay Code Generator
- Inside the AI Analyzer tab of any inspected Request:
- AI dissects Headers, URL Parameters, and Encrypted Payloads.
- Deduces signature algorithms (HMAC-SHA256, RSA, MD5 signatures).
- Automatically drafts Runnable Replay Scripts for both Node.js and Python.
- Click Run Code to execute and test the generated script directly inside Trafexia's Execution Console!
Global AI Traffic Chat
- Click the AI Chat icon on the top header.
- Converse directly with AI regarding all captured session traffic (e.g., "Find all requests returning 401 unauthorized errors", "Draft a Frida hook script for the authentication endpoint").
APK AI Security Assistant
- Inside the AI Analysis tab of the APK Static Analyzer:
- Calculates an automated Security Score (0-100).
- Delivers actionable vulnerability remediation recommendations.
- Automatically writes production-ready Frida Hook scripts for dynamic testing.