This is tutorial how to use Codex with MCP server and Agent Skills.
Before installing Codex, make sure NPM (Node Package Manager) is already installed via https://nodejs.org/en/download/.
npm i -g @openai/codex@latest
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
codex from the project folder you want to work on./status in the TUI to check 5H and weekly limits./resume to continue previous conversations./mcp in the TUI to view active MCP servers.$ in the TUI to view available skills.This is the example implementation of MCP server and Agent Skills that I used for my project.