llm-api-enhance  by XyzenSun

Cloudflare Worker proxy for private AI APIs and general routing

Created 1 year ago
262 stars

Top 97.7% on SourcePulse

GitHubView on GitHub
Project Summary

Summary SpectreProxy addresses privacy leaks and proxy detection issues inherent in Cloudflare Workers' fetch API. By leveraging native TCP Socket APIs, it offers users enhanced privacy, bypasses geo-restrictions, and masks its origin, making it ideal for developers and power users requiring robust and discreet network access, particularly for AI services.

How It Works The project bypasses Cloudflare Workers' fetch API limitations by utilizing the native connect() TCP Socket API. This low-level approach grants complete control over request bytes, fundamentally preventing the automatic injection of privacy-exposing headers like cf-connecting-ip and cf-worker. This direct socket manipulation ensures a cleaner, more private connection compared to standard fetch requests.

Quick Start & Requirements Requires a Cloudflare account with Workers enabled. Deployment involves copying either the aigateway.js (AI-optimized) or single.js (general-purpose) script into a new Cloudflare Worker, followed by configuring essential environment variables like AUTH_TOKEN for security.

Highlighted Details

  • Privacy & Anonymity: Hides real IP addresses and proxy origins by avoiding fetch API's default headers.
  • Intelligent Routing: Features AIGateway with automatic SOCKS5/direct connection selection and fallback, plus single.js with multiple proxy strategy options.
  • Multi-Protocol Support: single.js natively handles HTTP/S, WebSocket (WSS), and DNS-
Health Check
Last Commit

2 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
1 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.