Files
AI-Proxy-Worker/docs/Home.en.md
2025-08-17 19:59:10 +08:00

5.6 KiB

AI Proxy Worker Wiki

🌍 Language / 语言

🇺🇸 English | 🇨🇳 中文

Welcome to the complete documentation for AI Proxy Worker! Here you'll find detailed information from installation to advanced usage.

📚 Documentation Navigation

🚀 Quick Start

📖 Usage Guide

🔧 Operations Guide

🏗️ Development Guide

🔮 Advanced Features

🎯 Project Overview

AI Proxy Worker is a universal AI API proxy service based on Cloudflare Workers, designed to solve the following problems:

🔐 Security Issues

  • Problem: Client applications calling AI APIs directly need to expose API keys
  • Solution: Proxy service stores keys securely on the server side, clients only need proxy access keys

Performance Issues

  • Problem: Direct calls may be affected by network restrictions
  • Solution: Based on Cloudflare's global edge network for nearby access

🔄 Compatibility Issues

  • Problem: Different AI service providers have inconsistent API formats
  • Solution: Provides unified proxy interface, future support for multiple AI service providers

🏗️ Architecture Design

┌─────────────────┐    ┌─────────────────┐    ┌─────────────────┐
│   Client Apps   │────│  AI Proxy      │────│   AI Service    │
│   (iOS/Web)     │    │   Worker        │    │  (DeepSeek)     │
└─────────────────┘    └─────────────────┘    └─────────────────┘
       │                        │                       │
       │ PROXY_KEY             │ DEEPSEEK_API_KEY      │
       │ (Public Safe)         │ (Server Secret)       │
       └────────────────────────┴───────────────────────┘

Core Components

  1. Authentication Layer: Handles client access control
  2. Routing Layer: Distributes requests to different AI services
  3. Proxy Layer: Communicates with upstream AI APIs
  4. Security Layer: Request validation, rate limiting, logging

📊 Supported AI Services

Currently Supported (v1.0)

  • DeepSeek API - Complete support including conversation and reasoning models
    • deepseek-chat - General conversation model
    • deepseek-reasoner - Complex reasoning model

Planned Support (Future Versions)

  • 🔄 OpenAI API - GPT series models (planned for v2.0)
  • 🔄 Claude API - Anthropic Claude models (planned for v2.0)
  • 🔄 Gemini API - Google Gemini models (planned for v2.0)
  • 🔄 Unified Routing - One interface to call all AI service providers (planned for v2.0)

Note

: The current version focuses on providing stable and reliable DeepSeek API proxy service. Multi-AI support is under development, stay tuned!

🎯 Use Cases

Mobile Applications

  • iOS/Android apps securely call AI APIs
  • Avoid storing sensitive keys in clients
  • Provide unified AI service interface

Web Applications

  • Frontend direct calls without backend relay
  • Support streaming responses for real-time conversation experience
  • Global CDN accelerated access

Microservice Architecture

  • Serve as AI service gateway
  • Unified AI API access layer
  • Support multi-tenancy and access control

🔄 Version History

v1.0.0 (Current Version)

  • Support DeepSeek API
  • Complete error handling
  • Streaming response support
  • Security protection mechanisms

Future Versions

  • 🔮 Multi-AI service provider support
  • 🔮 User-level access control
  • 🔮 Request rate limiting and quotas
  • 🔮 Detailed usage statistics

🤝 Community

Ways to Participate

Community Resources


Ready to Start? 👉 Installation Guide