diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c8e5997..1deffa90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: branches: [master] env: - GOPRIVATE: github.com/DouDOU-start/airgate-sdk + GOPRIVATE: github.com/DevilGenius/airgate-sdk jobs: ci: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 40f00066..2428dfa7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,9 +15,9 @@ permissions: packages: write env: - GOPRIVATE: github.com/DouDOU-start/airgate-sdk + GOPRIVATE: github.com/DevilGenius/airgate-sdk REGISTRY: ghcr.io - IMAGE_NAME: doudou-start/airgate-core + IMAGE_NAME: devilgenius/airgate-core jobs: # ------------------------------------------------------------ @@ -222,7 +222,7 @@ jobs: echo "Injecting Version=${VERSION}" mkdir -p bin cd backend && go build -buildvcs=false -trimpath \ - -ldflags "-X 'github.com/DouDOU-start/airgate-core/internal/version.Version=${VERSION}' -s -w" \ + -ldflags "-X 'github.com/DevilGenius/airgate-core/internal/version.Version=${VERSION}' -s -w" \ -o ../bin/airgate-core-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/server - name: Generate SHA256 diff --git a/LICENSE b/LICENSE index 30c35bff..18f224f1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 DouDOU-start +Copyright (c) 2026 DevilGenius Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile index d4121aef..9ab8531c 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ GO := GOTOOLCHAIN=local go # 版本号:默认从 git 派生(dirty 检测),release workflow 通过 -ldflags 注入。 VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev) -LDFLAGS := -X github.com/DouDOU-start/airgate-core/internal/version.Version=$(VERSION) +LDFLAGS := -X github.com/DevilGenius/airgate-core/internal/version.Version=$(VERSION) .PHONY: help dev dev-backend dev-frontend dev-plugins dev-plugin-openai dev-plugin-claude dev-plugin-playground dev-plugin-epay dev-plugin-health dev-plugin-kiro dev-plugin-studio \ build build-backend build-frontend \ @@ -266,7 +266,7 @@ lint: ## 代码检查(需要安装 golangci-lint) fmt: ## 格式化代码 @cd $(BACKEND_DIR) && \ if command -v goimports > /dev/null 2>&1; then \ - goimports -w -local github.com/DouDOU-start .; \ + goimports -w -local github.com/DevilGenius .; \ else \ $(GO) fmt ./...; \ fi diff --git a/README.md b/README.md index 59a297b2..c4841fbf 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,9 @@
可插件化的统一 AI 网关运行时
@@ -42,13 +42,13 @@ AirGate 不是又一个"集成了 N 个 AI 平台"的网关,而是一套**把 | 插件 | 类型 | 能力 | 仓库 | |---|---|---|---| -| **gateway-openai** | gateway | OpenAI Responses / Chat Completions / ChatGPT OAuth / Anthropic 协议翻译 / WebSocket | [DouDOU-start/airgate-openai](https://github.com/DouDOU-start/airgate-openai) | -| **gateway-claude** | gateway | Claude Messages API 网关:OAuth 授权、TLS 指纹、用量监控 | [DouDOU-start/airgate-claude](https://github.com/DouDOU-start/airgate-claude) | -| **gateway-kiro** | gateway | Kiro (AWS CodeWhisperer) 反代网关,兼容 Anthropic Messages API | [DouDOU-start/airgate-kiro](https://github.com/DouDOU-start/airgate-kiro) | -| **airgate-playground** | extension | AI 对话插件:网页聊天、多模型切换、会话管理 | [DouDOU-start/airgate-playground](https://github.com/DouDOU-start/airgate-playground) | -| **airgate-studio** | extension | 面向图片、视频、音频等多模态内容生成的统一创作中心 | [DouDOU-start/airgate-studio](https://github.com/DouDOU-start/airgate-studio) | -| **payment-epay** | extension | 多渠道支付:易支付(虎皮椒/彩虹)/ 支付宝官方 / 微信支付官方,含充值页、订单管理、服务商配置 | [DouDOU-start/airgate-epay](https://github.com/DouDOU-start/airgate-epay) | -| **airgate-health** | extension | AI 提供商健康监控:主动探测、可用率/延迟聚合、对外公开状态页 | [DouDOU-start/airgate-health](https://github.com/DouDOU-start/airgate-health) | +| **gateway-openai** | gateway | OpenAI Responses / Chat Completions / ChatGPT OAuth / Anthropic 协议翻译 / WebSocket | [DevilGenius/airgate-openai](https://github.com/DevilGenius/airgate-openai) | +| **gateway-claude** | gateway | Claude Messages API 网关:OAuth 授权、TLS 指纹、用量监控 | [DevilGenius/airgate-claude](https://github.com/DevilGenius/airgate-claude) | +| **gateway-kiro** | gateway | Kiro (AWS CodeWhisperer) 反代网关,兼容 Anthropic Messages API | [DevilGenius/airgate-kiro](https://github.com/DevilGenius/airgate-kiro) | +| **airgate-playground** | extension | AI 对话插件:网页聊天、多模型切换、会话管理 | [DevilGenius/airgate-playground](https://github.com/DevilGenius/airgate-playground) | +| **airgate-studio** | extension | 面向图片、视频、音频等多模态内容生成的统一创作中心 | [DevilGenius/airgate-studio](https://github.com/DevilGenius/airgate-studio) | +| **payment-epay** | extension | 多渠道支付:易支付(虎皮椒/彩虹)/ 支付宝官方 / 微信支付官方,含充值页、订单管理、服务商配置 | [DevilGenius/airgate-epay](https://github.com/DevilGenius/airgate-epay) | +| **airgate-health** | extension | AI 提供商健康监控:主动探测、可用率/延迟聚合、对外公开状态页 | [DevilGenius/airgate-health](https://github.com/DevilGenius/airgate-health) | ### 安装插件 @@ -64,7 +64,7 @@ AirGate 不是又一个"集成了 N 个 AI 平台"的网关,而是一套**把 ### 写一个自己的插件 -只需依赖 [airgate-sdk](https://github.com/DouDOU-start/airgate-sdk),实现 `GatewayPlugin` 接口的几个方法即可: +只需依赖 [airgate-sdk](https://github.com/DevilGenius/airgate-sdk),实现 `GatewayPlugin` 接口的几个方法即可: ```go type GatewayPlugin interface { @@ -76,7 +76,7 @@ type GatewayPlugin interface { } ``` -参考 [airgate-openai](https://github.com/DouDOU-start/airgate-openai) 完整范例,含 Makefile、release workflow、前端嵌入。 +参考 [airgate-openai](https://github.com/DevilGenius/airgate-openai) 完整范例,含 Makefile、release workflow、前端嵌入。 ## 🛠 技术栈 @@ -102,7 +102,7 @@ type GatewayPlugin interface { ### 方式 1A:裸金属安装(systemd,自备 PostgreSQL + Redis) ```bash -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/install.sh | sudo bash +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/install.sh | sudo bash ``` [install.sh](deploy/install.sh) 会: @@ -132,13 +132,13 @@ sudo systemctl enable airgate-core ```bash # 升级到最新版本(保留配置和数据) -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/install.sh | sudo bash -s -- upgrade +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/install.sh | sudo bash -s -- upgrade # 安装指定版本 -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/install.sh | sudo bash -s -- -v v0.1.0 +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/install.sh | sudo bash -s -- -v v0.1.0 # 卸载(默认保留 /etc/airgate-core 与 /var/lib/airgate-core) -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/install.sh | sudo bash -s -- uninstall -y +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/install.sh | sudo bash -s -- uninstall -y ``` **常用命令**: @@ -153,7 +153,7 @@ sudo systemctl restart airgate-core # 重启 ```bash mkdir airgate && cd airgate -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/docker-deploy.sh | bash +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/docker-deploy.sh | bash # 检查生成的文件后启动 docker compose up -d @@ -289,12 +289,12 @@ sudo journalctl -u caddy -f # 看证书签发日志 **A. 全容器(推荐,宿主机零依赖)** -宿主机只需要 Docker。父目录同时克隆 [`airgate-sdk`](https://github.com/DouDOU-start/airgate-sdk) 与 [`airgate-core`](https://github.com/DouDOU-start/airgate-core): +宿主机只需要 Docker。父目录同时克隆 [`airgate-sdk`](https://github.com/DevilGenius/airgate-sdk) 与 [`airgate-core`](https://github.com/DevilGenius/airgate-core): ```bash mkdir airgate && cd airgate -git clone https://github.com/DouDOU-start/airgate-sdk.git -git clone https://github.com/DouDOU-start/airgate-core.git +git clone https://github.com/DevilGenius/airgate-sdk.git +git clone https://github.com/DevilGenius/airgate-core.git cd airgate-core docker compose -f deploy/docker-compose.dev.yml up @@ -304,11 +304,11 @@ docker compose -f deploy/docker-compose.dev.yml up **B. 宿主机直跑** -需要 Go 1.25+、Node 22+、本地 Postgres + Redis,以及兄弟目录 [`airgate-sdk`](https://github.com/DouDOU-start/airgate-sdk): +需要 Go 1.25+、Node 22+、本地 Postgres + Redis,以及兄弟目录 [`airgate-sdk`](https://github.com/DevilGenius/airgate-sdk): ```bash -git clone https://github.com/DouDOU-start/airgate-sdk.git -git clone https://github.com/DouDOU-start/airgate-core.git +git clone https://github.com/DevilGenius/airgate-sdk.git +git clone https://github.com/DevilGenius/airgate-core.git cd airgate-core make install # 安装前后端依赖 @@ -411,7 +411,7 @@ airgate-core/ > docker run --rm -vA pluggable runtime for unified AI gateways
@@ -42,13 +42,13 @@ Plugins can be **released, installed, uninstalled, and hot-reloaded independentl | Plugin | Type | Capabilities | Repository | |---|---|---|---| -| **gateway-openai** | gateway | OpenAI Responses / Chat Completions / ChatGPT OAuth / Anthropic protocol translation / WebSocket | [DouDOU-start/airgate-openai](https://github.com/DouDOU-start/airgate-openai) | -| **gateway-claude** | gateway | Claude Messages API gateway: OAuth authorization, TLS fingerprinting, usage monitoring | [DouDOU-start/airgate-claude](https://github.com/DouDOU-start/airgate-claude) | -| **gateway-kiro** | gateway | Kiro (AWS CodeWhisperer) reverse proxy gateway compatible with Anthropic Messages API | [DouDOU-start/airgate-kiro](https://github.com/DouDOU-start/airgate-kiro) | -| **airgate-playground** | extension | AI chat plugin: web chat, multi-model switching, conversation management | [DouDOU-start/airgate-playground](https://github.com/DouDOU-start/airgate-playground) | -| **airgate-studio** | extension | Unified creation center for multimodal image, video, and audio generation | [DouDOU-start/airgate-studio](https://github.com/DouDOU-start/airgate-studio) | -| **payment-epay** | extension | Multi-channel payment: EPay (Xunhu/Rainbow) / Alipay Official / WeChat Pay Official, with recharge page, order management, provider configuration | [DouDOU-start/airgate-epay](https://github.com/DouDOU-start/airgate-epay) | -| **airgate-health** | extension | AI provider health monitoring: active probing, availability/latency aggregation, public status page | [DouDOU-start/airgate-health](https://github.com/DouDOU-start/airgate-health) | +| **gateway-openai** | gateway | OpenAI Responses / Chat Completions / ChatGPT OAuth / Anthropic protocol translation / WebSocket | [DevilGenius/airgate-openai](https://github.com/DevilGenius/airgate-openai) | +| **gateway-claude** | gateway | Claude Messages API gateway: OAuth authorization, TLS fingerprinting, usage monitoring | [DevilGenius/airgate-claude](https://github.com/DevilGenius/airgate-claude) | +| **gateway-kiro** | gateway | Kiro (AWS CodeWhisperer) reverse proxy gateway compatible with Anthropic Messages API | [DevilGenius/airgate-kiro](https://github.com/DevilGenius/airgate-kiro) | +| **airgate-playground** | extension | AI chat plugin: web chat, multi-model switching, conversation management | [DevilGenius/airgate-playground](https://github.com/DevilGenius/airgate-playground) | +| **airgate-studio** | extension | Unified creation center for multimodal image, video, and audio generation | [DevilGenius/airgate-studio](https://github.com/DevilGenius/airgate-studio) | +| **payment-epay** | extension | Multi-channel payment: EPay (Xunhu/Rainbow) / Alipay Official / WeChat Pay Official, with recharge page, order management, provider configuration | [DevilGenius/airgate-epay](https://github.com/DevilGenius/airgate-epay) | +| **airgate-health** | extension | AI provider health monitoring: active probing, availability/latency aggregation, public status page | [DevilGenius/airgate-health](https://github.com/DevilGenius/airgate-health) | ### Installing a plugin @@ -64,7 +64,7 @@ The marketplace **periodically syncs** the latest release of each plugin via the ### Building your own plugin -Pull in [airgate-sdk](https://github.com/DouDOU-start/airgate-sdk) and implement the `GatewayPlugin` interface: +Pull in [airgate-sdk](https://github.com/DevilGenius/airgate-sdk) and implement the `GatewayPlugin` interface: ```go type GatewayPlugin interface { @@ -76,7 +76,7 @@ type GatewayPlugin interface { } ``` -See [airgate-openai](https://github.com/DouDOU-start/airgate-openai) for a complete reference, including Makefile, release workflow, and embedded frontend. +See [airgate-openai](https://github.com/DevilGenius/airgate-openai) for a complete reference, including Makefile, release workflow, and embedded frontend. ## 🛠 Tech Stack @@ -102,7 +102,7 @@ Pick one. Both are production-ready. ### Method 1A: Bare-metal install (systemd; bring your own PostgreSQL + Redis) ```bash -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/install.sh | sudo bash +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/install.sh | sudo bash ``` [install.sh](deploy/install.sh) will: @@ -132,13 +132,13 @@ After the admin UI is up, go to **Plugin Management → Marketplace** to install ```bash # Upgrade to latest (config and data preserved) -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/install.sh | sudo bash -s -- upgrade +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/install.sh | sudo bash -s -- upgrade # Pin a specific version -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/install.sh | sudo bash -s -- -v v0.1.0 +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/install.sh | sudo bash -s -- -v v0.1.0 # Uninstall (keeps /etc/airgate-core and /var/lib/airgate-core by default) -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/install.sh | sudo bash -s -- uninstall -y +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/install.sh | sudo bash -s -- uninstall -y ``` **Common commands**: @@ -153,7 +153,7 @@ sudo systemctl restart airgate-core # restart ```bash mkdir airgate && cd airgate -curl -sSL https://raw.githubusercontent.com/DouDOU-start/airgate-core/master/deploy/docker-deploy.sh | bash +curl -sSL https://raw.githubusercontent.com/DevilGenius/airgate-core/master/deploy/docker-deploy.sh | bash # Review the generated files, then start docker compose up -d @@ -289,12 +289,12 @@ For development or contributions. Pick one of the two paths: **A. Fully containerized (recommended, zero host dependencies)** -The host only needs Docker. Clone [`airgate-sdk`](https://github.com/DouDOU-start/airgate-sdk) and [`airgate-core`](https://github.com/DouDOU-start/airgate-core) into a shared parent directory: +The host only needs Docker. Clone [`airgate-sdk`](https://github.com/DevilGenius/airgate-sdk) and [`airgate-core`](https://github.com/DevilGenius/airgate-core) into a shared parent directory: ```bash mkdir airgate && cd airgate -git clone https://github.com/DouDOU-start/airgate-sdk.git -git clone https://github.com/DouDOU-start/airgate-core.git +git clone https://github.com/DevilGenius/airgate-sdk.git +git clone https://github.com/DevilGenius/airgate-core.git cd airgate-core docker compose -f deploy/docker-compose.dev.yml up @@ -304,11 +304,11 @@ docker compose -f deploy/docker-compose.dev.yml up **B. Run on the host directly** -Requires Go 1.25+, Node 22+, local Postgres + Redis, and the sibling [`airgate-sdk`](https://github.com/DouDOU-start/airgate-sdk) repo: +Requires Go 1.25+, Node 22+, local Postgres + Redis, and the sibling [`airgate-sdk`](https://github.com/DevilGenius/airgate-sdk) repo: ```bash -git clone https://github.com/DouDOU-start/airgate-sdk.git -git clone https://github.com/DouDOU-start/airgate-core.git +git clone https://github.com/DevilGenius/airgate-sdk.git +git clone https://github.com/DevilGenius/airgate-core.git cd airgate-core make install # Install backend & frontend dependencies @@ -411,7 +411,7 @@ airgate-core/ > docker run --rm -v