rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wawaTuna/dsh-free-pi
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Free models for DeepSeek Harness, funded by ads — no API key, no card, one GitHub sign-in.
DeepSeek V4.1 Flash, DeepSeek V4 Flash, GLM 5.3 Flash and Particle, free and unlimited in DSH.
Quick start · Multiple accounts · How it works · Privacy · 简体中文
1 · Install.
dsh plugin --profile web add github:wawaTuna/dsh-free-pi
# Local clone
git clone https://github.com/wawaTuna/dsh-free-pi
dsh plugin --profile web add file:/abs/path/to/dsh-free-pi
Current DSH versions register the plugin's bundle from the package metadata automatically; either way, confirm with dsh --profile web --dump-config (look for the # == dsh-free-pi segment), then restart dsh-web. The free-pi group appears in the model picker.
2 · Sign in. (Accepts free-pi's terms — read Privacy first.) Any of these writes the credentials file the plugin reads (~/.free-pi/agent/credentials.json, 0600):
npx free-pi-cli@latest # official client: run once and sign in
# — or, in the free-pi-plugins monorepo —
node core/login.mjs
Alternatively set the plugin config jwt or the FREEPI_JWT env var. The token is re-read on every request, so signing in again takes effect without restarting DSH.
3 · Verify. Pick DeepSeek V4.1 Flash in the free-pi group of the model picker and send a message.
Each free-pi account is a GitHub account with its own daily budget. DSH has no native multi-account providers, so this plugin rotates over an on-disk account pool itself (~/.free-pi/agent/accounts.json, 0600; credentials.json counts as the first account):
node core/login.mjs --label work # free-pi-plugins monorepo: add ANOTHER GitHub account
Every request takes the next healthy account, quota-aware round-robin:
/me record, never blocking a request;Two accounts = 2 × 15,000 credits a day for metered models; Free Unlimited stays free on every account. To check balances, run node core/quota.mjs (free-pi-plugins monorepo) on the host — per-account handle, tier, remaining credits/USD and refill time. The sibling magpie-free-pi shows the same data in magpie quota.
| Field | Meaning |
|---|---|
jwt |
Optional single-token override; normally empty — file, env and pool are read live |
hiddenModels |
Model ids to hide from the picker (live, no restart) |
free-pi's backend is a plain OpenAI-compatible endpoint (POST https://api.freepi.ai/v1/chat/completions) gated by three things a normal OpenAI client doesn't send: the JWT above, an x-session-id header (a client-chosen lease label — upstream accepts any stable value, which is also why rotation only ever needs to swap the JWT), and an x-client-version header (the server enforces a minimum client version). It has no /v1/models route — the catalogue lives on the unauthenticated GET /client-version.
The plugin follows the dsh-opencode-free skeleton: it builds a pi-ai provider carrying those headers, wraps it in DSH's PiAiAdapter, and registers it with ctx.llm.registerAdapter(["free-pi"], …). Model records start from a built-in snapshot and refresh live from the catalogue. Both this plugin and magpie-free-pi share one reverse-proxy core (JWT / session / catalogue / rotation / quota), which also ships as a standalone OpenAI-compatible proxy in the free-pi-plugins monorepo.
free-pi is funded by ads and by training on session data. Its consent text — which you accept when you sign in — says your coding sessions (prompts, code, files, model responses) are saved as traces, used to train models, and may be shared or sold to third parties; the ad provider receives excerpts of your recent conversation to pick ads. Full terms: https://freepi.ai/terms
Only sign in with accounts and code you are comfortable with that trade. This applies to everything you send through free-pi, from any host.
Daily at 00:00 UTC. node core/quota.mjs shows the exact time per account.
No — it's free-pi's promotion and can end at any time. Metered models keep working on the daily budget either way.
Tokens last ~90 days. Sign in again with whichever route you used before — the plugin picks the new token up on the next request, no restart needed.
Its backend officially serves free-pi's own terminal client. This plugin talks to the same backend the same way, but free-pi could tighten its checks (for example, require live ad sessions).
Issues and PRs are welcome.
MIT — see LICENSE.
Unofficial plugin. Not affiliated with free-pi, DeepSeek, or the model providers. "free-pi", "DeepSeek" and model names belong to their respective owners.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm、deepseek、deepseek-harness、openai-compatible。