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

# Codex CLI

> Met deze handleiding gebruik je Codex met Harogo binnen een paar minuten.

> [!NOTE]
>
> **Deze handleiding gebruikt alleen GPT-modellen.** Codex kan de GPT-modellen (GPT-6 Luna, GPT-6 Sol, GPT-6.1 Sol, GPT-6 Astra, GPT-6.1 Terra) en de modellen zonder clientbeperking (GLM, Qwen, Kimi, MiniMax, DeepSeek) gebruiken. Claude-modellen zijn niet beschikbaar in Codex — zie [Claude Code](https://docs.harogo.ai/nl/claude-code.md).

## Installatie

### Downloaden van de officiële website (macOS)

[https://openai.com/codex/](https://openai.com/codex/)

### Installeren via de opdrachtregel

```bash theme={null}
npm install -g @openai/codex
```

## Omgevingsvariabelen configureren

### Configureren via het configuratiebestand

1. Bewerk je bestand `~/.codex/config.toml` en voeg het volgende toe:

```toml theme={null}
profile = "harogo"

[model_providers.harogo]
name = "harogo"
base_url = "https://api.harogo.ai/v1"
personality = "pragmatic"
wire_api = "responses"

[profiles.harogo]
model = "gpt-6.1-sol"
model_provider = "harogo"
model_reasoning_effort = "high"
```

2. Bewerk je bestand `~/.codex/auth.json` en pas het als volgt aan:

```json theme={null}
{
  "OPENAI_API_KEY": "HAROGO_API_KEY"
}
```

### Configureren via cc-switch

1. Start CC-Switch en voeg een aanbieder toe.

![Scherm “Aanbieder toevoegen” in CC-Switch](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_17.20.12.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=b32819dab1fb874d6a712ff40c47ec67)

2. Kies in de lijst met voorinstellingen “Aangepaste configuratie” (Custom Configuration).

![Custom Configuration kiezen in de voorinstellingenlijst van CC-Switch](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_17.20.35.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=7173cc1be95b8e0b48d92262970e32e3)

3. Vul de naam van de aanbieder, de API-key, het endpoint ([https://api.harogo.ai/v1](https://api.harogo.ai/v1)) enzovoort in. Klik op “Toevoegen” (Add) zodra alles is ingevuld.

![De API-key invoeren en opslaan in CC-Switch](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_17.22.08.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=78f30c9346778ba163f526c96cd6dc6c)

4. Selecteer op het startscherm “harogo” en klik op “Inschakelen” (Enable) om aan de slag te gaan.

![De aanbieder harogo inschakelen in CC-Switch](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_17.27.33.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=f9fd7cc10375932aa2ab49c49f141301)

## Codex gebruiken

### In de terminal

1. Open een terminal, ga naar je projectmap en voer de opdracht `codex` uit.

```bash theme={null}
cd /path/to/your/project
codex
```

2. Stel de rechten naar wens in.

![Goedkeuringsrechten instellen bij het starten van Codex](https://mintcdn.com/harogo-7197ea09/rMeOx--1khpclmo0/images/iShot_2026-08-07_17.31.13.png?fit=max\&auto=format\&n=rMeOx--1khpclmo0\&q=85\&s=ebb754f23dfe9d16d878e3399dc1e9c2)

3. Typ een prompt in natuurlijke taal. Krijg je een normaal antwoord terug, dan is de installatie gelukt.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.