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 →| Tag | Arch | Pushed At | Size | Digest | Sync | Wish | Action |
|---|---|---|---|---|---|---|---|
docker.io/foxhui/webai-2api :sha-84729fb | linux/amd64linux/arm64 | 2026/04/24 02:05 | 1.2 GB | sha256:054f2b14de73… | |||
docker.io/foxhui/webai-2api :latest | linux/amd64linux/arm64 | 2026/04/24 02:05 | 1.2 GB | sha256:054f2b14de73… | |||
docker.io/foxhui/webai-2api :sha-51cf592 | linux/amd64linux/arm64 | 2026/04/18 01:04 | 1.2 GB | sha256:3b90f5688968… | |||
docker.io/foxhui/webai-2api :sha-fe11ac8 | linux/amd64linux/arm64 | 2026/04/13 02:22 | 1.2 GB | sha256:717c485cfe4c… | |||
docker.io/foxhui/webai-2api :sha-6353806 | linux/amd64linux/arm64 | 2026/04/09 04:25 | 1.2 GB | sha256:519fccd141a2… | |||
docker.io/foxhui/webai-2api :sha-bf55300 | linux/amd64linux/arm64 | 2026/04/05 03:58 | 1.2 GB | sha256:05bc0e735df9… | |||
docker.io/foxhui/webai-2api :sha-f629fe0 | linux/amd64linux/arm64 | 2026/03/31 02:58 | 1.2 GB | sha256:3d45ac6b20a7… | |||
docker.io/foxhui/webai-2api :sha-9687bee | linux/amd64linux/arm64 | 2026/03/26 21:16 | 1.2 GB | sha256:30905c43e454… | |||
docker.io/foxhui/webai-2api :sha-2029ef3 | linux/amd64linux/arm64 | 2026/03/23 00:45 | 1.2 GB | sha256:bb8adae733ea… | |||
docker.io/foxhui/webai-2api :sha-0f33e13 | linux/amd64linux/arm64 | 2026/03/22 00:21 | 1.2 GB | sha256:b11896ecedf5… | |||
docker.io/foxhui/webai-2api :sha-fd83422 | linux/amd64linux/arm64 | 2026/03/19 17:08 | 1.2 GB | sha256:4fb7204c3c4e… | |||
docker.io/foxhui/webai-2api :sha-a9240c2 | linux/amd64linux/arm64 | 2026/03/05 03:47 | 1.2 GB | sha256:959f8ccc8e57… | |||
docker.io/foxhui/webai-2api :sha-6d757d3 | linux/amd64linux/arm64 | 2026/02/27 01:32 | 1.2 GB | sha256:71356082028c… | |||
docker.io/foxhui/webai-2api :sha-4527f00 | linux/amd64linux/arm64 | 2026/02/22 16:18 | 1.2 GB | sha256:569565d5c3d4… | |||
docker.io/foxhui/webai-2api :sha-aa6ab79 | linux/amd64linux/arm64 | 2026/02/16 14:28 | 1.2 GB | sha256:232ea4566b9d… | |||
docker.io/foxhui/webai-2api :sha-24f037c | linux/amd64linux/arm64 | 2026/02/10 20:46 | 1.2 GB | sha256:8f3a2e783b32… | |||
docker.io/foxhui/webai-2api :sha-a68e0d8 | linux/amd64linux/arm64 | 2026/02/10 18:54 | 1.2 GB | sha256:a95bc071cc7b… | |||
docker.io/foxhui/webai-2api :sha-0fdfd3a | linux/amd64linux/arm64 | 2026/01/28 05:08 | 1.2 GB | sha256:7b7e6bf6a8ab… | |||
docker.io/foxhui/webai-2api :sha-1cf883e | linux/amd64linux/arm64 | 2026/01/25 04:13 | 1.2 GB | sha256:ffe08d095e17… | |||
docker.io/foxhui/webai-2api :sha-a85b731 | linux/amd64linux/arm64 | 2026/01/24 03:28 | 1.2 GB | sha256:39d2a3d40e2a… |