pi-relay-config

Configure pi to use third-party AI relay stations / coding-plan endpoints: OpenAI/Codex, Claude, GLM, Grok/xAI, Kimi, DeepSeek, Qwen. Probe protocols, write models.json, verify models.

Packages

Package details

skill

Install pi-relay-config from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:pi-relay-config
Package
pi-relay-config
Version
0.1.0
Published
Sep 2, 2026
Downloads
140/mo · 140/wk
Author
mywuje
License
MIT
Types
skill
Size
20.7 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "skills": [
    "./skills"
  ],
  "image": "https://raw.githubusercontent.com/Dithob/pi-relay-config/main/preview.png"
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-relay-config

Pi 技能:把第三方 AI 中转站 / 订阅式 coding plan 接入 pi 的完整流程。

覆盖:OpenAI/Codex、Claude、GLM 智谱、Grok/xAI、Kimi/Moonshot、DeepSeek、Qwen 中转站与官方 Anthropic 兼容端点。

功能

  • 三协议探测:chat/completions / responses / v1/messages(自动判定用哪个 api 接入)
  • 一键脚本 probe-relay.sh:模型清单 + 协议探测 + 逐模型可用性/图片支持实测
  • 各厂商速查表(baseUrl、api 选择、模型坑位)
  • Anthropic compat 矩阵与报错处置矩阵

安装

pi install npm:pi-relay-config
# 或直接从 git 安装
pi install git:github.com/Dithob/pi-relay-config

使用

触发词:codex 中转站claude 中转站glm coding plan接入 pimodels.json中转站模型不可用

或直接运行探测脚本:

bash ~/.pi/agent/skills/pi-relay-config/scripts/probe-relay.sh <base_url> <api_key> [model...]

核心原则

一切以实测为准——中转站 /v1/models 列出的模型 ≠ 你的 key 都能用;协议形态决定 api 字段,而不是品牌。

License

MIT