Logo Workbuddy Cli Model Bridge

Workbuddy Cli Model Bridge

Cộng đồng
zjp1997720
workbuddy-cli-model-bridge

Cài đặt, kiểm tra, sửa chữa và quản lý cầu nối CLIProxyAPI chỉ hoạt động trên loopback, đăng ký các mô hình Codex, Grok, Antigravity/Gemini, GLM Coding Plan hoặc mô hình CLI mới được thêm vào WorkBuddy bằng gói đăng ký. Dùng kỹ năng này khi người dùng muốn kết nối mô hình CLI hoặc agent cục bộ với WorkBuddy, cài đặt CLIProxyAPI, thêm GLM-5.3 bằng khóa Coding Plan, thêm hoặc sửa mô hình tùy chỉnh trong WorkBuddy, giữ nguyên khả năng xử lý hình ảnh/công cụ/lập luận/Fast, kết nối thêm nhà cung cấp CLI hoặc chẩn đoán mô hình WorkBuddy ngừng hoạt động. Kỹ năng này ưu tiên macOS và vẫn nên được dùng ngay cả khi người dùng chỉ nêu tên mô hình hoặc cho biết API WorkBuddy cục bộ đã hết hạn.

Add to TypingMind

Tổng quan

Nhà phát hànhzjp1997720
Kho mãzhijian-skills
Tên kỹ năngworkbuddy-cli-model-bridge
Sao
780
Bản fork
99
Tệp đi kèm
13
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 13 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được zjp1997720 công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Workbuddy Cli Model Bridge trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/zjp1997720/zhijian-skills/tree/main/skills/workbuddy-cli-model-bridge
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Workbuddy Cli Model Bridge trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Workbuddy Cli Model Bridge ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Workbuddy Cli Model Bridge với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Workbuddy Cli Model Bridge làm được gì?

Cài đặt, kiểm tra, sửa chữa và quản lý cầu nối CLIProxyAPI chỉ hoạt động trên loopback, đăng ký các mô hình Codex, Grok, Antigravity/Gemini, GLM Coding Plan hoặc mô hình CLI mới được thêm vào WorkBuddy bằng gói đăng ký. Dùng kỹ năng này khi người dùng muốn kết nối mô hình CLI hoặc agent cục bộ với WorkBuddy, cài đặt CLIProxyAPI, thêm GLM-5.3 bằng khóa Coding Plan, thêm hoặc sửa mô hình tùy chỉnh trong WorkBuddy, giữ nguyên khả năng xử lý hình ảnh/công cụ/lập luận/Fast, kết nối thêm nhà cung cấp CLI hoặc chẩn đoán mô hình WorkBuddy ngừng hoạt động. Kỹ năng này ưu tiên macOS và vẫn nên được d...

Vì sao nên dùng Workbuddy Cli Model Bridge trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Workbuddy Cli Model Bridge là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Workbuddy Cli Model Bridge trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/zjp1997720/zhijian-skills/tree/main/skills/workbuddy-cli-model-bridge. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Workbuddy Cli Model Bridge?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Workbuddy Cli Model Bridge với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Workbuddy Cli Model Bridge với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Workbuddy Cli Model Bridge có miễn phí không?

Có. Kỹ năng này được zjp1997720 phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇