Command
Connect-IntelligenceX
Connects to IntelligenceX (native or app-server) and returns a client instance.
Syntax
Connect-IntelligenceX [-Arguments <string>] [-Diagnostics] [-ExecutablePath <string>] [-NoConfig] [-OpenAIAccountId <string>] [-Transport <Native|AppServer|CompatibleHttp|CopilotCli>] [-WorkingDirectory <string>] [<CommonParameters>]#Examples
Example 1
Connect-IntelligenceX -Transport NativeNative 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 -DiagnosticsEnable diagnostics output
Example 5
Connect-IntelligenceX -Transport Native -OpenAIAccountId "user-123"Pin a specific OpenAI account id when multiple bundles are present
Parameters
- -Arguments string
- Arguments to pass to the app-server. Defaults to 'app-server'.
- -Diagnostics SwitchParameter
- Enable diagnostics output (RPC calls, login events, stderr).
- -ExecutablePath string
- Path to the codex executable. Defaults to 'codex' on PATH.
- -NoConfig SwitchParameter
- Ignore .intelligencex/config.json overrides.
- -OpenAIAccountId string
- Optional ChatGPT account id to use when multiple auth bundles are present.
- -Transport OpenAITransportKind
- 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
- Working directory for the app-server process.
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.