﻿---
title: "安装 Google Drive 插件"
summary: "安装 google-drive@openai-curated 并连接 Google 账号，访问 Drive、Docs、Sheets 和 Slides。修改文件前确认目标及操作范围。"
category: skills
level: starter
surfaces: [cli, app]
tags: ["plugins", "Google Drive", "google-drive@openai-curated", "Google"]
canonical: /tips/google-drive-codex-plugin/
---

# 安装 Google Drive 插件

安装 google-drive@openai-curated 并连接 Google 账号，访问 Drive、Docs、Sheets 和 Slides。修改文件前确认目标及操作范围。

安装 google-drive@openai-curated 并连接 Google 账号，访问 Drive、Docs、Sheets 和 Slides。修改文件前确认目标及操作范围。

这是 OpenAI 做的 Google Drive 插件，把 Drive、Docs、Sheets、Slides 收成一条入口，用来搜已有权限的文件，并在工作区打开写动作时改文档、表格或幻灯片。产品页是 [Google Drive](https://openai.com/business/plugins/google-drive/)。能力边界看 [Google Drive app and setup in ChatGPT](https://help.openai.com/en/articles/10929079-google-drive-app-and-setup-in-chatgpt)。清单 [`plugin.json`](https://github.com/openai/plugins/blob/main/plugins/google-drive/.codex-plugin/plugin.json) 的 name 是 `google-drive`，所以精选 id 是 `google-drive@openai-curated`。

CLI：

```bash
codex plugin add google-drive@openai-curated
codex plugin list
```

TUI `/plugins` 或桌面 Plugins 搜 Google Drive 再装，效果一样。装完按提示 Connect Google 账号。IDE 扩展没有 `/plugins`，用 CLI 这条。

插件 [`.mcp.json`](https://github.com/openai/plugins/blob/main/plugins/google-drive/.mcp.json) 表名是 `google-drive`，type 是 http，URL 是 `https://drivemcp.googleapis.com/mcp/v1`（带 `/mcp/v1`）。插件已经登记 MCP 时，不要再手写 `mcp add google-drive --url https://drivemcp.googleapis.com/mcp/v1` 叠一张。OAuth 字段由插件带，不要手抄 client_id，

技能随插件走，仓库 `skills/` 目录是 `google-drive`、`google-docs`、`google-sheets`、`google-slides`、`google-drive-comments`。不要 `npx skills add` 当 Codex 安装器，也不要手拷到 `~/.codex/skills`。

帮助中心写明：只能读你授权的那个 Google 账号已经能打开的文件。个人连接是实时访问，**不会**给自己建一份同步索引。企业/Edu 的管理员同步索引是另一条工作区配置。Library 初期只含「我的云端硬盘」和直接分享给你的项，Shared Drives 还不在。未确认前不要改源文件、改共享或删除。

在支持的 Codex 任务视图里，打开 Sources → Use plugins，再搜已安装的 Google Drive。ChatGPT 里可以用 `@Google Drive`。

0.154 起先看**当前会话**的 `/plugins`；没有再新开。`codex plugin list` 里应看到 `google-drive@openai-curated`。网页 Cloud 不读 `~/.codex/config.toml`。Cloud 用 Plugins 搜 Google Drive。

使用注意事项：

- 操作影响：改 Docs、改 Sheets、改共享或删除会动真实网盘。


## 来源

- [OpenAI · Google Drive](https://openai.com/business/plugins/google-drive/)
- [openai/plugins · google-drive plugin.json](https://github.com/openai/plugins/blob/main/plugins/google-drive/.codex-plugin/plugin.json)
- [openai/plugins · google-drive .mcp.json](https://github.com/openai/plugins/blob/main/plugins/google-drive/.mcp.json)
