# pw ai codex connect

> Source: https://parallelworks.com/docs/cli/pw/ai/codex/connect

## pw ai codex connect

Connect a ChatGPT/Codex subscription as a personal AI provider

### Synopsis

The **pw ai codex connect** command starts a ChatGPT device-code sign-in and
connects the subscription as a personal AI provider. Models become
available as **me:<name>/<model>** and usage draws on the subscription's quota.

```
pw ai codex connect [flags]
```

### Examples

```
  # Connect a subscription as a new provider
  pw ai codex connect --name personal
  
  # Reconnect an existing provider without changing its identity
  pw ai codex connect --name personal --reconnect
```

### Options

```
  -h, --help          help for connect
      --name string   Name for the AI provider
      --reconnect     Reconnect an existing Codex provider
  -y, --yes           Skip the confirmation prompt
```

### Options inherited from parent commands

```
      --context string         The context to use. Overrides PW_CONTEXT environment variable and current context from config.
      --platform-host string   The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
  -v, --verbose                Enable verbose logging
```

### SEE ALSO

* [pw ai codex](/docs/cli/pw/ai/codex)	 - Manage ChatGPT/Codex subscription providers
