MYCF711/freebuff-auth--packages-dsh ↗★ 0

dsh-freebuff-provider

提供本地兼容接口以调用 Freebuff 免费模型 适合想要在本地无缝接入并使用 Freebuff 平台免费模型及流式工具调用的用户。

套件
dsh-freebuff-provider
相容性
待驗證
版本
0.3.0-beta.1
授權
NOASSERTION
最近更新
2026年10月24日

安裝

此插件尚未提供可驗證的 bundle,或相容性檢查未通過。請先閱讀倉庫說明。 閱讀完整 README ↗

dsh-freebuff-provider

Freebuff in DeepSeek Harness — a local OpenAI-compatible endpoint that serves Freebuff's free models with a multi-account pool and streaming tool calls.

Unofficial. Not affiliated with Codebuff or Freebuff.

Install

dsh plugin --profile desktop add dsh-freebuff-provider

Run the gateway

npx freebuff-gateway

It listens on 127.0.0.1:8937 and exposes:

GET  /v1/models
POST /v1/chat/completions     tools / tool_choice / stream supported
GET  /healthz
GET  /freebuff/usage          freebucks balance and daily allowance

Needs credentials from a Freebuff sign-in. The gateway reads ~/.config/manicode/device-key.json and credentials.json, written by the official CLI after one sign-in.

set FREEBUFF_HOME=D:\path\to\freebuff-mac   # optional
set FREEBUFF_GATEWAY_PORT=8937              # optional

Point DSH at it

Add to ~/.dsh/profiles//cordis.patch.yml:

- id: llm-pi-ai
  name: "@deepseek-ai/dsh-llm-pi-ai"
  config:
    providers:
      freebuff:
        displayName: Freebuff
        apiKeyEnv: FREEBUFF_LOCAL_KEY
        api: openai-completions
        baseURL: http://127.0.0.1:8937/v1
        models:
          - id: freebuff/solar-pro4
            name: Solar Pro 4 · 0fb
            contextWindow: 1048576
            maxTokens: 32768
            input: [text, image]
set FREEBUFF_LOCAL_KEY=local-freebuff

Generate that block instead of writing it by hand:

import { patchEntry } from 'dsh-freebuff-provider'
console.log(JSON.stringify(patchEntry(8937), null, 2))

Which models

idPriceNotes
freebuff/solar-pro40fbUnlimited tier, 1M context, images
freebuff/solar-mini-40fbUnlimited tier
freebuff/nemotron-3.5-lightning0fbUnlimited tier
freebuff/glyph-cluster0fbUnlimited tier, can take minutes per reply
freebuff/mimo-v2.6-flash-slow5fb
freebuff/mimo-v2.6-flash-fast10fb
freebuff/deepseek-v4.1-flash15fbRecommended by Freebuff
freebuff/glm-5.3-flash20fb

0fb models cost no freebucks but still consume one of the day's session windows. glyph-cluster is not suitable for interactive use.

Don't share an account with magpie

Freebuff allows one session per account. Running this gateway and magpie-freebuff-provider on the same Freebuff account makes them take each other's session away. Use one, or use two accounts.

License

MIT.