# Codex

> Both Lyber models in the Codex app or a separate CLI profile.

Source: https://www.lyber.ai/docs/agents/coding-agents/codex/ · Markdown: https://www.lyber.ai/docs/md/agents/coding-agents/codex.md

Lyber's connector adds both models to the Codex desktop app beside your ChatGPT models, or creates a separate Codex CLI profile. It checks the live model catalog, asks for your key at a hidden prompt and backs up your settings before changing them.

## Easy setup

Paste one line into your terminal. It downloads the connector, runs it, and asks for your key at a hidden prompt.

Desktop app (`terminal`):

```bash
curl -fsSL https://www.lyber.ai/lyber-codex-connect.py -o ~/Downloads/lyber-codex-connect.py && python3 ~/Downloads/lyber-codex-connect.py --client desktop --router https://lyber-paid-acceptance-gateway-production.up.railway.app --model minimax-m3.1-flash-abliterated
```

CLI (`terminal`):

```bash
curl -fsSL https://www.lyber.ai/lyber-codex-connect.py -o ~/Downloads/lyber-codex-connect.py && python3 ~/Downloads/lyber-codex-connect.py --client cli --router https://lyber-paid-acceptance-gateway-production.up.railway.app --model minimax-m3.1-flash-abliterated
```

## Notes

- Needs Python 3.11 or later, on macOS or on Linux with a user systemd session.
- Desktop setup keeps your ChatGPT sign-in and dictation; only Lyber selections spend Lyber credit.
- Undo it any time with `python3 ~/Downloads/lyber-codex-connect.py --restore`.
- The [Connect page](https://www.lyber.ai/connect/#codex) builds the same command with your choices.
