MCPcopy Index your code
hub / github.com/Jazee6/cloudflare-ai-web

github.com/Jazee6/cloudflare-ai-web @v4.7.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v4.7.0 ↗ · + Follow
188 symbols 480 edges 57 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cloudflare AI Web

中文 | English

readme.png

部署

Vercel

Deploy with Vercel

示例:https://ai.jaze.top

额度用完时可能无法响应,建议自行部署

Docker

docker run -d --name cloudflare-ai-web \
  -e CF_ACCOUNT_ID=YOUR_CF_ACCOUNT_ID \
  -e CF_WORKERS_AI_TOKEN=YOUR_CF_WORKERS_AI_TOKEN \
  -p 3000:3000 \
  --restart=always \
  jazee6/cloudflare-ai-web

特性

  • 使用 Cloudflare Workers AI 快速搭建多模型AI平台
  • 支持 Cloudflare AI Gateway 接入Gemini等模型
  • 支持 Serverless 快速部署
  • 聊天记录本地存储
  • 支持设置访问密码

部署说明

环境变量列表

名称 描述 必填
CF_ACCOUNT_ID Cloudflare 账户ID
CF_WORKERS_AI_TOKEN Cloudflare Workers AI令牌
APP_PASSWORD 访问密码
CF_AI_GATEWAY_NAME Cloudflare AI网关名称
CF_AI_GATEWAY_TOKEN Cloudflare AI网关授权令牌
NEXT_PUBLIC_CF_AI_GATEWAY_PROVIDERS Cloudflare AI网关提供者
GOOGLE_API_KEY Google AI Studio 令牌

CF_WORKERS_AI_TOKEN

  • 管理账户 - 账户API令牌 - 创建令牌 - 使用Workers AI模板创建

NEXT_PUBLIC_CF_AI_GATEWAY_PROVIDERS

支持的提供者:

  • google

多个提供者使用逗号分隔

赞助

Click Me

Extension points exported contracts — how you extend this code

GroupedSessions (Interface)
(no doc)
components/app-sidebar.tsx
onSendMessageProps (Interface)
(no doc)
components/chat-input.tsx
Model (Interface)
(no doc)
lib/models.tsx
Session (Interface)
(no doc)
lib/db.ts
Data (Interface)
(no doc)
app/api/chat/route.ts
WindowEventMap (Interface)
(no doc)
hooks/use-local-storage.ts
ImagesDataPart (Interface)
(no doc)
lib/db.ts

Core symbols most depended-on inside this repo

cn
called by 97
lib/utils.ts
hasTransition
called by 4
components/ui/text-effect.tsx
useSidebar
called by 4
components/ui/sidebar.tsx
useFormField
called by 4
components/ui/form.tsx
fileToBase64
called by 2
components/chat-input.tsx
createVariantsWithTransition
called by 2
components/ui/text-effect.tsx
getStoredModel
called by 2
lib/utils.ts
getStoredModelId
called by 2
lib/utils.ts

Shape

Function 181
Interface 7

Languages

TypeScript100%

Modules by API surface

components/ui/sidebar.tsx25 symbols
components/ui/dropdown-menu.tsx15 symbols
components/ui/alert-dialog.tsx11 symbols
components/ui/sheet.tsx10 symbols
components/ui/drawer.tsx10 symbols
components/ui/dialog.tsx10 symbols
components/ui/command.tsx9 symbols
components/ui/form.tsx7 symbols
components/logo.tsx7 symbols
components/chat-input.tsx7 symbols
lib/utils.ts4 symbols
components/ui/tooltip.tsx4 symbols

For agents

$ claude mcp add cloudflare-ai-web \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page