Connect Codex
Connect the Dapta MCP to Codex. Sign in with your Dapta account with two terminal commands, or add one block with an API key to your Codex config.
Codex can reach Dapta with your Dapta login or with an API key. Signing in is the recommended way for people, and there is nothing to install.
Option A: sign in with your Dapta account
Step 1: Add Dapta to Codex. In a terminal, run:
codex mcp add dapta --url https://mcp.dapta.ai/mcpStep 2: Sign in. Run this command, then sign in with your Dapta account in the browser that opens and come back to the terminal:
codex mcp login daptaStep 3: Open Codex and ask, for example:
List my agents in Dapta
If your account has several workspaces, Codex lists them by name and asks which one to work in. To change later, say "switch to <workspace>".
Option B: API key
Use this for scripts, or when you want the connection fixed to one workspace.
Step 1: Create your API key. The Save your new MCP key dialog shows it once, along with a ready-made Codex block. Copy either one and keep the key somewhere safe.
Step 2: Open the file ~/.codex/config.toml and add the block below. Replace <your-key> with your key.
If the file does not exist yet, create it. If you already have other [mcp_servers.*] entries, add this block alongside them.
Step 3: Restart Codex so it picks up the new server. Then ask:
Who am I in Dapta?
The key fixes the workspace, so Codex never asks which one to use. There is no extra install step: Codex sees every Dapta tool as soon as it connects.
Last updated