# Invoke-IntelligenceXChat

Super-easy chat command that handles connect, init, login, thread, and send.

Command 

**Module**

`IntelligenceX.PowerShell`

**Inputs**

`System.String`

**Outputs**

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

Super-easy chat command that handles connect, init, login, thread, and send.

## Syntax

```
Invoke-IntelligenceXChat
[-Text] <string>
[-AllowNetwork]
[-ApiKey <string>]
[-ApprovalPolicy <string>]
[-Arguments <string>]
[-ClientName <string>]
[-ClientTitle <string>]
[-ClientVersion <string>]
[-DownloadImageUrls]
[-Dsl]
[-ExecutablePath <string>]
[-ImageFileNamePrefix <string>]
[-ImagePath <string>]
[-ImageUrl <string>]
[-Instructions <string>]
[-Login <string>]
[-Model <string>]
[-NewThread]
[-OpenBrowser]
[-OverwriteImages]
[-Raw]
[-ReasoningEffort <Minimal|Low|Medium|High|XHigh>]
[-ReasoningSummary <Auto|Concise|Detailed|Off>]
[-SaveImagesTo <string>]
[-Stream]
[-Temperature <double>]
[-TextVerbosity <Low|Medium|High>]
[-WaitSeconds <int>]
[-WorkingDirectory <string>]
[-Workspace <string>]
[<CommonParameters>]
```

[#](#member-52b22519e8f8f112c0c406aa)

Parameter set: `By Text`

```
Invoke-IntelligenceXChat
[-AllowNetwork]
[-ApiKey <string>]
[-ApprovalPolicy <string>]
[-Arguments <string>]
[-ClientName <string>]
[-ClientTitle <string>]
[-ClientVersion <string>]
[-DownloadImageUrls]
[-Dsl]
[-ExecutablePath <string>]
[-ImageFileNamePrefix <string>]
[-ImagePath <string>]
[-ImageUrl <string>]
[-InputObject <string>]
[-Instructions <string>]
[-Login <string>]
[-Model <string>]
[-NewThread]
[-OpenBrowser]
[-OverwriteImages]
[-Raw]
[-ReasoningEffort <Minimal|Low|Medium|High|XHigh>]
[-ReasoningSummary <Auto|Concise|Detailed|Off>]
[-SaveImagesTo <string>]
[-Stream]
[-Temperature <double>]
[-TextVerbosity <Low|Medium|High>]
[-WaitSeconds <int>]
[-WorkingDirectory <string>]
[-Workspace <string>]
[<CommonParameters>]
```

[#](#member-5ff420dc6b4ec00b73cc2cb1)

Parameter set: `By InputObject`

## Examples

### Example 1

```powershell
Invoke-IntelligenceXChat -Text "Summarize these changes."
```

Quick chat

### Example 2

```powershell
Invoke-IntelligenceXChat -Text "List risks." -Stream -WaitSeconds 10
```

Chat with streaming output

### Example 3

```powershell
@"
            text: Describe the image
            image: C:\temp\diagram.png
            "@ | Invoke-IntelligenceXChat -Dsl
```

Use the DSL to mix text and an image

### Example 4

```powershell
Invoke-IntelligenceXChat -Text "Hello" -Login ApiKey -ApiKey $env:OPENAI_API_KEY
```

Use API key login

### Example 5

```powershell
Invoke-IntelligenceXChat -Text "Run tests" -Workspace "C:\repo" -AllowNetwork
```

Run with a workspace sandbox and network access

## Parameters

**-Text string requiredposition: 0sets: By Text**

Message text to send.

**-AllowNetwork SwitchParameter optional**

Allow network access when using a workspace sandbox.

**-ApiKey string optional**

API key to use when Login is ApiKey.

**-ApprovalPolicy string optional**

Approval policy (for example auto).

**-Arguments string optional**

Codex app-server arguments.

**-ClientName string optional**

Client name for initialization.

**-ClientTitle string optional**

Client title for initialization.

**-ClientVersion string optional**

Client version for initialization.

**-DownloadImageUrls SwitchParameter optional**

Download image URLs when saving images.

**-Dsl SwitchParameter optional**

Parse Text as a simple DSL (lines starting with image:, url:, text:).

**-ExecutablePath string optional**

Codex executable path.

**-ImageFileNamePrefix string optional**

Prefix for saved image file names.

**-ImagePath string optional**

Image file path to include with the message.

**-ImageUrl string optional**

Image URL to include with the message.

**-Instructions string optional**

System instructions for the assistant.

**-Login string optional**

Login method: ChatGpt, ApiKey, or None.

**-Model string optional**

Model identifier. Defaults to gpt-5.3-codex.

**-NewThread SwitchParameter optional**

Reset thread before sending.

**-OpenBrowser SwitchParameter optional**

Open the login URL in the default browser.

**-OverwriteImages SwitchParameter optional**

Overwrite existing files when saving images.

**-Raw SwitchParameter optional**

Return raw JSON response.

**-ReasoningEffort ReasoningEffort optional**

Reasoning effort level. Possible values: Minimal, Low, Medium, High, XHigh

Possible values: `Minimal`, `Low`, `Medium`, `High`, `XHigh`

**-ReasoningSummary ReasoningSummary optional**

Reasoning summary level. Possible values: Auto, Concise, Detailed, Off

Possible values: `Auto`, `Concise`, `Detailed`, `Off`

**-SaveImagesTo string optional**

Save image outputs to the specified directory.

**-Stream SwitchParameter optional**

Write streaming deltas to the host.

**-Temperature double optional**

Sampling temperature.

**-TextVerbosity TextVerbosity optional**

Response verbosity level. Possible values: Low, Medium, High

Possible values: `Low`, `Medium`, `High`

**-WaitSeconds int optional**

Wait N seconds for streaming output after sending.

**-WorkingDirectory string optional**

Working directory for app-server.

**-Workspace string optional**

Workspace directory for file writes (sets sandbox policy).

**-InputObject string optionalpipeline: true (ByValue)sets: By InputObject**

Pipeline input for DSL lines (text, image, url).

## 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:96A47B7E6249D203FDF59772EEFB0D2BA3D6C08E68236FD25FBDD238E4340EAA -->
