> ## Documentation Index
> Fetch the complete documentation index at: https://docs.htmldrop.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex

> Configure htmldrop in ~/.codex/config.toml with an API token.

Codex reads MCP servers from `~/.codex/config.toml`. Add htmldrop with a stdio
server and an API token:

```toml theme={null}
# ~/.codex/config.toml
[mcp_servers.htmldrop]
command = "npx"
args = ["-y", "@htmldrop.app/mcp"]
env = { HTMLDROP_API_TOKEN = "hsk_live_..." }
```

Create the token at
[htmldrop.app/dashboard/settings](https://htmldrop.app/dashboard/settings) under
API tokens. Treat it like a password — it grants full access to your drops.

Restart Codex after editing the file, then:

> Publish this file with htmldrop

<Tip>
  The token path is used here because it works everywhere without a browser. If you
  prefer OAuth and your Codex build supports remote HTTP MCP servers, point it at
  `https://htmldrop.app/mcp` instead and skip the token entirely.
</Tip>
