# Codex

> Set up Codex with the uip CLI and UiPath skills, then install, check, and remove the skills.

OpenAI's coding agent: a CLI, an IDE extension, and a desktop app.

[← All agents](choosing-your-agent.md) · [Codex docs](https://developers.openai.com/codex) · [UiPath skills on GitHub](https://github.com/UiPath/skills)

## Quick start

1. **Install Codex.** For the IDE extension and desktop app, see the Codex docs.

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

2. **Install the `uip` CLI and sign in.** For options, see [Install and set up](install-and-set-up.md).

   ::::tabs{groupId="os"}

   :::tab[Windows (PowerShell)]{value="windows" default}
   ```powershell
   irm https://download.uipath.com/uipath-cli/install.ps1 | iex
   ```
   :::

   :::tab[macOS and Linux]{value="macos-linux"}
   ```bash
   curl -fsSL https://download.uipath.com/uipath-cli/install.sh | bash
   ```
   :::

   ::::

   Open a new terminal, then sign in:

   ```bash
   uip login
   ```

3. **Install the UiPath skills.** The installer adds them for agents it detects. If you installed Codex afterwards, run:

   ```bash
   uip skills install --agent codex
   ```

4. **Start Codex in your project folder.**

   ```bash
   codex
   ```

   If `uip` commands fail in Codex but work in your terminal, allow them to run outside the Codex sandbox.

5. **Check that the skills loaded.** Ask: "What UiPath skills do you have installed?" If Codex lists none, restart it.

6. **Try a prompt.** For example:

   > Create a sample `input.csv` with five rows. Then create a cross-platform UiPath RPA project that reads each row of `input.csv`, counts the rows, and writes the total to `output.txt`. Then run it.

## Install scope and paths

The install is global by default. For one project, add `--local`:

```bash
uip skills install --agent codex --local
```

| Scope | Path |
| --- | --- |
| Global | `~/.agents/skills/<skill>/` |
| Local (`--local`) | `<project>/.agents/skills/<skill>/` |

## Project context file

`AGENTS.md`. See [Give your agent project context](agent-context-files.md).

## Remove the skills

```bash
uip skills uninstall --agent codex
```

Add `--local` for a project-scoped install.

Antigravity and Devin also read `<project>/.agents/skills/`, and Devin also reads `~/.agents/skills/`. Uninstalling from a shared folder removes the skills for every agent that reads it.
