Skip to main content

APITHON Protocol Gateway

Intercept, synchronize, and bridge communication protocols in LLM architectures with automated tunnel establishment and REST API compatibility.

Quick Start

Get APITHON up and running in minutes with these simple steps.

1

Install Dependencies

Install the required Python packages and Playwright browser automation tools.
pip install flask playwright curl_cffi
playwright install chromium
2

Run APITHON

Launch the APITHON tool and provide the target URL when prompted.
python apithon.py
The script will automatically prepend https:// to the URL if not provided.
3

Choose Your Mode

Select between Gateway mode for API access or Chat mode for direct interaction.
  • Gateway Mode: Exposes a REST API endpoint compatible with OpenAI format
  • Chat Mode: Provides an interactive terminal for direct protocol analysis
Learn more in the usage modes guide.
4

Make Your First Request

Once the gateway is running, send a request using curl or any HTTP client.
curl http://127.0.0.1:5000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer UnHackerEnCapital" \
  -d '{"messages": [{"role": "user", "content": "Hello from APITHON"}]}'
{
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "Response from the intercepted protocol"
      }
    }
  ],
  "model": "apithon-v3"
}

Explore APITHON

Dive deeper into the features and capabilities of APITHON.

Core Concepts

Understand how APITHON intercepts and analyzes communication protocols.

Gateway Mode

Learn how to expose intercepted protocols as a REST API gateway.

Network Configuration

Configure local or LAN access for your APITHON gateway.

API Endpoints

Explore the complete API reference for the gateway endpoint.

Key Features

APITHON provides powerful capabilities for protocol analysis and gateway bridging.

๐Ÿ”„

Automated Tunnel Synchronization

Automatically validates sessions and captures authentication tokens through browser automation with Playwright.

๐Ÿ–ฅ๏ธ

Intelligent Environment Detection

Adapts commands and escapes for Windows (CMD/PowerShell) and Linux (Bash) environments automatically.

๐ŸŒ

Network Scope Selector

Choose between localhost-only or LAN-wide access with automatic IP detection for network sharing.

๐Ÿ”

TLS Fingerprinting

Mimics Chrome 120 browser fingerprints to ensure protocol compatibility and avoid detection.

๐Ÿ”Œ

OpenAI-Compatible API

REST API gateway follows OpenAIโ€™s chat completions format for easy integration with existing tools.

๐Ÿ’ฌ

Interactive Chat Mode

Direct terminal interface for real-time protocol analysis and testing without API overhead.

Ready to Analyze Protocols?

Start intercepting and bridging LLM communication protocols with APITHONโ€™s automated gateway system.

Install APITHON
Educational Use Only: APITHON is provided for research and educational purposes in cybersecurity. Users are solely responsible for ensuring they have explicit authorization to analyze protocols on target services. Ethical security research is paramount.

Build docs developers (and LLMs) love