CLI 使用
安装私有 CLI,在本机完成授权,并从终端处理本地文件。
CLI 会把用户选择的本地文件直接上传到 ClearCrowds API,不需要先传到七牛。任务完成后,结果会写入你指定的本地路径。
安装 Private Beta
CLI 从独立的私有仓库 clearcrowds-agent-tools 分发,不会暴露闭源的产品主仓库。获得仓库权限后执行:
gh auth login
gh repo clone georgezouq/clearcrowds-agent-tools ~/.clearcrowds/agent-tools
npm install --global ~/.clearcrowds/agent-tools
clearcrowds setup --agent codex授权当前设备
clearcrowds login
clearcrowds whoami
clearcrowds creditslogin 使用 Device Authorization:终端获得短期验证码,浏览器让用户批准 Project 和权限范围,CLI 在系统支持时把最终凭据写入操作系统的安全凭据存储。
修改本地图片
clearcrowds presets
clearcrowds edit ./input.jpg --preset remove-crowds --output ./fixed.jpg
clearcrowds resize ./fixed.jpg --width 1200 --height 630 --output ./social.jpg只有服务器或 CI 才应使用 CLEARCROWDS_API_KEY。Private Beta 本地联调可以通过 CLEARCROWDS_API_BASE_URL 指向测试 backend。
