---
title: "Codex"
description: "Add Klint to Codex with one command."
---

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

# Codex

OpenAI's coding agent, in the terminal, the IDE extension and the ChatGPT
desktop app. All three read the same MCP configuration.

1. **Add the server**

   ```bash
   codex mcp add klint --url https://mcp.tryklint.ai/mcp
   ```

   This writes the server to `~/.codex/config.toml`:

   ```toml
   [mcp_servers.klint]
   url = "https://mcp.tryklint.ai/mcp"
   ```
2. **Sign in to Klint**

   Codex sees that Klint uses sign-in and opens your browser. Sign in there.
   If it doesn't open, run `codex mcp login klint`.
3. **Ask it something**

   ```text
   Ask Klint who is shaping the AI agent debate on TikTok right now.
   ```

   The first answer takes a few minutes, because Klint is reading real posts.

## Notes

- Once you have signed in, the Codex CLI, the IDE extension and the ChatGPT
  desktop app all use Klint without setting it up again.

## If it doesn't work

- **No Klint tools appear.** Restart the agent, or start a new session, after
  saving its settings.
- **The agent answers without Klint.** Name Klint in your question and ask the
  agent which tool it called.
- **No answer yet.** A run often takes 3 to 10 minutes. Let the agent keep
  checking.

More fixes, the tools and how a run works are on
[Any MCP client](https://tryklint.ai/docs/agent-setup/any-mcp-client/).

Source: https://tryklint.ai/docs/agent-setup/codex/index.mdx
