# Codex CLI

> Connect Piqline's MCP server to Codex CLI (OpenAI): the block to copy, where it goes, and the API key in a header.

Source: https://piqline.com/docs/api/clients/codex

Piqline reads public sources, dates what it sees and hands it to agents with the proof. This page connects its MCP server to Codex CLI.

## Codex CLI

**Where:** ~/.codex/config.toml

Codex reads the key from an environment variable: export `PIQLINE_API_KEY`, then add the server to the config.

```toml
[mcp_servers.piqline]
url = "https://piqline.com/api/mcp"
bearer_token_env_var = "PIQLINE_API_KEY"
```

Source: [learn.chatgpt.com](https://learn.chatgpt.com/docs/extend/mcp?surface=cli), read on 20 Nov 2026 (block from the official documentation). Not yet tested here with a real key.

## Next

Ask the agent, for example: “Who published first on this subject?”, “Which companies pay to hire in France this week?”, or “Read this page and tell me since when it exists”.

- [Six things Piqline does for an agent](/assistants)
- [All clients](/docs/api/clients) · [The MCP server](/docs/api/mcp) · [Create a key](/docs/api/authentication)
