IntelligenceX
Cmdlet

Connect-IntelligenceX

Namespace IntelligenceX.PowerShell
Outputs
IntelligenceX.OpenAI.IntelligenceXClient

Connects to IntelligenceX (native or app-server) and returns a client instance.

Examples

Example 1


Connect-IntelligenceX -Transport Native
        

Native transport (ChatGPT OAuth)

Example 2


Connect-IntelligenceX -Transport AppServer -ExecutablePath "C:\tools\codex.exe"
        

App-server transport with explicit executable path

Example 3


Connect-IntelligenceX -Transport AppServer -WorkingDirectory "C:\repo" -Arguments "app-server --verbose"
        

App-server transport with custom working directory and args

Example 4


Connect-IntelligenceX -Transport Native -Diagnostics
        

Enable diagnostics output

Example 5


Connect-IntelligenceX -Transport Native -OpenAIAccountId "user-123"
        

Pin a specific OpenAI account id when multiple bundles are present

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.

Syntax

Connect-IntelligenceX [-Arguments <string>] [-Diagnostics] [-ExecutablePath <string>] [-NoConfig] [-OpenAIAccountId <string>] [-Transport <Native|AppServer|CompatibleHttp|CopilotCli>] [-WorkingDirectory <string>] [<CommonParameters>]
#

Parameters

Arguments string optionalposition: namedpipeline: false
Arguments to pass to the app-server. Defaults to 'app-server'.
Diagnostics SwitchParameter optionalposition: namedpipeline: false
Enable diagnostics output (RPC calls, login events, stderr).
ExecutablePath string optionalposition: namedpipeline: false
Path to the codex executable. Defaults to 'codex' on PATH.
NoConfig SwitchParameter optionalposition: namedpipeline: false
Ignore .intelligencex/config.json overrides.
OpenAIAccountId string optionalposition: namedpipeline: false
Optional ChatGPT account id to use when multiple auth bundles are present.
Transport OpenAITransportKind optionalposition: namedpipeline: falsevalues: 4
Transport to use (Native or AppServer). Native uses ChatGPT OAuth directly. Possible values: Native, AppServer, CompatibleHttp, CopilotCli
Possible values: Native, AppServer, CompatibleHttp, CopilotCli
WorkingDirectory string optionalposition: namedpipeline: false
Working directory for the app-server process.

Outputs

IntelligenceX.OpenAI.IntelligenceXClient