Skip to content

References

References

LangGraph

LangChain

Azure AI Foundry

Vision

Services

Observability

n8n

Audio

OpenAI

Realtime API

Responses API

Hugging Face

DSPy

MLflow

LiteLLM

Langfuse

Codex CLI

# Install Codex CLI
npm install -g @openai/codex

# Generate shell completion scripts
codex completion zsh

# Dump configurations
cat ~/.codex/config.toml

# Set up environment variables
export AZURE_OPENAI_API_KEY="<your-api-key>"

# MCP server management: https://qiita.com/tomada/items/2eb8d5b5173a4d70b287
## Add a global MCP server entry
codex mcp add context7   -- npx -y @upstash/context7-mcp
codex mcp add playwright -- npx -y @playwright/mcp@latest
codex mcp add mslearn -- npx -y mcp-remote "https://learn.microsoft.com/api/mcp" # ref. https://zenn.dev/yanskun/articles/codex-remote-mcp
## Remove MCP server
codex mcp remove context7
## List MCP servers
codex mcp list

# Run Codex non-interactively
codex exec "Playwright MCP を使って Yahoo リアルタイム検索の上位キーワードをまとめて"

Model Context Protocol (MCP)

# Running the Inspector
npx @modelcontextprotocol/inspector

# Run the Codex MCP server (stdio transport)
codex mcp-server --help

# Run the Inspector with the Codex MCP server
npx @modelcontextprotocol/inspector -- codex mcp-server