# Install DINQ in Codex

Two parts: a server entry that carries the connection, and a package that carries the
find-people skill. The key goes in the server entry as a header — no environment variable, no
browser, nothing that expires.

1. Set the server in `~/.codex/config.toml` to exactly this, keeping every other server. If a
   `dinq` entry is already there, replace it — there must be one:

   ```toml
   [mcp_servers.dinq]
   url = "https://search.dinq.me/mcp"
   http_headers = { Authorization = "Bearer {{DINQ_API_KEY}}" }
   ```

   If that is still the literal placeholder `{{DINQ_API_KEY}}`, you fetched this page yourself
   rather than being handed it: ask the user for their DINQ API key. Write the key only into
   this file; never echo it into the chat or any other file. Do not also run `codex mcp add` —
   that defines the same server a second time.

2. Download [the package](https://search.dinq.me/plugins/dinq-codex.zip), extract it into a
   persistent directory, and install it:

   ```bash
   codex plugin marketplace add <absolute-path-to-extracted-dinq-codex-directory>
   codex plugin add dinq@dinq
   ```

   If an older version is installed, this replaces it. It installs the skill only; the
   connection is step 1. If it cannot be installed, the tools still work — read
   https://search.dinq.me/skill.md for the workflow it would have added.

3. **The user restarts Codex and starts a new conversation.** Codex reads its MCP configuration
   at startup and tools load when a session starts, so neither step 1 nor step 2 does anything
   in the session that made them. You cannot do this from inside Codex; say so plainly.

4. In the new conversation, call `dinq_capabilities` with no arguments. It is free, and
   returning the list of configured sources means the whole chain works.

If a step fails, or the tools do not appear, read https://search.dinq.me/connect.md.
