ai-proxy-rules  by VPSDance

AI proxy rule configuration tool for global service access

Created 2 months ago
262 stars

Top 97.0% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This repository aggregates and automatically updates AI proxy rules, targeting users in China accessing overseas AI services. It simplifies managing diverse AI endpoints and client configurations by consolidating rules from multiple sources, refining them by provider, and ensuring compatibility with popular clients like Clash and Surge. The project offers a curated, up-to-date solution for accessing global AI models.

How It Works

The system merges and deduplicates rules from upstream sources (e.g., v2fly, blackmatrix7), then refines them per AI provider. It targets popular services like OpenAI and Gemini, consolidating multiple upstreams to fix gaps. Generated rulesets are synchronized daily and formatted for clients including Clash, Mihomo, sing-box, and Surge, ensuring comprehensive and current routing.

Quick Start & Requirements

  • Setup: Requires Node.js and pnpm. Install dependencies via pnpm install.
  • Rule Generation: Run pnpm sync and pnpm generate. Verification via pnpm check and pnpm test.
  • Automation: GitHub Actions automate sync, check, and generation.
  • CDN: Rules hosted on jsDelivr; alternatives (testingcf.jsdelivr.net, etc.) provided for stability.

Highlighted Details

  • Covers numerous AI services: OpenAI, Anthropic (Claude), Gemini, Copilot, Midjourney, Stability AI, ElevenLabs, etc.
  • Compatible with Clash, Mihomo, sing-box, Surge, Shadowrocket, Loon, Stash, Quantumult X, Egern.
  • Features scenario-based rules (coding, model-api, media) and multi-proxy routing.
  • Daily automatic synchronization keeps rules current.

Maintenance & Community

  • Maintenance is automated via GitHub Actions for rule synchronization and generation.
  • Relies on community contributions for upstream rule sources.
  • No specific community channels or direct contributor details are listed.

Licensing & Compatibility

  • The repository's license is not explicitly stated in the README, requiring clarification for adoption.
  • Commercial use compatibility is undetermined due to the missing license information.

Limitations & Caveats

  • Rules are tailored for users in China accessing overseas AI services, excluding directly accessible domestic services.
  • Potential jsDelivr CDN instability necessitates using alternative CDNs, which requires manual configuration.
Health Check
Last Commit

3 days ago

Responsiveness

Inactive

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

Explore Similar Projects

Feedback? Help us improve.