Skip to content

Quick-starts

Codex CLI

Copy page

Add DarkCrawl to the Codex CLI so it can read .onion pages for you.

Works with OpenAI Codex CLI

  1. Get a key, then set it in your environment as DARKCRAWL_API_KEY. Start Codex from a terminal where it is set.

  2. Add the server to ~/.codex/config.toml. Codex reads the key from the variable named in bearer_token_env_var, so the file never holds it.

    config.toml
    [mcp_servers.darkcrawl]
    url = "https://api.darkcrawl.dev/mcp"
    bearer_token_env_var = "DARKCRAWL_API_KEY"
  3. Check it. Ask Codex to list the tools DarkCrawl gives it. You should see the tools on the MCP page.

OpenAI and Codex are trademarks of OpenAI.