# Visual UI editing with Codex

> Use OpenAI's Codex CLI as a visual UI editor on your running app. GUIJam runs codex in a read-only sandbox with your own login. Sketches and images work.

GUIJam gives Codex a visual front end. Circle an element on your running app, describe the change, and Codex proposes live UI variants you preview in the page before anything is written.

[Codex](https://github.com/openai/codex) is OpenAI's AI coding CLI. GUIJam runs it headlessly with your existing login, and it can read images, so sketches and inspiration images work.

## Set up

### Install it

```bash
npm install -g @openai/codex
```

### Log in

```bash
codex login
```

GUIJam checks your login with `codex login status`.

### Choose it in GUIJam

```bash
npx guijam provider use codex
```

## Models

GUIJam uses `gpt-6-luna` for quick requests and your Codex default for larger ones. Use one model for everything with `--model`:

```bash
npx guijam provider use codex --model <model>
```

## How GUIJam runs it

- In a read-only sandbox, so Codex can't change files.
- Ephemeral, ignoring your user config and rules, so your personal setup doesn't change how GUIJam's requests behave.
- Without your project docs, such as `AGENTS.md`, or environment context, so it starts faster. GUIJam passes the code it needs inline.
- At the reasoning effort GUIJam picks for the request, unless you [set your own](https://guijam.francistinao.com/docs/ai-tools#choose-an-effort).

The `gjd` daemon applies the edits Codex returns.
