Logo van Workbuddy Cli Model Bridge

Workbuddy Cli Model Bridge

Community
zjp1997720
workbuddy-cli-model-bridge

Installeer, controleer, herstel en beheer een uitsluitend via loopback bereikbare CLIProxyAPI-bridge die op abonnementen gebaseerde Codex-, Grok-, Antigravity/Gemini- en GLM Coding Plan-modellen, of nieuw toegevoegde CLI-modellen, registreert in WorkBuddy. Gebruik deze skill wanneer de gebruiker vraagt om een lokaal CLI- of agentmodel met WorkBuddy te verbinden, CLIProxyAPI te installeren, GLM-5.3 toe te voegen met een Coding Plan-sleutel, een aangepast WorkBuddy-model toe te voegen of te herstellen, mogelijkheden voor afbeeldingen, tools, redeneren of Fast te behouden, een andere CLI-provider aan te sluiten of een WorkBuddy-model te diagnosticeren dat niet meer werkt. Deze skill is in de eerste plaats bedoeld voor macOS en moet ook worden gebruikt als de gebruiker alleen de modelnaam noemt of zegt dat de lokale WorkBuddy-API is verlopen.

Add to TypingMind

Overzicht

Uitgeverzjp1997720
Repositoryzhijian-skills
Skillnaamworkbuddy-cli-model-bridge
Sterren
780
Forks
99
Meegeleverde bestanden
13
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 13

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door zjp1997720 op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Workbuddy Cli Model Bridge in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/zjp1997720/zhijian-skills/tree/main/skills/workbuddy-cli-model-bridge
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zjp1997720/zhijian-skills.git /tmp/zhijian-skills
mkdir -p .claude/skills
cp -r /tmp/zhijian-skills/skills/workbuddy-cli-model-bridge .claude/skills/workbuddy-cli-model-bridge
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Workbuddy Cli Model Bridge in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Workbuddy Cli Model Bridge automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Workbuddy Cli Model Bridge niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

WorkBuddy CLI Model Bridge

Turn supported CLI subscriptions into verified WorkBuddy custom-model entries through CLIProxyAPI. Use the bundled script for discovery, installation, OAuth handoff, capability probes, and idempotent WorkBuddy updates. Keep model claims tied to real probes; a model name or marketing page is not evidence that a particular proxy route preserves the capability.

Resolve the Skill directory

Resolve this loaded Skill's directory and use its absolute path as <skill-dir>. Do not assume a specific installation root.

The deterministic entry point is:

bash
python3 <skill-dir>/scripts/bridge.py

Default workflow

1. Audit before changing anything

bash
python3 <skill-dir>/scripts/bridge.py audit

Read the JSON findings. The audit redacts secrets and detects:

  • Homebrew, CLIProxyAPI, active config, bind address, and proxy reachability
  • WorkBuddy initialization and existing model count
  • bundled and local Provider manifests
  • CLI executables and login signals without reading token contents
  • CLIProxyAPI auth-file counts without exposing account names

Treat an existing CLI login as a discovery signal. CLIProxyAPI may still require its own OAuth grant; do not copy another CLI's token file.

2. Bootstrap CLIProxyAPI when required

Preview:

bash
python3 <skill-dir>/scripts/bridge.py bootstrap

Apply the plan when the user asked to install, configure, repair, or converge the bridge:

bash
python3 <skill-dir>/scripts/bridge.py bootstrap --apply

The request to set up the bridge authorizes reversible Homebrew installation, loopback service startup, a dedicated random proxy client key, secure local state, and timestamped backups. Pause only when:

  • Homebrew itself is missing and its installer requires administrator interaction
  • an existing proxy listens beyond loopback; explain the remote-client impact before using --allow-rebind-local
  • an overlapping deployment or config conflict makes ownership ambiguous

Keep a healthy existing installation in place. Prefer official Homebrew installation for a new macOS setup.

3. Authorize only relevant Providers

Bundled OAuth Provider IDs are codex, xai-grok, and antigravity. Authorize one when the user requested it or the audit found its CLI/login signal and CLIProxyAPI has no matching auth/model route.

bash
python3 <skill-dir>/scripts/bridge.py authorize codex
python3 <skill-dir>/scripts/bridge.py authorize xai-grok
python3 <skill-dir>/scripts/bridge.py authorize antigravity

The command delegates to CLIProxyAPI's native OAuth flag. Tell the user to approve the browser page, then continue automatically. Never paste, print, transform, or reuse OAuth tokens. Secure resulting auth JSON files to owner-only permissions.

Bundled glm-coding is a Coding Plan API-key Provider, not OAuth. Do not run authorize glm-coding. Follow glm-coding-plan.md: add the official coding /paas/v4 route to CLIProxyAPI, then sync --providers glm-coding. Do not use 智谱清言 website login.

Do not authorize unrelated Providers merely because they are bundled.

4. Probe and synchronize WorkBuddy

Pass only the relevant Provider IDs:

bash
python3 <skill-dir>/scripts/bridge.py sync --providers codex,xai-grok,glm-coding --apply

The sync command:

  • fetches the live /v1/models list
  • selects recommended chat/agent models from Provider manifests
  • probes text, SSE streaming, tools, images, and reasoning controls where declared
  • resolves token limits by exact model ID, using Provider-declared catalogs before sourced manifest metadata
  • refuses to register a model with an unknown input/output limit or a rejected output-limit probe
  • skips models whose text or streaming probes fail
  • downgrades optional capability flags when their probes fail
  • backs up and atomically updates ~/.workbuddy/models.json
  • preserves manual entries and stale managed entries
  • refuses to overwrite a manual entry with the same model ID
  • records ownership separately under ~/.config/workbuddy-cli-model-bridge/

Do not use --skip-probes for a live setup. That option exists for deterministic offline tests only.

When the user explicitly requests Fast mode and no Fast model appears, read the Fast-model section in troubleshooting.md. A Fast alias needs both a distinct CLIProxyAPI route and verified priority semantics; never relabel an ordinary model as Fast.

A reasoning probe verifies control compatibility. It cannot expose private chain of thought. For teaching or screen recording, ask the model to emit a deliberate problem decomposition as normal answer content.

WorkBuddy represents each custom model as a separate entry. This Skill registers verified entries; it does not change the user's currently selected conversation model.

5. Verify the application consumed the change

Run the audit again. If WorkBuddy is already open, inspect its current main-thread log for a models.json changed or Loaded custom models config event. If no reload event appears, ask the user to reopen model settings or start a new conversation; do not rewrite the same config repeatedly.

Report:

  • CLIProxyAPI version/path and local endpoint
  • authorized Providers, without account identifiers
  • models added or updated
  • capability probe results
  • conflicts, skipped models, and preserved stale entries
  • backup paths and any remaining user action
  • effective input/output token limits and their non-secret metadata source

Never include API keys, OAuth URLs containing one-time codes, token file contents, or raw request bodies.

Repair workflow

For an expired or broken model:

  1. Run audit and distinguish proxy-down, missing key, missing OAuth, unavailable model, Provider quota, and WorkBuddy-cache failures.
  2. Start or repair the existing service before reinstalling anything.
  3. For a recovered quota followed by persistent 503 auth_unavailable, follow Quota recovered but 503 persists before reauthorizing.
  4. Rerun authorize <provider> only when auth is absent or an authentication-specific probe fails.
  5. Rerun sync --providers <affected-provider> --apply.
  6. Verify a real text request and every declared optional capability.

Do not rotate the WorkBuddy API key merely because a Provider OAuth session changed. The proxy client key and upstream OAuth credentials have different lifecycles.

Read troubleshooting.md for failure classification and rollback guidance.

Add a new CLI Provider

Read both:

Prefer, in order:

  1. CLIProxyAPI native OAuth Provider
  2. official OpenAI-compatible endpoint
  3. declarative model alias/protocol mapping
  4. a bounded local adapter as a separately disclosed last resort

Save machine-local manifests under:

text
~/.config/workbuddy-cli-model-bridge/providers.d/<provider-id>.json

Validate before use:

bash
python3 <skill-dir>/scripts/bridge.py validate-provider ~/.config/workbuddy-cli-model-bridge/providers.d/<provider-id>.json

Then authorize and sync by the new Provider ID. A new manifest becomes reusable by every Agent on the same machine without modifying this Skill. Promote it into the public Skill only after isolated tests prove installation, authentication handoff, model selection, capability accuracy, and rollback behavior.

Safety boundaries

Read security-boundaries.md before changing service exposure, credentials, or adding a local adapter.

  • Bind the proxy to loopback and keep remote management disabled.
  • Store bridge secrets, OAuth files, WorkBuddy config, and credential-bearing backups with mode 0600.
  • Use only accounts the user owns and respect Provider subscription terms and rate limits.
  • Never implement ban evasion, account sharing, automated block reset, token extraction, or hidden traffic cloaking.
  • Preserve user-created WorkBuddy models and unrelated CLIProxyAPI configuration.
  • Treat Provider manifests as code: validate their source and inspect local overrides before executing login flags.

Completion gate

Completion requires:

  • audit has no unresolved security error
  • CLIProxyAPI is reachable on loopback with the dedicated client key
  • each registered model passed text and streaming probes
  • every enabled optional capability passed its probe
  • every registered model has sourced input/output limits and passed the bounded output-limit probe
  • WorkBuddy loaded the resulting model list
  • repeated sync is idempotent
  • backups and rollback paths are reported

If any gate remains unproven, report the model as unverified rather than declaring success.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Workbuddy Cli Model Bridge?

Installeer, controleer, herstel en beheer een uitsluitend via loopback bereikbare CLIProxyAPI-bridge die op abonnementen gebaseerde Codex-, Grok-, Antigravity/Gemini- en GLM Coding Plan-modellen, of nieuw toegevoegde CLI-modellen, registreert in WorkBuddy. Gebruik deze skill wanneer de gebruiker vraagt om een lokaal CLI- of agentmodel met WorkBuddy te verbinden, CLIProxyAPI te installeren, GLM-5.3 toe te voegen met een Coding Plan-sleutel, een aangepast WorkBuddy-model toe te voegen of te herstellen, mogelijkheden voor afbeeldingen, tools, redeneren of Fast te behouden, een andere CLI-provi...

Waarom Workbuddy Cli Model Bridge gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Workbuddy Cli Model Bridge bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Workbuddy Cli Model Bridge in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/zjp1997720/zhijian-skills/tree/main/skills/workbuddy-cli-model-bridge. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Workbuddy Cli Model Bridge gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Workbuddy Cli Model Bridge gebruiken?

Zoveel als je wilt. Je kunt Workbuddy Cli Model Bridge gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Workbuddy Cli Model Bridge gratis?

Ja. Deze skill is door zjp1997720 op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇