Expose your local Codex CLI / ChatGPT subscription to Amp as an optional codex tool.
This directory also includes a companion codex-plugin skill. The plugin handles the runtime integration: tool registration, configuration, commands, and status. The skill handles the behavioural integration. It describes the intended use of the tool so Amp does not treat codex as just another generic command. It tells the harness what kinds of work are worth delegating, how to keep the request bounded, and why Amp still needs to inspect, integrate, and verify the result.
The plugin adds a compact status item:
🟢 codex: high
or:
⚪ codex: off
🟢 codex: <effort>means the delegated Codex CLI tool is available.⚪ codex: offmeans Amp can still usesmart,deep, orrushnormally, but the Codex CLI tool is not exposed.
Codex mode is independent of the active Amp mode. You can delegate to Codex from smart, deep, rush, or another mode when Codex mode is enabled.
- Amp with plugin support enabled.
- Codex CLI on
PATH. - Codex CLI authenticated with
codex login. - macOS, Linux, or WSL.
Copy or symlink the plugin into Amp's user plugin directory:
mkdir -p ~/.config/amp/plugins
ln -sf "$PWD/codex.ts" ~/.config/amp/plugins/codex.tsThen reload plugins from Amp's command palette with plugins: reload, or restart Amp.
To install the companion skill, copy or symlink it into your user skills directory:
mkdir -p ~/.config/agents/skills
ln -sfn "$PWD/skills/codex-plugin" ~/.config/agents/skills/codex-pluginThe skill is optional, but recommended. It helps Amp decide when Codex delegation is useful and how to scope the request.
You can also run the helper from this directory:
skills/codex-plugin/scripts/install-plugin.shcodex: Toggle Codex mode: expose or hide the Codex CLI tool.codex: Set Codex effort: chooselow,medium,high, orxhigh.codex: Check Codex CLI auth and settings: verify the Codex CLI and current plugin settings.
When Codex mode is enabled, the plugin registers a codex tool. Ask Amp to use it when you want GPT-5.5 via your Codex CLI subscription, for example:
Use codex to review this plan. Keep it read-only.
By default, Codex runs read-only. Workspace writes are allowed only when codex.allowWrite is set to true in Amp config and the tool call requests workspace-write.
The companion skill lives at:
skills/codex-plugin/SKILL.md
It gives Amp guidance for Codex delegation:
- use Codex for bounded plan review, design checks, diff review, debugging, migration risk analysis, and optional delegated implementation
- prefer read-only Codex calls
- avoid Codex for trivial work or simple lookups
- keep Amp responsible for integrating and verifying the result
The skill includes reference files with prompt recipes, delegation patterns, and the safety model:
skills/codex-plugin/reference/
All config keys are optional:
| Key | Values | Default | Purpose |
|---|---|---|---|
codex.enabled |
true, false |
true |
Exposes or hides the delegated Codex CLI tool. |
codex.effort |
low, medium, high, xhigh |
high |
Reasoning effort passed to codex exec. |
codex.allowWrite |
true, false |
false |
Allows workspace-write Codex runs when explicitly requested. |
This is not a selectable Amp mode. Amp's plugin API can register custom model-backed modes, but those do not use the local Codex CLI subscription path. This plugin keeps Codex usage subscription-backed by invoking codex exec directly.
Disabling Codex mode does not disable Amp's built-in modes. It only removes the delegated local Codex CLI tool from the agent's available tools.