# Start-IntelligenceXChatGptLogin

Starts the ChatGPT login flow and returns the authorization URL.

Command 

**Module**

`IntelligenceX.PowerShell`

**Inputs**

`IntelligenceX.OpenAI.IntelligenceXClient`

**Outputs**

`IntelligenceX.Json.JsonValue` `IntelligenceX.OpenAI.AppServer.Models.ChatGptLoginStart`

Starts the ChatGPT login flow and returns the authorization URL.

## Syntax

```
Start-IntelligenceXChatGptLogin
[-Client <IntelligenceXClient>]
[-Raw]
[<CommonParameters>]
```

[#](#method-start-intelligencexchatgptlogin-intelligencexclient-switchparameter)

## Examples

### Example 1

```powershell
Start-IntelligenceXChatGptLogin
```

Start login and open the browser

### Example 2

```powershell
Start-IntelligenceXChatGptLogin -Raw
```

Return the raw JSON response for custom handling

### Example 3

```powershell
$login = Start-IntelligenceXChatGptLogin; Wait-IntelligenceXLogin -LoginId $login.LoginId
```

Start login and explicitly wait for completion

## Parameters

**-Client IntelligenceXClient optionalpipeline: true (ByValue)**

Client instance to use. Defaults to the active client.

**-Raw SwitchParameter optional**

Returns the raw JSON-RPC payload instead of typed login data.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:A54E6696D0DFDBCF9BE69D59EA884A4271EEB8A1CBFCD36D4FA2A3E8CF004DC8 -->
