qoder-workflow README

The project's README from github.com/d4ncboz/qoder-workflow. As one markdown file: README.md.

⚡ Qoder Workflow: Unified Suite & AI Gateway

Comprehensive, modular framework and high-performance OpenAI-compatible gateway integrating all essential capabilities of the Qoder ecosystem.


🏗️ Unified 5-Stage Architecture

Qoder Workflow seamlessly integrates all functional modules into an end-to-end framework:

┌──────────────────────────────────────────────────────────────────────────────────┐
│                             UNIFIED QODER SUITE                                  │
├──────────────────────────────────────────────────────────────────────────────────┤
│                                                                                  │
│  [Stage 1: Provisioner & Patcher] ──► [Stage 2: Harvester] ──► [Stage 3: Decrypt] │
│  (Auth, SSO & Machine Patcher)        (PAT Generator pt-*)     (AES-CBC Session) │
│                                                                        │         │
│                                                                        ▼         │
│  [Stage 5: OpenAI & Proxy Bridge] ◄── [Stage 4: COSY Claim Engine] ◄───┘         │
│  (REST API & 15 Top Models)           (Activity & Quota Check)                   │
│                                                                                  │
└──────────────────────────────────────────────────────────────────────────────────┘

Module Capabilities

  1. Provisioner & Desktop Patcher (src/provisioner/ & src/patcher/):
    • Multi-platform identity patching (macOS, Windows, Linux) for machine IDs, MAC addresses, and application states.
    • Google Workspace SSO handshake, mail verification flows, and account status initializations.
  2. PAT Harvester (src/harvester/):
    • Automated REST generation of official 64-character Personal Access Tokens (pt-*).
  3. Session Decryptor (src/decryptor/):
    • Isolated sandbox runner for Qoder CLI and cryptographic AES-CBC-128 extraction of .auth/user access tokens (jt-*).
  4. COSY Activity & Claim Engine (src/claimer/):
    • Hardware machine binding (Cosy-MachineToken, Cosy-MachineCode) with dynamic GMT MD5 date-signatures (cosy&war, war never changes&<DATE>) for quota inspection and activity eligibility scanning.
  5. OpenAI & Anthropic Proxy Gateway (src/gateway/ & src/proxy/):
    • Drop-in HTTP REST API server (/v1/chat/completions & /v1/models) supporting SSE streaming, fallback routing, and native model mappings for 15 top AI architectures.

🎯 Top Models Qoder PAT

Integrated model catalog available through the gateway:

Model ID Model Name Upstream Architecture Context Window Category / Specialization
qd/auto Auto Auto Dynamic Routing 128k Dynamic multi-tier routing
qd/ultimate Opus 4.7 Claude Opus 4.7 200k Deep reasoning & complex architecture
qd/performance Sonnet 4.6 Claude Sonnet 4.6 200k High-speed coding & precision
qd/efficient Haiku 4.5 Claude Haiku 4.5 128k Token efficiency & lightweight tasks
qd/lite Lite Lite Engine 64k High throughput basic parsing
qd/qmodel_38max Qwen3.8-Max Qwen 3.8 Max 128k Advanced coding & mathematics
qd/qmodel_latest Qwen3.7-Max Qwen 3.7 Max 128k Flagship coding model
qd/qmodel Qwen3.7-Plus Qwen 3.7 Plus 128k General software engineering
qd/kmodel_latest Kimi-K3 Moonshot Kimi K3 200k Long-context & document analysis
qd/kmodel Kimi-K2.7-Code Moonshot Kimi K2.7 Code 128k Syntax & code refactoring
qd/gm51model GLM-5.2 Zhipu GLM-5.2 128k Analytical logic & reasoning
qd/dmodel DeepSeek-V4-Pro DeepSeek V4 Pro 128k Complex algorithms & deep logic
qd/dfmodel DeepSeek-V4-Flash DeepSeek V4 Flash 64k Low-latency response generation
qd/mmodel MiniMax-M3 MiniMax M3 128k Natural language dialogue & writing
qd/cmodel Fable 5 Fable 5 128k Technical writing & synthesis

📂 Repository Structure

qoder-workflow/
├── config/
│   ├── config.example.toml     # Engine TOML Configuration
│   ├── config.example.json     # Engine JSON Configuration
│   └── models.json             # 15 Top Models Catalog Definition
├── src/
│   ├── provisioner/            # Provisioning & SSO Handshake
│   ├── harvester/              # PAT Token Harvester API
│   ├── patcher/                # Multi-Platform Identity Patcher
│   ├── decryptor/              # AES-CBC CLI Session Decryptor
│   ├── claimer/                # COSY Signature & Claim Engine
│   ├── proxy/                  # OpenAI Model Router & Fallback
│   └── gateway/                # OpenAI REST API HTTP Server
├── test/
│   ├── test_decrypt.py         # Unit tests for AES decryption
│   ├── test_cosy_sign.py       # Unit tests for COSY MD5 signature
│   ├── test_patcher_router.py  # Unit tests for Patcher & Model Router
│   └── test_gateway.js         # Integration tests for OpenAI Gateway
├── main.py                     # Unified CLI Orchestrator
├── package.json                # Node.js Package Specification
├── README.md                   # Complete Documentation
└── LICENSE                     # MIT License

🚀 Quick Start

1. Launch OpenAI-Compatible API Gateway

git clone https://github.com/d4ncboz/qoder-workflow.git
cd qoder-workflow
npm start

The gateway starts listening on http://localhost:20240.

2. Test Model Routing via cURL

curl http://localhost:20240/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qd/ultimate",
    "messages": [
      {"role": "user", "content": "Hello world"}
    ],
    "stream": false
  }'

3. Run Verification & State Patcher via CLI

# Verify PAT & Check Live Quota
python3 main.py --action verify-pat --pat "pt-..."

# Scan Activity Eligibility
python3 main.py --action scan-eligibility --pat "pt-..."

🤝 Community & Support


📄 License

Licensed under the MIT License © 2026 D4NNBOZ.

qoder-workflow (d4ncboz/qoder-workflow)

Searching Database…

这是什么?Qoder Workflow 是围绕 Qoder(一款 AI 编程助手)构建的非官方工具包,可修补机器身份、采集个人访问令牌、解密本地会话凭据,并通过一个 OpenAI 兼容网关对外提供由此获得的访问能力,该网关供给 15 个上游模型(Claude、Qwen、Kimi、GLM、DeepSeek、MiniMax 等)。
这是官方的 Qoder 客户端吗?不是,它是一个包含 5 个模块的非官方工具包:机器身份修补器、个人访问令牌采集器、会话令牌解密器、配额/活跃度申领引擎,以及架设在 Qoder 后端之上的 OpenAI/Anthropic 兼容代理网关。
怎么把网关跑起来?启动网关模块,拉起暴露 /v1/chat/completions 和 /v1/models 的 REST 服务器,用 cURL 发送测试请求检查模型路由,再用单独的命令行工具运行验证和状态修补器。
运行采集器和解密器前需要准备什么?它是纯 Python 实现,没有列出任何外部依赖包,但解密器需要本地已安装可用的 Qoder CLI,以便在其沙箱中运行并提取鉴权令牌。
用这个有什么坑?这不是官方认可的 Qoder 集成:它会修补机器/账户标识符、自动生成个人访问令牌,并解密 Qoder 的本地鉴权存储以取出有效会话令牌,因此只要 Qoder 更改内部实现或反滥用检查,它就可能失效,或导致账户被标记。
它会处理哪类凭据?它会生成并提取绑定真实 Qoder 账户的、真实的 64 字符个人访问令牌和会话令牌,外加用于配额检查的硬件机器绑定码,因此这些输出应被视为敏感机密。
通过网关能用哪些模型?目录涵盖 15 个模型,包括 Claude Opus/Sonnet/Haiku 4.x、Qwen3.7/3.8-Max、Kimi K2.7/K3、GLM-5.2、DeepSeek V4 Pro/Flash 和 MiniMax M3,可通过 qd/ultimate 或 qd/performance 之类的 ID 选用。
COSY 申领引擎到底做什么?它管理硬件机器绑定(Cosy-MachineToken、Cosy-MachineCode)并计算 MD5 日期签名,用于检查配额,并扫描所采集账户基于活跃度的使用资格。
它为什么要修补机器 ID 和 MAC 地址?重置机器 ID、MAC 地址和应用状态,能让设备重新触发 Qoder 的账户开通流程,包括 Google Workspace SSO 握手和邮箱验证,实际上等于造出一个看似全新的身份。
网关支持流式响应吗?支持,它支持 SSE 流式传输,也能在已配置的上游模型之间做回退路由。
Creator
d4ncboz
Size
<0.1 MB
Stars
142
Updated
CommitAug 18
Age
2mo
Commits · 90 Days