qwen-gate-maintain

Rebuild, patch, and restart the qwen-gate Qwen API proxy on Zo workspaces.

Updated Sep 5, 2026
One-click install
npx skills add https://github.com/SillyHippy/zo-skills --skill qwen-gate-maintain-sillyhippy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: qwen-gate-maintain
Source: https://github.com/SillyHippy/zo-skills/tree/main/skills/qwen-gate-maintain
Command: npx skills add https://github.com/SillyHippy/zo-skills --skill qwen-gate-maintain-sillyhippy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Maintaining the qwen-gate OpenAI-compatible proxy for Qwen models is error-prone: git pulls wipe critical patches, reverse-proxy BASE_PATH issues break the dashboard, and misconfigured TOOL_CALLING settings cause empty responses from Qwen's free API. This Skill provides the exact procedures, patches, and scripts to keep the service running correctly. ## Core Features & Use Cases - Rebuild and Restart Automation: Scripts for safe stop, build, and start cycles via supervisorctl, plus health and Hermes connectivity verification. - Patch Re-application: Applies two critical patches after git pull or fresh clone — BASE_PATH reverse-proxy rewriting and tool-stripping/context-cap fixes for Qwen's free tier. - Safe Custom Instructions: Provides a pre-merged system prompt that preserves qwen-gate's default context.txt and tool-result handling while adding XML tool-call format guidance. - Use Case: After pulling the latest qwen-gate source, run the full recovery procedure to restore config, apply patches, rebuild with bun, update the supervisor block, and verify the service on port 26405. ## Quick Start Use the qwen-gate-maintain skill to rebuild and restart the qwen-gate service and verify it is healthy.

Frequently Asked Questions about qwen-gate-maintain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I rebuild and restart qwen-gate after source changes?▼

Stop the service with supervisorctl, kill leftover bun processes, run bun run build in the project directory, then start it again via supervisorctl. The included rebuild.sh script automates this full sequence and runs a health check on port 26405.

How do I restore qwen-gate after a git pull?▼

Copy the recommended config.json from the skill's references, run apply-patches.sh to re-apply the BASE_PATH and tool-stripping patches, then bun install, bun run build, update the supervisor block, and restart. Finish by running verify.sh to confirm health.

Does TOOL_CALLING=false disable tool calling in qwen-gate?▼

No, it only stops sending the large structured local_mcp tool schemas that cause empty responses on Qwen's free API. Tools are still listed as plain text, and Qwen's XML-format tool calls are parsed back into standard OpenAI tool_calls for Hermes.

Why does the qwen-gate dashboard break behind a reverse proxy?▼

Dashboard links use absolute paths like /dashboard/..., which break under a prefix such as /qwen. The BASE_PATH patch reads the X-Forwarded-Prefix header and rewrites href and src attributes so assets load correctly.

Can I add custom instructions to qwen-gate without breaking tool results?▼

Yes, but enabling USE_CUSTOM_INSTRUCTION replaces the entire default system prompt, which contains critical context.txt and tool-result rules. Use the pre-merged safe-custom-instruction.txt file, which preserves the default behavior while adding tool-call format guidance.