﻿---
title: "Apify Codex 插件"
filename: "terminal"
canonical: /templates/apify-codex-plugin/
---

# Apify Codex 插件

安装 apify@apify-plugins 后自动登记远程 MCP，通过 OAuth 登录。无头工作流使用 APIFY_TOKEN。

```
codex plugin marketplace add apify/apify-codex-plugin
codex plugin add apify@apify-plugins

# 只要 MCP、不要技能（不要和插件叠）：
# codex mcp add apify --url https://mcp.apify.com
# codex mcp login apify

# 无头：在启动 Codex 的进程里准备 APIFY_TOKEN，不要写进 http_headers

```
