CleanClean
Agents

Codex

Connect Clean to OpenAI Codex CLI.

Add the following to ~/.codex/config.toml:

[mcp_servers.clean]
url = "https://api.tryclean.ai/mcp"
 
[mcp_servers.clean.http_headers]
Authorization = "Bearer YOUR_API_KEY"
X-Clean-Slug = "your-org-slug"

Replace YOUR_API_KEY with your clean_sk_... key and your-org-slug with your organization slug.

Getting the config from the dashboard

Go to tryclean.ai/dashboard/onboarding, open the MCP Config step, and select the Codex tab. The dashboard generates the TOML with your credentials pre-filled.

Verify

Run Codex and ask it to list its MCP tools. You should see search_code, index_repo, and list_repos.

On this page