Function: createOpenAiAccountSeatBuilder()
ts
function createOpenAiAccountSeatBuilder(
id,
configDir?,
apiKey?
): OpenAiAccountSeatBuilder;Defined in: openai/src/builders/create-openai-account-seat-builder.ts:18
Creates an immutable OpenAiAccountSeatBuilder for an OpenAI API key seat or Codex CLI seat.
Performs zero filesystem reads or environment variable lookups at builder construction time, deferring credential resolution to OpenAiModelDriver.invokeTurn().
Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Non-empty unique seat identifier. |
configDir? | string | Optional Codex CLI configuration directory path. |
apiKey? | string | EnvRef | Optional literal API key or symbolic EnvRef. |
Returns
Immutable builder compiling to OpenAiAccountSeatNode.
Throws
If id is an empty or whitespace-only string.