GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - haliChina/VibeChat: Lightweight LLM chat client (Next.js + Tailwind): switch between local GGUF servers (llama.cpp) and any OpenAI-compatible API (DeepSeek, OpenRouter).

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
assets/readme
assets/readme
 
 
components
components
 
 
lib
lib
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
middleware.ts
middleware.ts
 
 
next.config.mjs
next.config.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.js
postcss.config.js
 
 
tailwind.config.ts
tailwind.config.ts
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

VibeChat — hybrid local and remote LLM chat client

在线体验 · 运行方式 · 安全与隐私

One interface, two inference paths

VibeChat 是一个基于 Next.js、React 与 TypeScript 的混合 LLM 聊天客户端。它可以在同一套界面中切换:

  • 本机运行的 llama.cpp 兼容服务
  • 远程 OpenAI-compatible API

VibeChat 浏览器、本地存储与所选推理端点之间的数据流

功能

  • 本地 / 远程双模式:切换 llama.cpp 与兼容 OpenAI API 的远程端点
  • 流式对话:直接从浏览器请求 /chat/completions
  • 独立标题服务:本地模式可为自动标题配置第二个端口
  • 端点归一化:清理重复斜杠和 /chat/completions 后缀
  • 模型选择:保存可用模型并切换当前模型
  • 本地历史:对话记录保存在浏览器 localStorage
  • 故障提示:区分本地服务、CORS 和远程端点配置问题
  • 响应式界面:侧栏、设置面板与移动端布局

快速开始

git clone https://github.com/haliChina/VibeChat.git
cd VibeChat
npm install
npm run dev

打开 http://localhost:3000,进入设置面板选择本地或远程模式。

生产构建:

npm run build
npm start

运行方式

本地 llama.cpp

启动兼容 OpenAI API 的 llama-server,并允许浏览器跨域访问:

./llama-server \
  -m /path/to/model.gguf \
  --port 8080 \
  --cors '*'

如果启用自动标题,可以在第二个端口运行一个更小的模型:

./llama-server \
  -m /path/to/small-title-model.gguf \
  --port 3000 \
  --cors '*'

--cors '*' 适合本地开发。若服务暴露到局域网或公网,请将允许来源限制为实际的 VibeChat 域名,并增加身份验证。

远程 OpenAI-compatible API

在设置中填写:

Base URL  https://api.example.com/v1
API Key   sk-...
Model     your-model-id

客户端会直接请求规范化后的 Base URL + /chat/completions。

安全与隐私

VibeChat 采用浏览器直连端点的架构。聊天消息、历史配置与 API Key 不会经由项目自建的 Next.js 代理转发,但这不意味着数据不会离开设备:

  • 本地模式:消息发送到你配置的本地 llama.cpp 服务
  • 远程模式:消息和 API Key 会发送到你配置的第三方 API 提供商
  • 对话历史、Base URL、模型列表和 API Key 保存在当前站点的 localStorage

Warning

localStorage 不是机密存储。同源 XSS、恶意浏览器扩展、共享设备用户或被攻陷的浏览器上下文都可能读取 API Key。优先使用低权限、可轮换、有限额度的密钥,不要在公共设备中保存凭据。

线上部署使用 HTTPS 时,浏览器通常会阻止请求明文 HTTP 局域网端点;本地服务还必须正确配置 CORS。需要连接本机 HTTP 服务时,建议在本地运行 VibeChat。

技术栈

  • Next.js 15 App Router
  • React 19
  • TypeScript 5
  • Tailwind CSS 3
  • Geist

项目结构

app/                 # App Router 页面、元数据与全局样式
components/          # 聊天、侧栏、消息和设置界面
lib/types.ts         # 会话与消息类型
middleware.ts        # 安全响应头

License

MIT © 2026 UserHali

About

Lightweight LLM chat client (Next.js + Tailwind): switch between local GGUF servers (llama.cpp) and any OpenAI-compatible API (DeepSeek, OpenRouter).

ai.userhali.com

Topics

chat-clientllama-cppllmchatlocal-llmnextjsopenai-compatibletailwindcss

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.