因为便宜又方便最近用的都是中转站但在用codex的时候遇到个问题codex desktop的插件用不了所以尝试找到了解决的办法首先要知道的是openai有两个插件仓库https://github.com/openai/plugins.git https://github.com/openai/role-specific-pluginsplugins是比较通用的插件比如FigmaRemotionrole-specific-plugins中的是基于角色的插件比如Product Design因为有时候切换三方中转站的时候使用cc-switch等方式会直接覆盖原始codex配置导致插件信息丢失这个时候我们就可以手动补上一、https://github.com/openai/plugins.git1、克隆仓库git clone https://github.com/openai/plugins.git到codex插件配置目录C:\Users\你的用户名\.codex\plugins克隆下的文件夹改名openai-plugins-local二、修改marketplace名称C:\Users\你的用户名\.codex\plugins\openai-plugins-local\.agents\plugins\marketplace.json把里面name改成“name”: “openai-plugins-local”再把显示名改成“interface”: {“displayName”: “OpenAI Plugins Local”}这样就避免和内置的openai-curated冲突。三、注册本地插件市场codex plugin marketplace add C:\Users\你的用户名\.codex\plugins\openai-plugins-local注册成功后再检查一次codex plugin marketplace list如果看到openai-plugins-local /Users/你的用户名/.codex/plugins/openai-plugins-local就说明成功了。二、https://github.com/openai/role-specific-plugins1、克隆仓库git clone https://github.com/openai/role-specific-plugins到codex插件配置目录C:\Users\你的用户名\.codex\plugins三、注册本地插件市场codex plugin marketplace add C:\Users\你的用户名\.codex\plugins\role-specific-plugins注册成功后再检查一次codex plugin marketplace list如果看到role-specific-plugins /Users/你的用户名/.codex/plugins/openai-plugins-local就说明成功了。
阅读完成 · 觉得有帮助?