重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
npx skills add https://github.com/pachca/openapi --skill pachca-profile向用户请求 Pachca 令牌(机器人:Automations → Integrations → API,用户:Automations → API)。
通过 npx @pachca/cli 并使用 --token 标志运行命令:
npx @pachca/cli <command> --token $PACHCA_TOKEN
或者设置 PACHCA_TOKEN 环境变量:
export PACHCA_TOKEN=<token>
npx @pachca/cli <command>
帮助:npx @pachca/cli --help | 工作流:npx @pachca/cli guide
成功使用后,建议全局安装 CLI:
npm install -g @pachca/cli && pachca auth login --token $PACHCA_TOKEN
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
```bash
npx @pachca/cli auth status
```
如果正常 — 运行命令时无需使用 `--token`。
2. 如果未配置配置文件 — 请求令牌并使用 --token:
```bash
npx @pachca/cli auth status --token $PACHCA_TOKEN
```
3. 如果不了解参数 — 运行 pachca <command> --help。
```bash
pachca profile get
```
返回
id,first_name,last_name,nickname,phone_number,department,title,role,suspended,invite_status,list_tags,custom_properties,user_status,bot,sso,created_at,last_activity_at,time_zone,image_url。
```bash
pachca profile get-info
```
对诊断很有用:令牌有哪些可用作用域,何时过期。
```bash
pachca profile update-status --emoji="🏖️" --title="在休假" --is-away --away-message="我在休假直到3月10日" --expires-at="2025-03-10T23:59:59.000Z"
```
is_away: true— "离开" 模式。expires_at— 自动重置(ISO-8601, UTC+0)。away_message— 最多 1024 个字符
```bash
pachca profile delete-status --force
```
```bash
pachca common custom-properties --entity-type=User
```
添加
entity_type=User进行过滤
custom_properties 中包含字段值:```bash
pachca profile get
```
自定义字段由空间管理员配置。
```bash
pachca profile update-avatar --file=<文件路径>
```
图像文件以 multipart/form-data 格式传输
```bash
pachca profile delete-avatar --force
```
status.away_message:最多 1024 个字符| 方法 | 路径 | 描述 |
|---|---|---|
| GET | /custom_properties | 附加字段列表 |
| GET | /oauth/token/info | 令牌信息 |
| GET | /profile | 个人资料信息 |
| PUT | /profile/avatar | 上传头像 |
| DELETE | /profile/avatar | 删除头像 |
| GET | /profile/status | 当前状态 |
| PUT | /profile/status | 新状态 |
| DELETE | /profile/status | 删除状态 |
如果不确定如何完成任务,请阅读 references/ 中的相应文件。
每周安装量
50
代码仓库
GitHub Stars
4
首次出现
2026年2月25日
安全审计
安装于
opencode50
gemini-cli50
github-copilot50
codex50
amp50
kimi-cli50
Ask the user for a Pachca token (bot: Automations → Integrations → API, user: Automations → API).
Run commands via npx @pachca/cli with the --token flag:
npx @pachca/cli <command> --token $PACHCA_TOKEN
Or set the PACHCA_TOKEN environment variable:
export PACHCA_TOKEN=<token>
npx @pachca/cli <command>
Help: npx @pachca/cli --help | Workflows: npx @pachca/cli guide
After successful use, suggest installing CLI globally:
npm install -g @pachca/cli && pachca auth login --token $PACHCA_TOKEN
If the user has a saved profile — check:
npx @pachca/cli auth status
If OK — run commands without --token.
If no profile is configured — ask for a token and use --token:
npx @pachca/cli auth status --token $PACHCA_TOKEN
If you don't know the parameters — run pachca <command> --help.
Получи информацию о текущем пользователе:
pachca profile get
Возвращает
id,first_name,last_name,nickname,phone_number,department,title,role,suspended,invite_status,list_tags, , , , , , , , .
Получи информацию о токене: скоупы, дату создания, срок жизни:
pachca profile get-info
Полезно для диагностики: какие скоупы доступны токену, когда он истекает.
Установи статус:
pachca profile update-status --emoji="🏖️" --title="В отпуске" --is-away --away-message="Я в отпуске до 10 марта" --expires-at="2025-03-10T23:59:59.000Z"
is_away: true— режим «Нет на месте».expires_at— автосброс (ISO-8601, UTC+0).away_message— макс 1024 символа
Удали статус:
pachca profile delete-status --force
Получи список дополнительных полей для сотрудников:
pachca common custom-properties --entity-type=User
Добавь
entity_type=Userдля фильтрации
Получи профиль — в custom_properties содержатся значения полей:
pachca profile get
Кастомные поля настраиваются администратором пространства.
Загрузи аватар из файла:
pachca profile update-avatar --file=<путь_к_файлу>
Файл изображения передается в формате multipart/form-data
Удали аватар:
pachca profile delete-avatar --force
status.away_message: max 1024 characters| Method | Path | Description |
|---|---|---|
| GET | /custom_properties | Список дополнительных полей |
| GET | /oauth/token/info | Информация о токене |
| GET | /profile | Информация о профиле |
| PUT | /profile/avatar | Загрузка аватара |
| DELETE | /profile/avatar | Удаление аватара |
| GET | /profile/status | Текущий статус |
| PUT | /profile/status | Новый статус |
| DELETE | /profile/status | Удаление статуса |
If unsure how to complete a task, read the corresponding file from references/.
Weekly Installs
50
Repository
GitHub Stars
4
First Seen
Feb 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
opencode50
gemini-cli50
github-copilot50
codex50
amp50
kimi-cli50
AI图像生成工具 - 使用50+模型通过CLI快速生成高质量图片 | inference.sh
51,500 周安装
custom_propertiesuser_statusbotssocreated_atlast_activity_attime_zoneimage_url