# 青狮云岸威科 Skill · 安装 / Installation

试用版本 **0.2.0 r1**。Windows x64/ARM64 分发包内置 Python；macOS/Linux 源码包需要本机 Python 3.9+。每位律师须使用自己的 OA 授权。本网站不接收 OA 密码、Cookie 或请求内容。真实 Windows OA 查询尚未验收；请把此次安装视为试用。

Trial release **0.2.0 r1**. The Windows x64/ARM64 bundles include Python. The macOS/Linux source bundle requires Python 3.9+ already installed. Each lawyer uses their own OA authorization. The site does not receive passwords, cookies, or copied requests. Live OA access on Windows remains to be validated.

## Windows

在 Windows PowerShell 5.1+ 中运行以下一行。`-Client` 可用 `codex`、`workbuddy`、`claude`；默认 `codex`。安装器检测实际处理器架构，下载正确的完整包，核对 ZIP、安装脚本和包内逐文件 SHA-256，并在安装前验证程序启动。不需要管理员权限或系统 Python。

Run this in Windows PowerShell 5.1+. Change `-Client` to `workbuddy` or `claude` if needed. The installer detects native x64/ARM64, checks the download and package hashes, then checks startup before replacing an existing installation.

```powershell
& ([scriptblock]::Create((irm https://qsya-wk-skill.david-legal.com/install.ps1))) -Client codex
```

使用既有自定义安装目录时，追加 `-Destination 'D:\Skills\qsya-wkinfo'`；应传完整路径。安装器会备份原 Skill 目录，授权目录独立且原样保留。执行后根据输出的 `launcher` 路径运行：

```powershell
powershell.exe -NoProfile -ExecutionPolicy Bypass -File '实际安装目录\bin\wk.ps1' --version
powershell.exe -NoProfile -ExecutionPolicy Bypass -File '实际安装目录\bin\wk.ps1' auth inspect
```

`Bypass` 仅对这次 PowerShell 进程生效，不更改系统执行策略。

Add `-Destination 'D:\Skills\qsya-wkinfo'` for an existing custom Skill folder. Use the reported `launcher` path to check the version and authorization state. The execution-policy option applies only to this PowerShell process. Credentials stay outside the Skill folder and are not copied into the package.

## macOS / Linux

本机需 Python 3.9+，然后运行。安装器验证发布清单、源码 ZIP 以及逐文件 SHA-256，并测试 CLI 启动。可用 `--client workbuddy` / `--client claude`；自定义位置加 `--dest '/完整路径/qsya-wkinfo'`。

Python 3.9+ is required. The installer validates the source bundle and each file, then checks the CLI before installing. For a custom existing folder, add `--dest '/absolute/path/qsya-wkinfo'`.

```sh
curl -fsSL https://qsya-wk-skill.david-legal.com/install.sh | sh -s -- --client codex
```

安装完成后，用安装器输出的 `launcher` 路径运行 `--version` 和 `auth inspect`。若电脑缺少 `python3`，应先安装 Python，或在 Windows 使用内置运行环境版本。

After installation, use the reported `launcher` path with `--version` and `auth inspect`.

## 本人授权 / Your own authorization

在本机运行 `auth login`，由本人通过 [律所 OA 入口](http://qsya.vtlaw.com.cn/ls/link.aspx) 进入威科，并将一次正常搜索请求以 **Copy as cURL (bash)** 方式复制到工具显示的本机表单。没有自动 OA 密码登录；不要把请求或 Cookie 贴到 AI 对话、网站或仓库。登录后运行 `auth check`，再用 `law get` / `case get` 分别核验需要的正文权限。

Run `auth login` locally, enter WKInfo through your firm's OA, and paste one ordinary search request using **Copy as cURL (bash)** into the local form shown by the tool. Never put the request or cookie in chat or on this site. `auth check` confirms search access only; verify a selected document body with `law get` or `case get`.

实际使用条款、授权席位、自动化查询与 AI 处理平台内容的边界，需由律所按合同确认。CLI 只访问已经验证的查询及正文接口，`useBalance=false`、`buy=false`，不接官方 MCP。下载包和源码来自私有仓库的已合并提交，但页面公开提供包内程序文件。

包内 `README.md` 和 `docs/releasing.md` 写于 0.2.0 候选开发阶段，仍描述“仅私有 CI 附件、未公开站点”的当时状态；它们是原始合并提交的历史材料，未重写已验证 ZIP。**现在的公开试用下载状态以本站 [发布清单](https://qsya-wk-skill.david-legal.com/release.json) 与本页为准。**

Licensing and subscription scope remain subject to your firm's agreement. The CLI keeps `useBalance=false` and `buy=false` and does not use the official MCP.
