Janus README

项目的 README,来自 github.com/Vibra-Ingenn/Janus。合并为一个 markdown 文件:README.md。

Janus logo

Janus: run local AI models on your PC, managed from one console

Your models are scattered: some in LM Studio, some in Ollama, a few in Downloads. Every app wants its own setup. Janus finds them all, runs the one that fits your graphics card, and gives every app one address to use.

One program, no Python, no Docker. Double-click it and the console opens in your browser.

Janus console: My Models, with the loaded model, graphics memory and the models found on this PC

Free and open source (MIT).

Privacy: Janus can keep a request log (time, app, model, where it ran — never your words). By default it checks GitHub once a day for a newer release (Vibra-Ingenn/Janus). Turn that off in Settings with Check for updates, or use Use only this PC (that also disables update checks).


What's new in 0.3.0

What Janus does


Quick start (Windows)

  1. Download the latest Janus-windows.zip from Releases.
  2. Unzip it anywhere.
  3. Double-click janus.exe. Your browser opens the console at http://127.0.0.1:8990.
  4. Pick a model in My Models, or get one in Discover.

To stop Janus, close its window. Closing the browser tab keeps it running for your apps.


Janus console: Test screen with a reply from the loaded model

Janus console: Server screen with API address, client snippets, and network settings

Connect your app

Setting Value
Base URL http://127.0.0.1:8990/v1
API key leave blank (or any text, if the app insists)
Model local

Works with anything that speaks the OpenAI API: Cursor, Cline, VS Code extensions, Open WebUI, scripts.

curl

curl http://127.0.0.1:8990/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"local","messages":[{"role":"user","content":"Hello!"}]}'

Python (openai package)

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:8990/v1", api_key="none")
reply = client.chat.completions.create(
    model="local",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(reply.choices[0].message.content)

Streaming works too: add "stream": true (or stream=True in Python).


API

Method Path What it does
POST /v1/chat/completions Chat (streaming supported)
GET /v1/models Model list
GET /models/list Every model file Janus found
POST /models/load Switch model without restarting
POST /models/unload Free the graphics memory
GET /engine/status Loaded model, backend, memory used
GET /health {ok, id, version}
GET /version Version, build time and commit
GET /tool.json Janus's tool card

Settings without the console

Janus console: Settings screen for GPU layers, memory budget, context length, and chat template

Everything in Settings can also be set as an environment variable or in a .env file next to janus.exe. The most used:

Variable Default Meaning
JANUS_MODEL_PATH picked for you A specific .gguf file to load
JANUS_MODEL_SEARCH_PATHS Extra folders to search, separated by ;
INFERENCE_BACKEND vulkan vulkan or cpu
JANUS_GPU_LAYERS -1 -1 = all layers on the graphics card, 0 = CPU only
JANUS_CTX_SIZE 16384 Working memory (context) size; Janus steps down to 8192, then 4096, if it doesn't fit
JANUS_MAX_TOKENS until the context is full Longest reply
JANUS_LISTEN_ADDR 127.0.0.1:8990 Address and port
JANUS_NO_BROWSER Set to 1 to stop the browser opening at start

Build from source

Windows (Go 1.25+):

git clone https://github.com/Vibra-Ingenn/Janus.git
cd Janus
.\build.ps1
.\dist\janus.exe

build.ps1 downloads the llama.cpp Vulkan files and builds dist\janus.exe. After that, Rebuild Janus.bat closes the running copy, rebuilds and starts the new one.

Linux (Go 1.25+, Vulkan or CPU):

git clone https://github.com/Vibra-Ingenn/Janus.git
cd Janus
./build.sh
./dist/janus

Things that trip people up

Problem What's going on Fix
A rebuild "didn't take" Windows can't replace a running .exe. Use Rebuild Janus.bat, or close Janus's window first.
A Janus you can't close It was started from an admin window; normal windows can't close admin programs. Run Janus from a normal window. To clear one, close it from an admin window.
"Port is in use" Another program holds port 8990. Janus names it in its window. Close that program, or change the port in Settings.
First reply is slow The model is loading into memory. Normal: 10-60 seconds. Smaller files (Q4) load faster.
"Engine failed to start" Graphics driver problem. Update the driver, or set the backend to CPU in Settings.

Works better together

Janus runs fine on its own. It's also one of a set of free tools that find each other through their tool cards:


Thanks

To thalisantunes for the Linux support (#2). Contributions are welcome; see CONTRIBUTING.md.

Like it?

Janus is free and stays free. If it saves you time, a star on GitHub helps other people find it. Using an AI assistant? Ask your AI to check out adeptuscamini.com.

License

MIT, see LICENSE.

Recusamus eadem fracta accipere. Nos aliter aedificamus.
We refuse to accept the same broken things, we build differently!

Janus (Vibra-Ingenn/Janus)

正在搜索数据库…

这是什么?Janus 是一个单一的 Go 二进制文件,可以在你的机器(GPU 或 CPU)上运行本地 .gguf 语言模型,并暴露兼容 OpenAI 的 API,让你无需 Python、Docker 或 Ollama 就能使用本地模型。
这是聊天应用还是本地 API 服务器?它是一个以单个可执行文件(Windows 上为 janus.exe)运行的本地 API 服务器——没有内置聊天界面,你通过 curl、脚本或任何兼容 OpenAI 的客户端与它交互。
怎么把它跑起来?克隆仓库,在 Windows 上运行 build.ps1(或在 Linux 上运行 build.sh)编译出 dist/janus.exe,把一个 .gguf 文件放进 models/ 文件夹,编辑 .env 指向它,然后运行该二进制文件。
构建之前需要装什么?构建需要 Go 1.25+;建议使用支持 Vulkan 的 GPU(AMD/Intel/NVIDIA)来加速,否则会回退到 CPU。
有什么平台或构建上的坑需要知道吗?Linux 仅支持 amd64,macOS/arm64 明确未测试且不受支持;在 Windows 上,重新构建之前必须先在任务管理器中结束正在运行的 janus.exe,否则它会悄悄继续运行旧的二进制文件。
Janus 能和 Cursor 或 Cline 这类编程工具一起用吗?可以。由于它在 /v1/chat/completions 等端点上暴露兼容 OpenAI 的 API,你可以把 Cursor、Cline 或任何兼容 OpenAI 的客户端指向它来使用本地模型。
能不能不重启服务器就切换模型?可以,/models/load 端点可以热切换已加载的 .gguf 模型,无需重启 Janus。
它支持推理(思考)模型吗?支持,Janus 支持思考模型,并把模型的推理过程拆分到响应中单独的 reasoning_content 字段。
为什么不选 Ollama 而选这个?Janus 以单个零依赖的二进制文件发布,无需 Python、Docker 或 Ollama,使用 Vulkan 在 AMD、Intel 和 NVIDIA 显卡上进行 GPU 加速,并能从 GGUF 元数据自动检测聊天模板。
大小
1.4 MB
星标
136
时长
2个月
提交 · 90 天