This is tutorial how to use Codex with MCP server and Agent Skills.

Install Codex

Before installing Codex, make sure NPM (Node Package Manager) is already installed via https://nodejs.org/en/download/.

npm i -g @openai/codex@latest

Run Codex

Basic command:

codex

Commands to run Codex with full access while still safe using sandbox mode:

codex --sandbox danger-full-access
codex --sandbox danger-full-access -a never (to avoid repeated approval prompts)

Additional commonly used commands:

codex login
codex logout
codex --help

Quick Notes

Implementation

This is the example implementation of MCP server and Agent Skills that I used for my project.