# How do I connect Codex?

Configure a remote MCP entry for https://app.closemagnet.com/api/mcp. Prefer a protected environment-variable reference for the bare scoped credential, or use the documented static Authorization header configuration without committing its value.

[Connect an AI Agent](https://docs.closemagnet.com/connect-an-agent) includes the exact example shapes and a read-only verification task. Use the current [Codex MCP documentation](https://developers.openai.com/codex/mcp/) for configuration location and environment handling.

Links to the app require your CloseMagnet login.

Read online: https://docs.closemagnet.com/articles/questions/how-do-i-connect-codex
