Overview

Full name
docker.io/foxhui/webai-2api
Registry
docker.io
Namespace
foxhui
Repository
webai-2api
Cached tags
34
Last synced
07/06/2026, 06:20 AM

Introduction

WebAI 转 OpenAI 兼容 API 代理镜像,将 Web 端 AI 会话封装为标准接口,适合内网统一 LLM 网关接入。

Details

foxhui/webai-2api 运行 Node 代理服务,将 WebAI 类前端转为 /v1/chat/completions 兼容 API。定位为 HTTP API 代理,几乎无状态,配置 cookie/token env;K8s Deployment + Ingress 内网 LLM 网关。

快速启动

docker run -d --name webai-2api \
  -p 8080:8080 \
  -e WEBAI_TOKEN=xxx \
  docker.io/foxhui/webai-2api:latest

推荐实践

docker run -d --name webai-2api \
  --restart unless-stopped \
  -p 8080:8080 \
  -e WEBAI_TOKEN=xxx \
  -e API_KEY=sk-gateway \
  docker.io/foxhui/webai-2api:1.0.0

核心参数说明

  • -p 8080:8080 — OpenAI 兼容 API 端口
  • -e WEBAI_TOKEN — 上游 WebAI 凭据(高敏
  • -e API_KEY — 网关鉴权密钥
  • --restart unless-stopped — 代理持续在线

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: webai-2api
spec:
  replicas: 2
  selector:
    matchLabels:
      app: webai-2api
  template:
    metadata:
      labels:
        app: webai-2api
    spec:
      containers:
        - name: proxy
          image: docker.io/foxhui/webai-2api:1.0.0
          ports:
            - containerPort: 8080
          envFrom:
            - secretRef:
                name: webai-2api-secrets
---
apiVersion: v1
kind: Service
metadata:
  name: webai-2api
spec:
  selector:
    app: webai-2api
  ports:
    - port: 8080
      targetPort: 8080

Ingress 内网;Secret 管理凭据。

Latest tags (20)

View all 34 tags →
TagArchPushed AtSizeDigestSyncWishAction
docker.io/foxhui/webai-2api
:sha-84729fb
linux/amd64linux/arm64
2026/04/24 02:051.2 GBsha256:054f2b14de73
docker.io/foxhui/webai-2api
:latest
linux/amd64linux/arm64
2026/04/24 02:051.2 GBsha256:054f2b14de73
docker.io/foxhui/webai-2api
:sha-51cf592
linux/amd64linux/arm64
2026/04/18 01:041.2 GBsha256:3b90f5688968
docker.io/foxhui/webai-2api
:sha-fe11ac8
linux/amd64linux/arm64
2026/04/13 02:221.2 GBsha256:717c485cfe4c
docker.io/foxhui/webai-2api
:sha-6353806
linux/amd64linux/arm64
2026/04/09 04:251.2 GBsha256:519fccd141a2
docker.io/foxhui/webai-2api
:sha-bf55300
linux/amd64linux/arm64
2026/04/05 03:581.2 GBsha256:05bc0e735df9
docker.io/foxhui/webai-2api
:sha-f629fe0
linux/amd64linux/arm64
2026/03/31 02:581.2 GBsha256:3d45ac6b20a7
docker.io/foxhui/webai-2api
:sha-9687bee
linux/amd64linux/arm64
2026/03/26 21:161.2 GBsha256:30905c43e454
docker.io/foxhui/webai-2api
:sha-2029ef3
linux/amd64linux/arm64
2026/03/23 00:451.2 GBsha256:bb8adae733ea
docker.io/foxhui/webai-2api
:sha-0f33e13
linux/amd64linux/arm64
2026/03/22 00:211.2 GBsha256:b11896ecedf5
docker.io/foxhui/webai-2api
:sha-fd83422
linux/amd64linux/arm64
2026/03/19 17:081.2 GBsha256:4fb7204c3c4e
docker.io/foxhui/webai-2api
:sha-a9240c2
linux/amd64linux/arm64
2026/03/05 03:471.2 GBsha256:959f8ccc8e57
docker.io/foxhui/webai-2api
:sha-6d757d3
linux/amd64linux/arm64
2026/02/27 01:321.2 GBsha256:71356082028c
docker.io/foxhui/webai-2api
:sha-4527f00
linux/amd64linux/arm64
2026/02/22 16:181.2 GBsha256:569565d5c3d4
docker.io/foxhui/webai-2api
:sha-aa6ab79
linux/amd64linux/arm64
2026/02/16 14:281.2 GBsha256:232ea4566b9d
docker.io/foxhui/webai-2api
:sha-24f037c
linux/amd64linux/arm64
2026/02/10 20:461.2 GBsha256:8f3a2e783b32
docker.io/foxhui/webai-2api
:sha-a68e0d8
linux/amd64linux/arm64
2026/02/10 18:541.2 GBsha256:a95bc071cc7b
docker.io/foxhui/webai-2api
:sha-0fdfd3a
linux/amd64linux/arm64
2026/01/28 05:081.2 GBsha256:7b7e6bf6a8ab
docker.io/foxhui/webai-2api
:sha-1cf883e
linux/amd64linux/arm64
2026/01/25 04:131.2 GBsha256:ffe08d095e17
docker.io/foxhui/webai-2api
:sha-a85b731
linux/amd64linux/arm64
2026/01/24 03:281.2 GBsha256:39d2a3d40e2a