models
Class info¶
Re-exported classes¶
| Class | Module | Description |
|---|---|---|
| AccountLoginCompletedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| AccountLoginCompletedNotification | codexed.models.v2_protocol | |
| AccountRateLimitsUpdatedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| AccountRateLimitsUpdatedNotification | codexed.models.v2_protocol | Sparse rolling rate-limit update. |
| AccountSendAddCreditsNudgeEmailRequest | codexed.models.v2_protocol | Request from the client to the server. |
| AccountUpdatedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| AccountUpdatedNotification | codexed.models.v2_protocol | |
| ActiveThreadStatus | codexed.models.v2_protocol | |
| AgentJobsToolsConfig | codexed.models.tool_config | Configuration for CSV-backed agent job tools. |
| AgentMessageDeltaNotification | codexed.models.v2_protocol | |
| AppBranding | codexed.models.v2_protocol | EXPERIMENTAL - app metadata returned by app-list APIs. |
| AppInfo | codexed.models.v2_protocol | EXPERIMENTAL - app metadata returned by app-list APIs. |
| AppListUpdatedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| AppListUpdatedNotification | codexed.models.v2_protocol | EXPERIMENTAL - notification emitted when the app list changes. |
| AppMetadata | codexed.models.v2_protocol | |
| AppReview | codexed.models.v2_protocol | |
| AppScreenshot | codexed.models.v2_protocol | |
| ApplyPatchToolConfig | codexed.models.tool_config | Configuration for the apply_patch tool. |
| AppsListParams | codexed.models.v2_protocol | EXPERIMENTAL - list available apps/connectors. |
| AppsListResponse | codexed.models.v2_protocol | EXPERIMENTAL - app list response. |
| ArtifactsToolConfig | codexed.models.tool_config | Configuration for the artifacts tool. |
| BaseBranchReviewTarget | codexed.models.v2_protocol | Review changes between the current branch and the given base branch. |
| BuiltinToolsConfig | codexed.models.tool_config | Combined configuration for all Codex builtin tools. |
| ByteRange | codexed.models.v2_protocol | |
| CancelLoginAccountParams | codexed.models.v2_protocol | |
| CancelLoginAccountResponse | codexed.models.v2_protocol | |
| ClientInfo | codexed.models.v2_protocol | |
| CodexBaseModel | codexed.models.base | Base model for all Codex API models. |
| CollabAgentState | codexed.models.v2_protocol | |
| CollabToolsConfig | codexed.models.tool_config | Configuration for multi-agent collaboration tools. |
| CollaborationMode | codexed.models.v2_protocol | Collaboration mode for a Codex session. |
| CollaborationModeListParams | codexed.models.v2_protocol | EXPERIMENTAL - list collaboration mode presets. |
| CollaborationModeListResponse | codexed.models.v2_protocol | EXPERIMENTAL - collaboration mode presets response. |
| CollaborationModeMask | codexed.models.v2_protocol | EXPERIMENTAL - collaboration mode preset metadata for clients. |
| CommandExecOutputDeltaMessage | codexed.models.v2_protocol | Stream base64-encoded stdout/stderr chunks for a running command/exec session. |
| CommandExecOutputDeltaNotification | codexed.models.v2_protocol | Base64-encoded output chunk emitted for a streaming command/exec request. |
| CommandExecParams | codexed.models.v2_protocol | Run a standalone command (argv vector) in the server sandbox without creating a thread or turn. |
| CommandExecResizeParams | codexed.models.v2_protocol | Resize a running PTY-backed command/exec session. |
| CommandExecResizeResponse | codexed.models.v2_protocol | Empty success response for command/exec/resize. |
| CommandExecResponse | codexed.models.v2_protocol | Final buffered result for command/exec. |
| CommandExecTerminalSize | codexed.models.v2_protocol | PTY size in character cells for command/exec PTY sessions. |
| CommandExecTerminateParams | codexed.models.v2_protocol | Terminate a running command/exec session. |
| CommandExecTerminateResponse | codexed.models.v2_protocol | Empty success response for command/exec/terminate. |
| CommandExecWriteParams | codexed.models.v2_protocol | Write stdin bytes to a running command/exec session, close stdin, or both. |
| CommandExecWriteResponse | codexed.models.v2_protocol | Empty success response for command/exec/write. |
| CommandExecutionOutputDeltaNotification | codexed.models.v2_protocol | |
| CommandExecutionRequestApprovalParams | codexed.models.request_params | Parameters for item/commandExecution/requestApproval server request. |
| CommandExecutionRequestApprovalResponse | codexed.models.responses | Response for item/commandExecution/requestApproval server request. |
| CommitReviewTarget | codexed.models.v2_protocol | Review the changes introduced by a specific commit. |
| CompactionResponseItem | codexed.models.v2_protocol | |
| ConfigBatchWriteParams | codexed.models.v2_protocol | |
| ConfigEdit | codexed.models.v2_protocol | |
| ConfigLayer | codexed.models.v2_protocol | |
| ConfigLayerMetadata | codexed.models.v2_protocol | |
| ConfigReadParams | codexed.models.v2_protocol | |
| ConfigReadResponse | codexed.models.v2_protocol | |
| ConfigRequirements | codexed.models.v2_protocol | |
| ConfigRequirementsReadResponse | codexed.models.v2_protocol | |
| ConfigValueWriteParams | codexed.models.v2_protocol | |
| ConfigWarningMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ConfigWarningNotification | codexed.models.v2_protocol | |
| ConfigWriteResponse | codexed.models.v2_protocol | |
| ContextCompactedNotification | codexed.models.v2_protocol | Deprecated: Use ContextCompaction item type instead. |
| CreditsSnapshot | codexed.models.v2_protocol | |
| CustomReviewTarget | codexed.models.v2_protocol | Arbitrary instructions, equivalent to the old free-form prompt. |
| CustomToolCallOutputResponseItem | codexed.models.v2_protocol | |
| CustomToolCallResponseItem | codexed.models.v2_protocol | |
| DangerFullAccessSandboxPolicy | codexed.models.v2_protocol | |
| DeprecationNoticeMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| DeprecationNoticeNotification | codexed.models.v2_protocol | |
| DynamicToolCallParams | codexed.models.request_params | Parameters for item/tool/call server request. |
| DynamicToolCallResponse | codexed.models.responses | Response for item/tool/call server request. |
| ErrorMessage | codexed.models.v2_protocol | NEW NOTIFICATIONS. |
| ErrorNotification | codexed.models.v2_protocol | |
| ExecPolicyAmendment | codexed.models.misc | Proposed execpolicy amendment (prefix rule). |
| ExperimentalFeature | codexed.models.v2_protocol | |
| ExperimentalFeatureListParams | codexed.models.v2_protocol | |
| ExperimentalFeatureListResponse | codexed.models.v2_protocol | |
| ExternalAgentConfigDetectParams | codexed.models.v2_protocol | |
| ExternalAgentConfigDetectResponse | codexed.models.v2_protocol | |
| ExternalAgentConfigImportParams | codexed.models.v2_protocol | |
| ExternalAgentConfigMigrationItem | codexed.models.v2_protocol | |
| ExternalSandboxSandboxPolicy | codexed.models.v2_protocol | |
| FeedbackUploadParams | codexed.models.v2_protocol | |
| FeedbackUploadResponse | codexed.models.v2_protocol | |
| FileChangeOutputDeltaNotification | codexed.models.v2_protocol | Deprecated legacy notification for apply_patch textual output. |
| FileChangeRequestApprovalParams | codexed.models.request_params | Parameters for item/fileChange/requestApproval server request. |
| FileChangeRequestApprovalResponse | codexed.models.responses | Response for item/fileChange/requestApproval server request. |
| FileUpdateChange | codexed.models.v2_protocol | |
| FindInPageWebSearchAction | codexed.models.v2_protocol | |
| FsChangedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| FsChangedNotification | codexed.models.v2_protocol | Filesystem watch notification emitted for fs/watch subscribers. |
| FsCopyParams | codexed.models.v2_protocol | Copy a file or directory tree on the host filesystem. |
| FsCopyResponse | codexed.models.v2_protocol | Successful response for fs/copy. |
| FsCreateDirectoryParams | codexed.models.v2_protocol | Create a directory on the host filesystem. |
| FsCreateDirectoryResponse | codexed.models.v2_protocol | Successful response for fs/createDirectory. |
| FsGetMetadataParams | codexed.models.v2_protocol | Request metadata for an absolute path. |
| FsGetMetadataResponse | codexed.models.v2_protocol | Metadata returned by fs/getMetadata. |
| FsReadDirectoryEntry | codexed.models.v2_protocol | A directory entry returned by fs/readDirectory. |
| FsReadDirectoryParams | codexed.models.v2_protocol | List direct child names for a directory. |
| FsReadDirectoryResponse | codexed.models.v2_protocol | Directory entries returned by fs/readDirectory. |
| FsReadFileParams | codexed.models.v2_protocol | Read a file from the host filesystem. |
| FsReadFileResponse | codexed.models.v2_protocol | Base64-encoded file contents returned by fs/readFile. |
| FsRemoveParams | codexed.models.v2_protocol | Remove a file or directory tree from the host filesystem. |
| FsRemoveResponse | codexed.models.v2_protocol | Successful response for fs/remove. |
| FsUnwatchParams | codexed.models.v2_protocol | Stop filesystem watch notifications for a prior fs/watch. |
| FsUnwatchResponse | codexed.models.v2_protocol | Successful response for fs/unwatch. |
| FsWatchParams | codexed.models.v2_protocol | Start filesystem watch notifications for an absolute path. |
| FsWatchResponse | codexed.models.v2_protocol | Successful response for fs/watch. |
| FsWriteFileParams | codexed.models.v2_protocol | Write a file on the host filesystem. |
| FsWriteFileResponse | codexed.models.v2_protocol | Successful response for fs/writeFile. |
| FunctionCallOutputResponseItem | codexed.models.v2_protocol | |
| FunctionCallResponseItem | codexed.models.v2_protocol | |
| FuzzyFileSearchParams | codexed.models.v2_protocol | |
| FuzzyFileSearchResult | codexed.models.v2_protocol | Superset of [codex_file_search::FileMatch]. |
| FuzzyFileSearchSessionCompletedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| FuzzyFileSearchSessionCompletedNotification | codexed.models.v2_protocol | |
| FuzzyFileSearchSessionStartParams | codexed.models.v2_protocol | |
| FuzzyFileSearchSessionStopParams | codexed.models.v2_protocol | |
| FuzzyFileSearchSessionUpdateParams | codexed.models.v2_protocol | |
| FuzzyFileSearchSessionUpdatedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| FuzzyFileSearchSessionUpdatedNotification | codexed.models.v2_protocol | |
| GetAccountParams | codexed.models.v2_protocol | |
| GetAccountRateLimitsResponse | codexed.models.v2_protocol | |
| GetAccountResponse | codexed.models.v2_protocol | |
| GitInfo | codexed.models.v2_protocol | |
| Granular | codexed.models.v2_protocol | |
| GrepFilesToolConfig | codexed.models.tool_config | Configuration for the grep_files tool (experimental). |
| HookCompletedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| HookCompletedNotification | codexed.models.v2_protocol | |
| HookOutputEntry | codexed.models.v2_protocol | |
| HookRunSummary | codexed.models.v2_protocol | |
| HookStartedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| HookStartedNotification | codexed.models.v2_protocol | |
| HttpMcpServer | codexed.models.mcp_server | MCP server accessible via HTTP/SSE transport. |
| IdleThreadStatus | codexed.models.v2_protocol | |
| ImageGenerationCallResponseItem | codexed.models.v2_protocol | |
| ImageGenerationToolConfig | codexed.models.tool_config | Configuration for the image_generation tool. |
| InitializeCapabilities | codexed.models.v2_protocol | Client-declared capabilities negotiated during initialize. |
| InitializeParams | codexed.models.v2_protocol | |
| ItemAgentMessageDeltaNotification | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ItemCommandExecutionOutputDeltaNotification | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ItemCommandExecutionTerminalInteractionNotification | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ItemCompletedData | codexed.models.event_data | Payload for item/completed notification (V2 protocol). |
| ItemCompletedEvent | codexed.models.events | Item completed event. |
| ItemFileChangeOutputDeltaNotification | codexed.models.v2_protocol | Deprecated legacy apply_patch output stream notification. |
| ItemMcpToolCallProgressNotification | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ItemPlanDeltaNotification | codexed.models.v2_protocol | EXPERIMENTAL - proposed plan streaming deltas for plan items. |
| ItemReasoningSummaryPartAddedNotification | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ItemReasoningSummaryTextDeltaNotification | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ItemReasoningTextDeltaNotification | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ItemStartedData | codexed.models.event_data | Payload for item/started notification (V2 protocol). |
| ItemStartedEvent | codexed.models.events | Item started event. |
| JsReplToolConfig | codexed.models.tool_config | Configuration for the js_repl / js_repl_reset tools. |
| JsonRpcError | codexed.models.base | JSON-RPC 2.0 error object. |
| JsonRpcNotification | codexed.models.base | JSON-RPC 2.0 notification message (no id). |
| JsonRpcRequest | codexed.models.base | JSON-RPC 2.0 request message. |
| JsonRpcResponse | codexed.models.base | JSON-RPC 2.0 response message. |
| ListDirToolConfig | codexed.models.tool_config | Configuration for the list_dir tool (experimental). |
| ListFilesCommandAction | codexed.models.v2_protocol | |
| ListMcpServerStatusParams | codexed.models.v2_protocol | |
| ListMcpServerStatusResponse | codexed.models.responses | Response for mcpServerStatus/list request. |
| LocalImageUserInput | codexed.models.v2_protocol | |
| LocalShellCallResponseItem | codexed.models.v2_protocol | |
| MarketplaceAddParams | codexed.models.v2_protocol | |
| MarketplaceAddResponse | codexed.models.v2_protocol | |
| MarketplaceRemoveParams | codexed.models.v2_protocol | |
| MarketplaceRemoveResponse | codexed.models.v2_protocol | |
| MarketplaceUpgradeParams | codexed.models.v2_protocol | |
| MarketplaceUpgradeResponse | codexed.models.v2_protocol | |
| McpElicitationFormParams | codexed.models.request_params | Form-mode MCP elicitation request. |
| McpElicitationUrlParams | codexed.models.request_params | URL-mode MCP elicitation request (browser-based auth). |
| McpResourceReadParams | codexed.models.v2_protocol | |
| McpResourceReadResponse | codexed.models.v2_protocol | |
| McpResourceToolsConfig | codexed.models.tool_config | Configuration for MCP resource browsing tools. |
| McpServerElicitationResponse | codexed.models.responses | Response for mcpServer/elicitation/request server request. |
| McpServerOauthLoginCompletedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| McpServerOauthLoginCompletedNotification | codexed.models.v2_protocol | |
| McpServerOauthLoginParams | codexed.models.v2_protocol | |
| McpServerOauthLoginResponse | codexed.models.v2_protocol | |
| McpServerRefreshResponse | codexed.models.v2_protocol | |
| McpServerStartupStatusUpdatedNotification | codexed.models.v2_protocol | Notification sent from the server to the client. |
| McpServerStatusEntry | codexed.models.misc | Status of a single MCP server. |
| McpServerStatusUpdatedNotification | codexed.models.v2_protocol | |
| McpServerToolCallParams | codexed.models.v2_protocol | |
| McpServerToolCallResponse | codexed.models.v2_protocol | |
| McpToolCallError | codexed.models.v2_protocol | |
| McpToolCallProgressNotification | codexed.models.v2_protocol | |
| McpToolCallResult | codexed.models.thread_item | MCP tool call result. |
| MemoryResetResponse | codexed.models.v2_protocol | |
| MentionUserInput | codexed.models.v2_protocol | |
| MessageResponseItem | codexed.models.v2_protocol | |
| Model | codexed.models.v2_protocol | |
| ModelAvailabilityNux | codexed.models.v2_protocol | |
| ModelListParams | codexed.models.v2_protocol | |
| ModelListResponse | codexed.models.v2_protocol | |
| ModelReroutedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ModelReroutedNotification | codexed.models.v2_protocol | |
| ModelUpgradeInfo | codexed.models.v2_protocol | |
| NetworkApprovalContext | codexed.models.misc | Network approval context for command approvals. |
| NetworkPolicyAmendment | codexed.models.misc | Proposed network policy amendment. |
| NetworkRequirements | codexed.models.v2_protocol | |
| NotLoadedThreadStatus | codexed.models.v2_protocol | |
| OpenPageWebSearchAction | codexed.models.v2_protocol | |
| OtherResponseItem | codexed.models.v2_protocol | |
| OtherWebSearchAction | codexed.models.v2_protocol | |
| PlanDeltaNotification | codexed.models.v2_protocol | EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content. |
| PlanToolConfig | codexed.models.tool_config | Configuration for the update_plan tool. |
| PluginInstallParams | codexed.models.v2_protocol | |
| PluginInstallResponse | codexed.models.v2_protocol | |
| PluginListParams | codexed.models.v2_protocol | |
| PluginListResponse | codexed.models.v2_protocol | |
| PluginReadParams | codexed.models.v2_protocol | |
| PluginReadResponse | codexed.models.v2_protocol | |
| PluginUninstallParams | codexed.models.v2_protocol | |
| RateLimitSnapshot | codexed.models.v2_protocol | |
| RateLimitWindow | codexed.models.v2_protocol | |
| ReadCommandAction | codexed.models.v2_protocol | |
| ReadFileToolConfig | codexed.models.tool_config | Configuration for the read_file tool (experimental). |
| ReadOnlySandboxPolicy | codexed.models.v2_protocol | |
| RealtimeVoicesList | codexed.models.v2_protocol | |
| ReasoningEffortOption | codexed.models.v2_protocol | |
| ReasoningResponseItem | codexed.models.v2_protocol | |
| ReasoningSummaryPartAddedNotification | codexed.models.v2_protocol | |
| ReasoningSummaryTextDeltaNotification | codexed.models.v2_protocol | |
| ReasoningTextDeltaNotification | codexed.models.v2_protocol | |
| RemoteSkillSummary | codexed.models.responses | Summary of a remote skill. |
| RequestPermissionsToolConfig | codexed.models.tool_config | Configuration for the request_permissions tool. |
| RequestUserInputToolConfig | codexed.models.tool_config | Configuration for the request_user_input tool. |
| ReviewStartParams | codexed.models.v2_protocol | |
| ReviewStartResponse | codexed.models.responses | Response for review/start request. |
| SearchCommandAction | codexed.models.v2_protocol | |
| SearchWebSearchAction | codexed.models.v2_protocol | |
| SendAddCreditsNudgeEmailParams | codexed.models.v2_protocol | |
| ServerRequestResolvedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ServerRequestResolvedNotification | codexed.models.v2_protocol | |
| Settings | codexed.models.v2_protocol | Settings for a collaboration mode. |
| ShellToolConfig | codexed.models.tool_config | Configuration for the shell / exec tool. |
| SkillDependencies | codexed.models.v2_protocol | |
| SkillErrorInfo | codexed.models.v2_protocol | |
| SkillInterface | codexed.models.v2_protocol | |
| SkillMetadata | codexed.models.v2_protocol | |
| SkillRequestApprovalParams | codexed.models.request_params | Parameters for skill/requestApproval server request. |
| SkillRequestApprovalResponse | codexed.models.misc | Response for skill/requestApproval server request. |
| SkillToolDependency | codexed.models.v2_protocol | |
| SkillUserInput | codexed.models.v2_protocol | |
| SkillsConfigWriteParams | codexed.models.v2_protocol | |
| SkillsConfigWriteResponse | codexed.models.v2_protocol | |
| SkillsListEntry | codexed.models.v2_protocol | |
| SkillsListParams | codexed.models.v2_protocol | |
| SkillsListResponse | codexed.models.v2_protocol | |
| SkillsRemoteExportParams | codexed.models.request_params | Parameters for skills/remote/export request. |
| SkillsRemoteExportResponse | codexed.models.responses | Response for skills/remote/export request. |
| SkillsRemoteListParams | codexed.models.request_params | Parameters for skills/remote/list request. |
| SkillsRemoteListResponse | codexed.models.responses | Response for skills/remote/list request. |
| StdioMcpServer | codexed.models.mcp_server | MCP server running as a subprocess via stdio transport. |
| SystemErrorThreadStatus | codexed.models.v2_protocol | |
| TerminalInteractionNotification | codexed.models.v2_protocol | |
| TextElement | codexed.models.v2_protocol | |
| TextUserInput | codexed.models.v2_protocol | |
| Thread | codexed.models.misc | |
| ThreadArchiveParams | codexed.models.v2_protocol | |
| ThreadArchivedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadArchivedNotification | codexed.models.v2_protocol | |
| ThreadCompactStartParams | codexed.models.v2_protocol | |
| ThreadCompactedMessage | codexed.models.v2_protocol | Deprecated: Use ContextCompaction item type instead. |
| ThreadForkParams | codexed.models.v2_protocol | There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread. |
| ThreadInjectItemsParams | codexed.models.v2_protocol | |
| ThreadItemAgentMessage | codexed.models.thread_item | Agent message item. |
| ThreadItemCollabAgentToolCall | codexed.models.thread_item | Collab agent tool call item. |
| ThreadItemCommandExecution | codexed.models.thread_item | Command execution item. |
| ThreadItemContextCompaction | codexed.models.thread_item | Context compaction item. |
| ThreadItemDynamicToolCall | codexed.models.thread_item | Dynamic tool call item. |
| ThreadItemEnteredReviewMode | codexed.models.thread_item | Entered review mode item. |
| ThreadItemExitedReviewMode | codexed.models.thread_item | Exited review mode item. |
| ThreadItemFileChange | codexed.models.thread_item | File change item. |
| ThreadItemFunctionCallOutput | codexed.models.thread_item | Output of a function call. |
| ThreadItemHookPrompt | codexed.models.thread_item | Prompt injected by a hook. |
| ThreadItemImageGeneration | codexed.models.thread_item | Image generation item. |
| ThreadItemImageView | codexed.models.thread_item | Image view item. |
| ThreadItemMcpToolCall | codexed.models.thread_item | MCP tool call item. |
| ThreadItemPlan | codexed.models.thread_item | Plan item. |
| ThreadItemReasoning | codexed.models.thread_item | Reasoning item. |
| ThreadItemSleep | codexed.models.thread_item | Sleep item. |
| ThreadItemSubAgentActivity | codexed.models.thread_item | Activity of a sub-agent. |
| ThreadItemUserMessage | codexed.models.thread_item | User message item. |
| ThreadItemWebSearch | codexed.models.thread_item | Web search item. |
| ThreadListParams | codexed.models.v2_protocol | |
| ThreadListResponse | codexed.models.responses | Response for thread/list request. |
| ThreadLoadedListParams | codexed.models.v2_protocol | |
| ThreadLoadedListResponse | codexed.models.v2_protocol | |
| ThreadMemoryModeSetParams | codexed.models.v2_protocol | |
| ThreadNameUpdatedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadNameUpdatedNotification | codexed.models.v2_protocol | |
| ThreadReadParams | codexed.models.v2_protocol | |
| ThreadReadResponse | codexed.models.responses | Response for thread/read request. |
| ThreadRealtimeAppendAudioParams | codexed.models.v2_protocol | EXPERIMENTAL - append audio input to thread realtime. |
| ThreadRealtimeAppendAudioResponse | codexed.models.v2_protocol | EXPERIMENTAL - response for appending realtime audio input. |
| ThreadRealtimeAppendTextParams | codexed.models.v2_protocol | EXPERIMENTAL - append text input to thread realtime. |
| ThreadRealtimeAppendTextResponse | codexed.models.v2_protocol | EXPERIMENTAL - response for appending realtime text input. |
| ThreadRealtimeAudioChunk | codexed.models.v2_protocol | EXPERIMENTAL - thread realtime audio chunk. |
| ThreadRealtimeClosedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadRealtimeClosedNotification | codexed.models.v2_protocol | EXPERIMENTAL - emitted when thread realtime transport closes. |
| ThreadRealtimeErrorMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadRealtimeErrorNotification | codexed.models.v2_protocol | EXPERIMENTAL - emitted when thread realtime encounters an error. |
| ThreadRealtimeItemAddedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadRealtimeItemAddedNotification | codexed.models.v2_protocol | EXPERIMENTAL - raw non-audio thread realtime item emitted by the backend. |
| ThreadRealtimeListVoicesParams | codexed.models.v2_protocol | EXPERIMENTAL - list voices supported by thread realtime. |
| ThreadRealtimeListVoicesResponse | codexed.models.v2_protocol | EXPERIMENTAL - response for listing supported realtime voices. |
| ThreadRealtimeOutputAudioDeltaMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadRealtimeOutputAudioDeltaNotification | codexed.models.v2_protocol | EXPERIMENTAL - streamed output audio emitted by thread realtime. |
| ThreadRealtimeStartParams | codexed.models.v2_protocol | EXPERIMENTAL - start a thread-scoped realtime session. |
| ThreadRealtimeStartResponse | codexed.models.v2_protocol | EXPERIMENTAL - response for starting thread realtime. |
| ThreadRealtimeStartedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadRealtimeStartedNotification | codexed.models.v2_protocol | EXPERIMENTAL - emitted when thread realtime startup is accepted. |
| ThreadRealtimeStopParams | codexed.models.v2_protocol | EXPERIMENTAL - stop thread realtime. |
| ThreadRealtimeStopResponse | codexed.models.v2_protocol | EXPERIMENTAL - response for stopping thread realtime. |
| ThreadRealtimeTranscriptDeltaMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadRealtimeTranscriptDoneMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadResponse | codexed.models.responses | Response for thread/start, thread/resume, and thread/fork. |
| ThreadResumeParams | codexed.models.v2_protocol | There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it. |
| ThreadRevertParams | codexed.models.v2_protocol | Replace a paginated thread's durable history with the prefix before one turn. |
| ThreadRevertResponse | codexed.models.responses | Response for thread/revert request. |
| ThreadSetNameParams | codexed.models.v2_protocol | |
| ThreadShellCommandParams | codexed.models.v2_protocol | |
| ThreadShellCommandResponse | codexed.models.v2_protocol | |
| ThreadStartParams | codexed.models.v2_protocol | |
| ThreadStartedData | codexed.models.event_data | Payload for thread/started notification (V2 protocol). |
| ThreadStartedEvent | codexed.models.events | Thread started event. |
| ThreadStatusChangedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadStatusChangedNotification | codexed.models.v2_protocol | |
| ThreadTokenUsage | codexed.models.v2_protocol | |
| ThreadTokenUsageUpdatedEvent | codexed.models.events | Thread token usage updated event. |
| ThreadTokenUsageUpdatedNotification | codexed.models.v2_protocol | |
| ThreadTurnsListParams | codexed.models.v2_protocol | |
| ThreadTurnsListResponse | codexed.models.v2_protocol | |
| ThreadUnarchiveParams | codexed.models.v2_protocol | |
| ThreadUnarchiveResponse | codexed.models.responses | Response for thread/unarchive request. |
| ThreadUnarchivedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| ThreadUnsubscribeParams | codexed.models.v2_protocol | |
| ThreadUnsubscribeResponse | codexed.models.v2_protocol | |
| TokenUsageBreakdown | codexed.models.v2_protocol | |
| ToolRequestUserInputAnswer | codexed.models.misc | A user's answer to a request_user_input question. |
| ToolRequestUserInputOption | codexed.models.misc | A selectable option for a user input question. |
| ToolRequestUserInputParams | codexed.models.request_params | Parameters for item/tool/requestUserInput server request. |
| ToolRequestUserInputQuestion | codexed.models.misc | A question in a tool request for user input. |
| ToolRequestUserInputResponse | codexed.models.responses | Response for item/tool/requestUserInput server request. |
| ToolSearchToolConfig | codexed.models.tool_config | Configuration for the tool_search tool (requires apps). |
| ToolSuggestToolConfig | codexed.models.tool_config | Configuration for the tool_suggest tool (requires discoverable tools). |
| Turn | codexed.models.misc | Turn data structure. |
| TurnCompletedData | codexed.models.event_data | Payload for turn/completed notification (V2 protocol). |
| TurnCompletedEvent | codexed.models.events | Turn completed event. |
| TurnData | codexed.models.misc | Turn data in responses. |
| TurnDiffUpdatedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| TurnDiffUpdatedNotification | codexed.models.v2_protocol | Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn. |
| TurnEnvironmentParams | codexed.models.v2_protocol | |
| TurnError | codexed.models.v2_protocol | |
| TurnInterruptParams | codexed.models.v2_protocol | |
| TurnPlanStep | codexed.models.v2_protocol | |
| TurnPlanUpdatedMessage | codexed.models.v2_protocol | Notification sent from the server to the client. |
| TurnPlanUpdatedNotification | codexed.models.v2_protocol | |
| TurnStartParams | codexed.models.v2_protocol | |
| TurnStartResponse | codexed.models.responses | Response for turn/start request. |
| TurnStartedData | codexed.models.event_data | Payload for turn/started notification (V2 protocol). |
| TurnStartedEvent | codexed.models.events | Turn started event. |
| TurnSteerParams | codexed.models.v2_protocol | |
| TurnSteerResponse | codexed.models.v2_protocol | |
| UncommittedChangesReviewTarget | codexed.models.v2_protocol | Review the working tree: staged, unstaged, and untracked files. |
| UnknownCommandAction | codexed.models.v2_protocol | |
| ViewImageToolConfig | codexed.models.tool_config | Configuration for the view_image tool. |
| WarningNotification | codexed.models.v2_protocol | |
| WebSearchCallResponseItem | codexed.models.v2_protocol | |
| WebSearchLocation | codexed.models.v2_protocol | |
| WebSearchToolConfig | codexed.models.tool_config | Configuration for the web_search tool. |
| WindowsWorldWritableWarningMessage | codexed.models.v2_protocol | Notifies the user of world-writable directories on Windows, which cannot be protected by the sandbox. |
| WindowsWorldWritableWarningNotification | codexed.models.v2_protocol | |
| WorkspaceWriteSandboxPolicy | codexed.models.v2_protocol |
🛈 DocStrings¶
Codex adapter models.
McpServerElicitationRequestParams
module-attribute
¶
McpServerElicitationRequestParams = Annotated[
McpElicitationFormParams | McpElicitationUrlParams, Discriminator("mode")
]
Parameters for mcpServer/elicitation/request, discriminated by mode.
ToolConfig
module-attribute
¶
ToolConfig = Annotated[
ShellToolConfig
| ApplyPatchToolConfig
| WebSearchToolConfig
| ImageGenerationToolConfig
| ViewImageToolConfig
| PlanToolConfig
| JsReplToolConfig
| CollabToolsConfig
| AgentJobsToolsConfig
| RequestUserInputToolConfig
| RequestPermissionsToolConfig
| ArtifactsToolConfig
| GrepFilesToolConfig
| ReadFileToolConfig
| ListDirToolConfig
| ToolSearchToolConfig
| ToolSuggestToolConfig
| McpResourceToolsConfig,
Discriminator("type"),
]
Discriminated union of all builtin tool configurations.
ApprovalsReviewer
¶
Configures who approval requests are routed to for review. Examples include sandbox escapes, blocked network access, MCP approval prompts, and ARC escalations. Defaults to user. auto_review uses a carefully prompted subagent to gather relevant context and apply a risk-based decision framework before approving or denying the request. The legacy value guardian_subagent is accepted for compatibility.
AuthMode
¶
AuthMode = Literal[
"apikey",
"chatgpt",
"chatgptAuthTokens",
"headers",
"agentIdentity",
"personalAccessToken",
"bedrockApiKey",
"bedrockAccessKeys",
]
Authentication mode for OpenAI-backed providers.
CommandExecOutputStream
¶
Stream label for command/exec/outputDelta notifications.
InputModality
¶
Canonical user-input modality tags advertised by a model.
MessagePhase
¶
Classifies assistant text as commentary, a partial answer, or a terminal answer.
Providers do not emit this consistently, so callers must treat None as "phase unknown" and keep compatibility behavior for legacy models.
ModeKind
¶
Initial collaboration mode to use when the TUI starts.
Personality
¶
Deprecated: friendly and pragmatic no longer select a style.
ReasoningEffort
¶
A non-empty reasoning effort value advertised by the model.
ReasoningSummary
¶
A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#reasoning-summaries
ThreadRealtimeStartTransport
¶
ThreadRealtimeStartTransport = (
WebsocketThreadRealtimeStartTransport
| WebrtcThreadRealtimeStartTransport
| ExistingCallThreadRealtimeStartTransport
)
EXPERIMENTAL - transport used by thread realtime.
ToolApprovalMode
¶
When Codex asks before calling a server's tools (default_tools_approval_mode).
auto: Codex's default; asks unless the tool is annotated read-only, or non-destructive and closed-world. Under approval policyneverit rejects them.prompt: always asks.writes: asks unless the tool is annotated read-only.approve: never asks.
AccountLoginCompletedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
AccountRateLimitsUpdatedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
AccountRateLimitsUpdatedNotification
¶
Bases: CodexBaseModel
Sparse rolling rate-limit update.
Clients should merge available values into the most recent account/rateLimits/read response or refetch that snapshot. Nullable account metadata may be unavailable in a rolling update and does not clear a previously observed value.
Source code in src/codexed/models/v2_protocol.py
AccountSendAddCreditsNudgeEmailRequest
¶
Bases: CodexBaseModel
Request from the client to the server.
Source code in src/codexed/models/v2_protocol.py
AccountUpdatedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
AccountUpdatedNotification
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
reason
class-attribute
instance-attribute
¶
Set when initial routing discovery completes for the same authenticated owner.
AgentJobsToolsConfig
¶
Bases: _ToolConfigBase
Configuration for CSV-backed agent job tools.
Controls spawn_agents_on_csv and report_agent_job_result.
Source code in src/codexed/models/tool_config.py
AppBranding
¶
Bases: CodexBaseModel
EXPERIMENTAL - app metadata returned by app-list APIs.
Source code in src/codexed/models/v2_protocol.py
AppInfo
¶
Bases: CodexBaseModel
EXPERIMENTAL - app metadata returned by app-list APIs.
Source code in src/codexed/models/v2_protocol.py
is_enabled
class-attribute
instance-attribute
¶
Whether this app is enabled in config.toml. Example: toml [apps.bad_app] enabled = false
AppListUpdatedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
AppListUpdatedNotification
¶
Bases: CodexBaseModel
EXPERIMENTAL - notification emitted when the app list changes.
Source code in src/codexed/models/v2_protocol.py
ApplyPatchToolConfig
¶
Bases: _ToolConfigBase
Configuration for the apply_patch tool.
Source code in src/codexed/models/tool_config.py
variant
class-attribute
instance-attribute
¶
Patch format variant.
AppsListParams
¶
Bases: CodexBaseModel
EXPERIMENTAL - list available apps/connectors.
Source code in src/codexed/models/v2_protocol.py
cursor
class-attribute
instance-attribute
¶
Opaque pagination cursor returned by a previous call.
force_refetch
class-attribute
instance-attribute
¶
When true, bypass app caches and fetch the latest data from sources.
limit
class-attribute
instance-attribute
¶
Optional page size; defaults to a reasonable server-side value.
thread_id
class-attribute
instance-attribute
¶
Optional thread id used to evaluate app feature gating from that thread's config.
AppsListResponse
¶
Bases: CodexBaseModel
EXPERIMENTAL - app list response.
Source code in src/codexed/models/v2_protocol.py
next_cursor
class-attribute
instance-attribute
¶
Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.
ArtifactsToolConfig
¶
BaseBranchReviewTarget
¶
Bases: CodexBaseModel
Review changes between the current branch and the given base branch.
Source code in src/codexed/models/v2_protocol.py
BuiltinToolsConfig
¶
Bases: BaseModel
Combined configuration for all Codex builtin tools.
Provides named fields as a convenience over list[ToolConfig].
Call :meth:to_config_dict to obtain the config dict for
ThreadStartParams, or :meth:to_tool_list to get a
list[ToolConfig].
Example::
tools = BuiltinToolsConfig(
web_search=WebSearchToolConfig(mode="live", context_size="high"),
js_repl=JsReplToolConfig(),
)
params = ThreadStartParams(config=tools.to_config_dict())
Source code in src/codexed/models/tool_config.py
to_config_dict
¶
Serialize into a flat config dict for ThreadStartParams.config.
Only explicitly set tools are included. An empty BuiltinToolsConfig
produces an empty dict (server defaults preserved).
Source code in src/codexed/models/tool_config.py
to_tool_list
¶
to_tool_list() -> list[ToolConfig]
Return only explicitly set tool configs as a list.
Source code in src/codexed/models/tool_config.py
CodexBaseModel
¶
Bases: BaseModel
Base model for all Codex API models.
Provides:
- Strict validation in tests (CODEXED_STRICT_MODELS=1: forbids extra fields to catch
schema changes)
- Lenient validation in production (ignores extra fields for forward compat)
- Snake_case Python fields with camelCase JSON aliases
- Both field names and aliases accepted for parsing (populate_by_name=True)
Source code in src/codexed/models/base.py
CollabToolsConfig
¶
Bases: _ToolConfigBase
Configuration for multi-agent collaboration tools.
Controls spawn_agent, send_input, resume_agent,
wait_agent, and close_agent.
Source code in src/codexed/models/tool_config.py
CollaborationMode
¶
CollaborationModeListParams
¶
Bases: CodexBaseModel
EXPERIMENTAL - list collaboration mode presets.
Source code in src/codexed/models/v2_protocol.py
CollaborationModeListResponse
¶
Bases: CodexBaseModel
EXPERIMENTAL - collaboration mode presets response.
Source code in src/codexed/models/v2_protocol.py
CollaborationModeMask
¶
Bases: CodexBaseModel
EXPERIMENTAL - collaboration mode preset metadata for clients.
Source code in src/codexed/models/v2_protocol.py
CommandExecOutputDeltaMessage
¶
Bases: CodexBaseModel
Stream base64-encoded stdout/stderr chunks for a running command/exec session.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
CommandExecOutputDeltaNotification
¶
Bases: CodexBaseModel
Base64-encoded output chunk emitted for a streaming command/exec request.
These notifications are connection-scoped. If the originating connection closes, the server terminates the process.
Source code in src/codexed/models/v2_protocol.py
CommandExecParams
¶
Bases: CodexBaseModel
Run a standalone command (argv vector) in the server sandbox without creating a thread or turn.
The final command/exec response is deferred until the process exits and is sent only after all command/exec/outputDelta notifications for that connection have been emitted.
Source code in src/codexed/models/v2_protocol.py
1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 | |
cwd
class-attribute
instance-attribute
¶
Optional working directory. Defaults to the server cwd.
disable_output_cap
class-attribute
instance-attribute
¶
Disable stdout/stderr capture truncation for this request.
Cannot be combined with outputBytesCap.
disable_timeout
class-attribute
instance-attribute
¶
Disable the timeout entirely for this request.
Cannot be combined with timeoutMs.
env
class-attribute
instance-attribute
¶
Optional environment overrides merged into the server-computed environment.
Matching names override inherited values. Set a key to null to unset an inherited variable.
output_bytes_cap
class-attribute
instance-attribute
¶
Optional per-stream stdout/stderr capture cap in bytes.
When omitted, the server default applies. Cannot be combined with disableOutputCap.
permission_profile
class-attribute
instance-attribute
¶
Optional active permissions profile id for this command.
Defaults to the user's configured permissions when omitted. Cannot be combined with sandboxPolicy.
process_id
class-attribute
instance-attribute
¶
Optional client-supplied, connection-scoped process id.
Required for tty, streamStdin, streamStdoutStderr, and follow-up command/exec/write, command/exec/resize, and command/exec/terminate calls. When omitted, buffered execution gets an internal id that is not exposed to the client.
sandbox_policy
class-attribute
instance-attribute
¶
Optional sandbox policy for this command.
Uses the same shape as thread/turn execution sandbox configuration and defaults to the user's configured policy when omitted. Cannot be combined with permissionProfile.
size
class-attribute
instance-attribute
¶
size: CommandExecTerminalSize | None = None
Optional initial PTY size in character cells. Only valid when tty is true.
stream_stdin
class-attribute
instance-attribute
¶
Allow follow-up command/exec/write requests to write stdin bytes.
Requires a client-supplied processId.
stream_stdout_stderr
class-attribute
instance-attribute
¶
Stream stdout/stderr via command/exec/outputDelta notifications.
Streamed bytes are not duplicated into the final response and require a client-supplied processId.
timeout_ms
class-attribute
instance-attribute
¶
Optional timeout in milliseconds.
When omitted, the server default applies. Cannot be combined with disableTimeout.
tty
class-attribute
instance-attribute
¶
Enable PTY mode.
This implies streamStdin and streamStdoutStderr.
CommandExecResizeParams
¶
Bases: CodexBaseModel
Resize a running PTY-backed command/exec session.
Source code in src/codexed/models/v2_protocol.py
process_id
instance-attribute
¶
Client-supplied, connection-scoped processId from the original command/exec request.
CommandExecResizeResponse
¶
Bases: CodexBaseModel
Empty success response for command/exec/resize.
Source code in src/codexed/models/v2_protocol.py
CommandExecResponse
¶
Bases: CodexBaseModel
Final buffered result for command/exec.
Source code in src/codexed/models/v2_protocol.py
CommandExecTerminalSize
¶
Bases: CodexBaseModel
PTY size in character cells for command/exec PTY sessions.
Source code in src/codexed/models/v2_protocol.py
CommandExecTerminateParams
¶
Bases: CodexBaseModel
Terminate a running command/exec session.
Source code in src/codexed/models/v2_protocol.py
process_id
instance-attribute
¶
Client-supplied, connection-scoped processId from the original command/exec request.
CommandExecTerminateResponse
¶
Bases: CodexBaseModel
Empty success response for command/exec/terminate.
Source code in src/codexed/models/v2_protocol.py
CommandExecWriteParams
¶
Bases: CodexBaseModel
Write stdin bytes to a running command/exec session, close stdin, or both.
Source code in src/codexed/models/v2_protocol.py
close_stdin
class-attribute
instance-attribute
¶
Close stdin after writing deltaBase64, if present.
delta_base64
class-attribute
instance-attribute
¶
Optional base64-encoded stdin bytes to write.
process_id
instance-attribute
¶
Client-supplied, connection-scoped processId from the original command/exec request.
CommandExecWriteResponse
¶
Bases: CodexBaseModel
Empty success response for command/exec/write.
Source code in src/codexed/models/v2_protocol.py
CommandExecutionRequestApprovalParams
¶
Bases: CodexBaseModel
Parameters for item/commandExecution/requestApproval server request.
Source code in src/codexed/models/request_params.py
CommandExecutionRequestApprovalResponse
¶
Bases: CodexBaseModel
Response for item/commandExecution/requestApproval server request.
Source code in src/codexed/models/responses.py
CommitReviewTarget
¶
Bases: CodexBaseModel
Review the changes introduced by a specific commit.
Source code in src/codexed/models/v2_protocol.py
title
class-attribute
instance-attribute
¶
Optional human-readable label (e.g., commit subject) for UIs.
ConfigBatchWriteParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
file_path
class-attribute
instance-attribute
¶
Path to the config file to write; defaults to the user's config.toml when omitted.
reload_user_config
class-attribute
instance-attribute
¶
When true, hot-reload updated runtime settings into loaded threads after writing. Session-static model, reasoning-effort, Plan-mode reasoning-effort, and service-tier defaults are not reloaded. The deprecated personality setting is also not reloaded.
ConfigReadParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
cwd
class-attribute
instance-attribute
¶
Optional working directory to resolve project config layers. If specified, return the effective config as seen from that directory (i.e., including any project layers between cwd and the project/repo root).
ConfigRequirements
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
allowed_login_methods
class-attribute
instance-attribute
¶
Effective login methods after managed, forced-login, and workspace restrictions. An empty list permits no login method. Older servers may omit this field.
model_provider
class-attribute
instance-attribute
¶
Exact provider selection required by managed policy.
model_providers
class-attribute
instance-attribute
¶
Complete required provider definitions, using config.toml field names.
ConfigRequirementsReadResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
requirements
class-attribute
instance-attribute
¶
requirements: ConfigRequirements | None = None
Null if no requirements are configured (e.g. no requirements.toml/MDM entries).
supports_independent_speed_modes
class-attribute
instance-attribute
¶
Whether Fast and Ultra Fast requirements are enforced independently. Older servers omit this field and use Fast mode as a shared speed gate.
ConfigValueWriteParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
file_path
class-attribute
instance-attribute
¶
Path to the config file to write; defaults to the user's config.toml when omitted.
ConfigWarningMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ConfigWarningNotification
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
ConfigWriteResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
file_path
instance-attribute
¶
file_path: AbsolutePathBuf
Canonical path to the config file that was written.
ContextCompactedNotification
¶
CustomReviewTarget
¶
Bases: CodexBaseModel
Arbitrary instructions, equivalent to the old free-form prompt.
Source code in src/codexed/models/v2_protocol.py
DeprecationNoticeMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
DeprecationNoticeNotification
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
DynamicToolCallParams
¶
Bases: CodexBaseModel
Parameters for item/tool/call server request.
Source code in src/codexed/models/request_params.py
DynamicToolCallResponse
¶
ErrorMessage
¶
Bases: CodexBaseModel
NEW NOTIFICATIONS.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ExecPolicyAmendment
¶
Bases: CodexBaseModel
Proposed execpolicy amendment (prefix rule).
Source code in src/codexed/models/misc.py
ExperimentalFeature
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
announcement
class-attribute
instance-attribute
¶
Announcement copy shown to users when the feature is introduced. Null when this feature is not in beta.
default_enabled
instance-attribute
¶
Whether this feature is enabled by default.
description
class-attribute
instance-attribute
¶
Short summary describing what the feature does. Null when this feature is not in beta.
display_name
class-attribute
instance-attribute
¶
User-facing display name shown in the experimental features UI. Null when this feature is not in beta.
enabled
instance-attribute
¶
Whether this feature is currently enabled in the loaded config.
ExperimentalFeatureListParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
cursor
class-attribute
instance-attribute
¶
Opaque pagination cursor returned by a previous call.
limit
class-attribute
instance-attribute
¶
Optional page size; defaults to a reasonable server-side value.
thread_id
class-attribute
instance-attribute
¶
Optional loaded thread id. Pass this when showing feature state for an existing thread so enablement is computed from that thread's refreshed config, including project-local config for the thread's cwd.
ExperimentalFeatureListResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
next_cursor
class-attribute
instance-attribute
¶
Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.
ExternalAgentConfigDetectParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
cwds
class-attribute
instance-attribute
¶
Zero or more working directories to include for repo-scoped detection.
include_home
class-attribute
instance-attribute
¶
If true, include detection under the user's home directory.
max_session_age_days
class-attribute
instance-attribute
¶
Maximum age in days for detected sessions. Missing values use the default limit.
max_sessions
class-attribute
instance-attribute
¶
Maximum number of sessions to detect. Missing values use the default limit.
migration_source
class-attribute
instance-attribute
¶
Optional migration-source selector. Missing or unrecognized values use the default source.
source
class-attribute
instance-attribute
¶
Deprecated field retained for compatibility. This field is ignored; use migrationSource to select the migration source.
ExternalAgentConfigImportParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
migration_source
class-attribute
instance-attribute
¶
Migration-source selector used to produce the migration items. Pass the same value to detection and import; missing or unrecognized values use the default source.
provider_id
class-attribute
instance-attribute
¶
Opaque provider identifier supplied by the caller for analytics attribution and import history display. This does not select the migration source.
source
class-attribute
instance-attribute
¶
Optional identifier for the product that initiated the import.
ExternalAgentConfigMigrationItem
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
cwd
class-attribute
instance-attribute
¶
Null or empty means home-scoped migration; non-empty means repo-scoped migration.
FeedbackUploadResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
prompt_hash
class-attribute
instance-attribute
¶
Whitespace-normalized SHA-256 of the session base instructions, matching the uploaded prompt_hash tag. Does not include later developer messages. Null when the reported rollout has no prompt metadata.
FileChangeOutputDeltaNotification
¶
Bases: CodexBaseModel
Deprecated legacy notification for apply_patch textual output.
The server no longer emits this notification.
Source code in src/codexed/models/v2_protocol.py
FileChangeRequestApprovalParams
¶
Bases: CodexBaseModel
Parameters for item/fileChange/requestApproval server request.
Source code in src/codexed/models/request_params.py
FileChangeRequestApprovalResponse
¶
Bases: CodexBaseModel
Response for item/fileChange/requestApproval server request.
Source code in src/codexed/models/responses.py
FsChangedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
FsChangedNotification
¶
Bases: CodexBaseModel
Filesystem watch notification emitted for fs/watch subscribers.
Source code in src/codexed/models/v2_protocol.py
changed_paths
instance-attribute
¶
changed_paths: list[AbsolutePathBuf]
File or directory paths associated with this event.
FsCopyParams
¶
Bases: CodexBaseModel
Copy a file or directory tree on the host filesystem.
Source code in src/codexed/models/v2_protocol.py
recursive
class-attribute
instance-attribute
¶
Required for directory copies; ignored for file copies.
FsCopyResponse
¶
Bases: CodexBaseModel
Successful response for fs/copy.
Source code in src/codexed/models/v2_protocol.py
FsCreateDirectoryParams
¶
Bases: CodexBaseModel
Create a directory on the host filesystem.
Source code in src/codexed/models/v2_protocol.py
recursive
class-attribute
instance-attribute
¶
Whether parent directories should also be created. Defaults to true.
FsCreateDirectoryResponse
¶
Bases: CodexBaseModel
Successful response for fs/createDirectory.
Source code in src/codexed/models/v2_protocol.py
FsGetMetadataParams
¶
Bases: CodexBaseModel
Request metadata for an absolute path.
Source code in src/codexed/models/v2_protocol.py
FsGetMetadataResponse
¶
Bases: CodexBaseModel
Metadata returned by fs/getMetadata.
Source code in src/codexed/models/v2_protocol.py
FsReadDirectoryEntry
¶
Bases: CodexBaseModel
A directory entry returned by fs/readDirectory.
Source code in src/codexed/models/v2_protocol.py
FsReadDirectoryParams
¶
Bases: CodexBaseModel
List direct child names for a directory.
Source code in src/codexed/models/v2_protocol.py
FsReadDirectoryResponse
¶
Bases: CodexBaseModel
Directory entries returned by fs/readDirectory.
Source code in src/codexed/models/v2_protocol.py
entries
instance-attribute
¶
entries: list[FsReadDirectoryEntry]
Direct child entries in the requested directory.
FsReadFileParams
¶
Bases: CodexBaseModel
Read a file from the host filesystem.
Source code in src/codexed/models/v2_protocol.py
FsReadFileResponse
¶
Bases: CodexBaseModel
Base64-encoded file contents returned by fs/readFile.
Source code in src/codexed/models/v2_protocol.py
FsRemoveParams
¶
Bases: CodexBaseModel
Remove a file or directory tree from the host filesystem.
Source code in src/codexed/models/v2_protocol.py
FsRemoveResponse
¶
Bases: CodexBaseModel
Successful response for fs/remove.
Source code in src/codexed/models/v2_protocol.py
FsUnwatchParams
¶
Bases: CodexBaseModel
Stop filesystem watch notifications for a prior fs/watch.
Source code in src/codexed/models/v2_protocol.py
FsUnwatchResponse
¶
Bases: CodexBaseModel
Successful response for fs/unwatch.
Source code in src/codexed/models/v2_protocol.py
FsWatchParams
¶
Bases: CodexBaseModel
Start filesystem watch notifications for an absolute path.
Source code in src/codexed/models/v2_protocol.py
watch_id
instance-attribute
¶
Connection-scoped watch identifier used for fs/unwatch and fs/changed.
FsWatchResponse
¶
Bases: CodexBaseModel
Successful response for fs/watch.
Source code in src/codexed/models/v2_protocol.py
FsWriteFileParams
¶
Bases: CodexBaseModel
Write a file on the host filesystem.
Source code in src/codexed/models/v2_protocol.py
FsWriteFileResponse
¶
Bases: CodexBaseModel
Successful response for fs/writeFile.
Source code in src/codexed/models/v2_protocol.py
FuzzyFileSearchResult
¶
Bases: CodexBaseModel
Superset of [codex_file_search::FileMatch].
Source code in src/codexed/models/v2_protocol.py
FuzzyFileSearchSessionCompletedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
FuzzyFileSearchSessionUpdatedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
GetAccountParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
refresh_token
class-attribute
instance-attribute
¶
When true, requests a proactive token refresh before returning.
In managed auth mode this triggers the normal refresh-token flow. In external auth mode this flag is ignored. Clients should refresh tokens themselves and call account/login/start with chatgptAuthTokens.
GetAccountRateLimitsResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
account_id
class-attribute
instance-attribute
¶
Account associated with this usage snapshot, when supplied by the backend.
ordinary_usage_allowed
class-attribute
instance-attribute
¶
Backend permission for ordinary included usage, validated against the active account. Null means unavailable; clients must not infer recovery from percentages or reset times.
rate_limit_upsell
class-attribute
instance-attribute
¶
Optional backend-owned banner from the same usage read. Its nested keys retain the backend's snake_case contract; an absent banner leaves the client's existing UI unchanged.
rate_limits
instance-attribute
¶
rate_limits: RateLimitSnapshot
Backward-compatible single-bucket view; mirrors the historical payload.
rate_limits_by_limit_id
class-attribute
instance-attribute
¶
Multi-bucket view keyed by metered limit_id (for example, codex).
GetAccountResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
user_id
class-attribute
instance-attribute
¶
ChatGPT user ID belonging to this account response, when available.
GrepFilesToolConfig
¶
HookCompletedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
HookStartedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
HttpMcpServer
¶
Bases: BaseModel
MCP server accessible via HTTP/SSE transport.
Source code in src/codexed/models/mcp_server.py
default_tools_approval_mode
class-attribute
instance-attribute
¶
default_tools_approval_mode: ToolApprovalMode | None = None
When Codex asks before calling this server's tools (Codex's default: auto).
ImageGenerationToolConfig
¶
InitializeCapabilities
¶
Bases: CodexBaseModel
Client-declared capabilities negotiated during initialize.
Source code in src/codexed/models/v2_protocol.py
experimental_api
class-attribute
instance-attribute
¶
Opt into receiving experimental API methods and fields.
explicit_gateway_oauth
class-attribute
instance-attribute
¶
Use explicit gateway OAuth login instead of automatic browser authorization. Applies to this app-server's gateway runtime; later connections cannot undo it.
extensions
class-attribute
instance-attribute
¶
MCP extension settings declared by the app-server client.
mcp_server_openai_form_elicitation
class-attribute
instance-attribute
¶
Legacy opt-in for the openai/form MCP extension.
New clients should declare openai/form in [Self::extensions].
opt_out_notification_methods
class-attribute
instance-attribute
¶
Exact notification method names that should be suppressed for this connection (for example thread/started).
request_attestation
class-attribute
instance-attribute
¶
Opt into attestation/generate requests for upstream x-oai-attestation.
required_human_approval
class-attribute
instance-attribute
¶
Present humanCommand approvals to a person and return only a one-time decision. Requires experimentalApi. Pending requests can be replayed to compatible clients.
ItemAgentMessageDeltaNotification
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ItemCommandExecutionOutputDeltaNotification
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ItemCommandExecutionTerminalInteractionNotification
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ItemCompletedData
¶
Bases: CodexBaseModel
Payload for item/completed notification (V2 protocol).
Source code in src/codexed/models/event_data.py
ItemCompletedEvent
¶
ItemFileChangeOutputDeltaNotification
¶
Bases: CodexBaseModel
Deprecated legacy apply_patch output stream notification.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ItemMcpToolCallProgressNotification
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ItemPlanDeltaNotification
¶
Bases: CodexBaseModel
EXPERIMENTAL - proposed plan streaming deltas for plan items.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ItemReasoningSummaryPartAddedNotification
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ItemReasoningSummaryTextDeltaNotification
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ItemReasoningTextDeltaNotification
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ItemStartedData
¶
Bases: CodexBaseModel
Payload for item/started notification (V2 protocol).
Source code in src/codexed/models/event_data.py
started_at_ms
instance-attribute
¶
Unix timestamp (in milliseconds) when this item lifecycle started.
ItemStartedEvent
¶
JsReplToolConfig
¶
JsonRpcError
¶
JsonRpcNotification
¶
Bases: CodexBaseModel
JSON-RPC 2.0 notification message (no id).
Source code in src/codexed/models/base.py
JsonRpcRequest
¶
JsonRpcResponse
¶
ListDirToolConfig
¶
ListMcpServerStatusParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
cursor
class-attribute
instance-attribute
¶
Opaque pagination cursor returned by a previous call.
detail
class-attribute
instance-attribute
¶
Controls how much MCP inventory data to fetch for each server. Defaults to Full when omitted.
environment_id
class-attribute
instance-attribute
¶
Select this environment's registration. Requires serverName and threadId. When omitted, a named request uses the same server as older clients.
limit
class-attribute
instance-attribute
¶
Optional page size; defaults to a server-defined value.
server_name
class-attribute
instance-attribute
¶
Limit discovery to one server. With a thread ID, reuse that thread's MCP connection.
ListMcpServerStatusResponse
¶
LocalShellCallResponseItem
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
McpElicitationFormParams
¶
Bases: _McpElicitationBase
Form-mode MCP elicitation request.
Source code in src/codexed/models/request_params.py
from_mcp
classmethod
¶
from_mcp(
params: ElicitRequestFormParams, thread_id: str, server_name: str, turn_id: str | None = None
) -> McpElicitationFormParams
Create from MCP ElicitRequestFormParams.
Source code in src/codexed/models/request_params.py
McpElicitationUrlParams
¶
Bases: _McpElicitationBase
URL-mode MCP elicitation request (browser-based auth).
Source code in src/codexed/models/request_params.py
from_mcp
classmethod
¶
from_mcp(
params: ElicitRequestURLParams, thread_id: str, server_name: str, turn_id: str | None = None
) -> McpElicitationUrlParams
Create from MCP ElicitRequestURLParams.
Raises:
| Type | Description |
|---|---|
ValueError
|
If the MCP request carries no elicitation ID, which the app-server protocol requires to correlate the response |
Source code in src/codexed/models/request_params.py
McpResourceReadParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
environment_id
class-attribute
instance-attribute
¶
Exact registration scope; omission preserves legacy name-only selection.
field_meta
class-attribute
instance-attribute
¶
Additional MCP request metadata. Account and turn routing keys are reserved.
origin_call_id
class-attribute
instance-attribute
¶
Originating MCP tool call used to select the resource's app.
target
class-attribute
instance-attribute
¶
target: McpResourceReadTarget | None = None
Explicit hosted app/account. Omit to retain legacy resource discovery.
McpResourceReadResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
origin_call_id
class-attribute
instance-attribute
¶
Originating call when the server applied app-specific resource scoping.
McpResourceToolsConfig
¶
Bases: _ToolConfigBase
Configuration for MCP resource browsing tools.
Controls list_mcp_resources, list_mcp_resource_templates,
and read_mcp_resource.
Source code in src/codexed/models/tool_config.py
McpServerElicitationResponse
¶
Bases: CodexBaseModel
Response for mcpServer/elicitation/request server request.
Source code in src/codexed/models/responses.py
meta
class-attribute
instance-attribute
¶
Optional metadata to include in the response.
For MCP tool approval responses, this can contain:
persist(str):"session"to remember the approval for the current session, or"always"to remember permanently. Must be one of the options listed in the request'smeta.persist.
from_mcp
classmethod
¶
from_mcp(result: ElicitResult) -> McpServerElicitationResponse
McpServerOauthLoginCompletedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
McpServerOauthLoginCompletedNotification
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
login_id
class-attribute
instance-attribute
¶
Identifies the explicit login attempt. Older servers omit this field.
McpServerOauthLoginParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
McpServerOauthLoginResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
login_id
class-attribute
instance-attribute
¶
Identifies this login attempt across the response and completion notification. Older servers omit this field; current servers always return it.
McpServerStartupStatusUpdatedNotification
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
McpServerStatusEntry
¶
Bases: CodexBaseModel
Status of a single MCP server.
Source code in src/codexed/models/misc.py
McpServerStatusUpdatedNotification
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
environment_id
class-attribute
instance-attribute
¶
Registration scope, not necessarily the server's execution environment.
McpServerToolCallParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
environment_id
class-attribute
instance-attribute
¶
Exact registration scope; omission preserves legacy name-only selection.
McpToolCallResult
¶
Bases: CodexBaseModel
MCP tool call result.
Source code in src/codexed/models/thread_item.py
meta
class-attribute
instance-attribute
¶
MCP _meta field of the tool result.
Model
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
additional_speed_tiers
class-attribute
instance-attribute
¶
Deprecated: use serviceTiers instead.
available_access_programs
class-attribute
instance-attribute
¶
available_access_programs: ModelAccessPrograms | None = None
Null when the catalog does not provide access-program metadata.
default_service_tier
class-attribute
instance-attribute
¶
Catalog default service tier id for this model, when one is configured.
multi_agent_version
class-attribute
instance-attribute
¶
multi_agent_version: MultiAgentVersion | None = None
Multi-agent runtime declared by this model, when available.
supports_personality
class-attribute
instance-attribute
¶
@deprecated Always false; models no longer support personality selection.
ModelListParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
cursor
class-attribute
instance-attribute
¶
Opaque pagination cursor returned by a previous call.
include_hidden
class-attribute
instance-attribute
¶
When true, include models that are hidden from the default picker list.
limit
class-attribute
instance-attribute
¶
Optional page size; defaults to a reasonable server-side value.
model_provider
class-attribute
instance-attribute
¶
List models for this configured provider instead of the app-server default.
ModelListResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
next_cursor
class-attribute
instance-attribute
¶
Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.
ModelReroutedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ModelUpgradeInfo
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
retirement_at
class-attribute
instance-attribute
¶
Informational Unix timestamp for this upgrade's scheduled retirement, if known.
NetworkApprovalContext
¶
NetworkPolicyAmendment
¶
NetworkRequirements
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
allow_unix_sockets
class-attribute
instance-attribute
¶
Legacy compatibility view derived from unix_sockets.
allowed_domains
class-attribute
instance-attribute
¶
Legacy compatibility view derived from domains.
denied_domains
class-attribute
instance-attribute
¶
Legacy compatibility view derived from domains.
domains
class-attribute
instance-attribute
¶
Canonical managed network permission map.
managed_allowed_domains_only
class-attribute
instance-attribute
¶
When true, only managed allowlist entries are respected while managed network enforcement is active.
review_domains
class-attribute
instance-attribute
¶
Host patterns routed to network approval before ordinary allow rules.
unix_sockets
class-attribute
instance-attribute
¶
Canonical managed unix socket permission map.
PlanDeltaNotification
¶
Bases: CodexBaseModel
EXPERIMENTAL - proposed plan streaming deltas for plan items. Clients should not assume concatenated deltas match the completed plan item content.
Source code in src/codexed/models/v2_protocol.py
PlanToolConfig
¶
PluginInstallParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
install_attempt_id
class-attribute
instance-attribute
¶
Client-generated identifier used to correlate one installation attempt.
PluginListParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
cwds
class-attribute
instance-attribute
¶
cwds: list[AbsolutePathBuf] | None = None
Optional working directories used to discover repo marketplaces. When omitted, only home-scoped marketplaces and the official curated marketplace are considered.
force_refetch
class-attribute
instance-attribute
¶
Whether the client requests a fresh remote plugin catalog fetch.
marketplace_kinds
class-attribute
instance-attribute
¶
Optional marketplace kind filter. When omitted, only local marketplaces are queried, plus the default remote catalog when enabled by feature flag.
RateLimitSnapshot
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
ReadFileToolConfig
¶
RemoteSkillSummary
¶
RequestPermissionsToolConfig
¶
Bases: _ToolConfigBase
Configuration for the request_permissions tool.
Source code in src/codexed/models/tool_config.py
RequestUserInputToolConfig
¶
ReviewStartParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
delivery
class-attribute
instance-attribute
¶
Reviews run inline on the supplied thread. Omit this field or pass inline. To review on a separate thread, start a thread first and use its id.
ReviewStartResponse
¶
ServerRequestResolvedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
Settings
¶
Bases: CodexBaseModel
Settings for a collaboration mode.
Source code in src/codexed/models/v2_protocol.py
ShellToolConfig
¶
Bases: _ToolConfigBase
Configuration for the shell / exec tool.
Source code in src/codexed/models/tool_config.py
allow_login_shell
class-attribute
instance-attribute
¶
Whether the model may request a login shell.
SkillInterface
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
SkillMetadata
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
SkillRequestApprovalParams
¶
SkillRequestApprovalResponse
¶
Bases: CodexBaseModel
Response for skill/requestApproval server request.
Source code in src/codexed/models/misc.py
SkillsConfigWriteParams
¶
SkillsListParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
SkillsRemoteExportParams
¶
Bases: CodexBaseModel
Parameters for skills/remote/export request.
Source code in src/codexed/models/request_params.py
SkillsRemoteExportResponse
¶
SkillsRemoteListParams
¶
Bases: CodexBaseModel
Parameters for skills/remote/list request.
Source code in src/codexed/models/request_params.py
SkillsRemoteListResponse
¶
Bases: CodexBaseModel
Response for skills/remote/list request.
Source code in src/codexed/models/responses.py
StdioMcpServer
¶
Bases: BaseModel
MCP server running as a subprocess via stdio transport.
Source code in src/codexed/models/mcp_server.py
default_tools_approval_mode
class-attribute
instance-attribute
¶
default_tools_approval_mode: ToolApprovalMode | None = None
When Codex asks before calling this server's tools (Codex's default: auto).
TextElement
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
TextUserInput
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
text_elements
class-attribute
instance-attribute
¶
text_elements: list[TextElement] | None = Field([], validate_default=True)
UI-defined spans within text used to render or persist special elements.
Thread
¶
Bases: CodexBaseModel
Source code in src/codexed/models/misc.py
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | |
agent_nickname
class-attribute
instance-attribute
¶
Optional random unique nickname assigned to an AgentControl-spawned sub-agent.
agent_role
class-attribute
instance-attribute
¶
Optional role (agent_role) assigned to an AgentControl-spawned sub-agent.
created_at
instance-attribute
¶
Unix timestamp (in seconds) when the thread was created.
ephemeral
instance-attribute
¶
Whether the thread is ephemeral and should not be materialized on disk.
forked_from_id
class-attribute
instance-attribute
¶
Source thread id when this thread was created by forking another thread.
git_info
class-attribute
instance-attribute
¶
Optional Git metadata captured when the thread was created.
model_provider
instance-attribute
¶
Model provider used for this thread (for example, 'openai').
name
class-attribute
instance-attribute
¶
Optional user-facing thread title.
path
class-attribute
instance-attribute
¶
[UNSTABLE] Path to the thread on disk.
preview
instance-attribute
¶
Usually the first user message in the thread, if available.
recency_at
class-attribute
instance-attribute
¶
Unix timestamp (in seconds) used to order threads by recency.
source
instance-attribute
¶
Origin of the thread (CLI, VSCode, codex exec, codex app-server, etc.).
turns
instance-attribute
¶
turns: list[Turn]
Only populated on thread/resume, thread/fork, and thread/read
(when includeTurns is true) responses.
For all other responses and notifications returning a Thread,
the turns field will be an empty list.
updated_at
instance-attribute
¶
Unix timestamp (in seconds) when the thread was last updated.
ThreadArchivedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadCompactedMessage
¶
Bases: CodexBaseModel
Deprecated: Use ContextCompaction item type instead.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadForkParams
¶
Bases: CodexBaseModel
There are two ways to fork a thread: 1. By thread_id: load the thread from disk by thread_id and fork it into a new thread. 2. By path: load the thread from disk by path and fork it into a new thread.
If using a non-empty path, the thread_id param will be ignored. Empty string path values are treated as absent.
Prefer using thread_id whenever possible.
Source code in src/codexed/models/v2_protocol.py
9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 | |
approvals_reviewer
class-attribute
instance-attribute
¶
approvals_reviewer: ApprovalsReviewer | None = None
Override where approval requests are routed for review on this thread and subsequent turns.
attach_to_source
class-attribute
instance-attribute
¶
Persist the fork as an attached thread of its resolved source, hidden from ordinary lists. The source cannot be deleted while attached threads exist. Requires a paginated source and local storage; incompatible with ephemeral and deferGoalContinuation. Omitted or false creates an ordinary fork.
before_turn_id
class-attribute
instance-attribute
¶
Optional turn id to fork before, excluding that turn and all later turns. Cannot be combined with last_turn_id.
defer_goal_continuation
class-attribute
instance-attribute
¶
When true, carry the source thread's current goal into the fork without starting its initial automatic continuation. The next explicit turn owns the goal lifecycle, and normal automatic continuation resumes after it.
exclude_turns
class-attribute
instance-attribute
¶
When true, return only thread metadata and live fork state without populating thread.turns. This is useful when the client plans to call thread/turns/list immediately after forking. Full-history hydration is deprecated for paginated threads; use this with thread/turns/list and thread/items/list instead.
experimental_disable_prediction_mcp
class-attribute
instance-attribute
¶
Disable MCP servers in prediction mode when the inherited window uses incremental tools on Responses Lite. Requires experimentalPredictionMode: true.
experimental_prediction_mode
class-attribute
instance-attribute
¶
Start from the loaded parent's effective config, tools, environments, and persisted history to maximize prompt-cache reuse. Requires a loaded, persisted parent and ephemeral: true. Enables features.reasoning_effort_override on the fork. Only config.thread_unload_delay_secs may override the inherited config. Cannot be combined with path, lastTurnId, or beforeTurnId.
last_turn_id
class-attribute
instance-attribute
¶
Optional last turn id to fork through, inclusive.
When specified, turns after last_turn_id are omitted from the fork. The referenced turn cannot be in progress.
model
class-attribute
instance-attribute
¶
Configuration overrides for the forked thread, if any.
path
class-attribute
instance-attribute
¶
[UNSTABLE] Specify the rollout path to fork from. If specified, the thread_id param will be ignored.
permissions
class-attribute
instance-attribute
¶
Named profile id for the forked thread. Cannot be combined with sandbox.
runtime_workspace_roots
class-attribute
instance-attribute
¶
runtime_workspace_roots: list[AbsolutePathBuf] | None = None
Replace the thread's runtime workspace roots. Paths must be absolute.
thread_source
class-attribute
instance-attribute
¶
Optional client-supplied analytics source classification for this forked thread.
ThreadInjectItemsParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
items
instance-attribute
¶
Raw Responses API items to append to the thread's model-visible history.
ThreadItemAgentMessage
¶
Bases: BaseThreadItem
Agent message item.
Source code in src/codexed/models/thread_item.py
ThreadItemCollabAgentToolCall
¶
Bases: BaseThreadItem
Collab agent tool call item.
Source code in src/codexed/models/thread_item.py
ThreadItemCommandExecution
¶
Bases: BaseThreadItem
Command execution item.
Source code in src/codexed/models/thread_item.py
ThreadItemContextCompaction
¶
ThreadItemDynamicToolCall
¶
Bases: BaseThreadItem
Dynamic tool call item.
Source code in src/codexed/models/thread_item.py
ThreadItemEnteredReviewMode
¶
ThreadItemExitedReviewMode
¶
ThreadItemFileChange
¶
Bases: BaseThreadItem
File change item.
Source code in src/codexed/models/thread_item.py
ThreadItemFunctionCallOutput
¶
ThreadItemHookPrompt
¶
ThreadItemImageGeneration
¶
Bases: BaseThreadItem
Image generation item.
Source code in src/codexed/models/thread_item.py
ThreadItemImageView
¶
Bases: BaseThreadItem
Image view item.
Source code in src/codexed/models/thread_item.py
ThreadItemMcpToolCall
¶
Bases: BaseThreadItem
MCP tool call item.
Source code in src/codexed/models/thread_item.py
ThreadItemPlan
¶
ThreadItemReasoning
¶
ThreadItemSleep
¶
ThreadItemSubAgentActivity
¶
ThreadItemUserMessage
¶
ThreadItemWebSearch
¶
Bases: BaseThreadItem
Web search item.
Source code in src/codexed/models/thread_item.py
ThreadListParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 | |
ancestor_thread_id
class-attribute
instance-attribute
¶
Optional ancestor thread filter. Returns spawned descendants at any depth, excluding the ancestor itself. Mutually exclusive with parentThreadId.
archived
class-attribute
instance-attribute
¶
Optional archived filter; when set to true, only archived threads are returned. If false or null, only non-archived threads are returned.
attached_to_thread_id
class-attribute
instance-attribute
¶
Return only persistent threads attached to this thread, including empty threads. Mutually exclusive with parentThreadId and ancestorThreadId. Omitting this filter keeps attached threads hidden from ordinary listings.
current_account_only
class-attribute
instance-attribute
¶
Show local history visible to the current ChatGPT account. Defaults to false.
cursor
class-attribute
instance-attribute
¶
Opaque pagination cursor returned by a previous call.
cwd
class-attribute
instance-attribute
¶
Optional cwd filter or filters; when set, only threads whose session cwd exactly matches one of these paths are returned.
excluded_thread_ids
class-attribute
instance-attribute
¶
Thread IDs to exclude before applying the result limit. Up to 100 entries; invalid IDs or a larger list are rejected, never truncated. Send the same exclusions on each page. Omitted, null, or empty means no exclusions.
include_attached_threads
class-attribute
instance-attribute
¶
Include persistent threads attached to a parent when searching by title.
included_thread_ids
class-attribute
instance-attribute
¶
Restrict results to up to 100 thread IDs before pagination. Omit or send null for unrestricted results. An empty list matches nothing. Exclusions still apply. Repeat the same IDs on each page. The local store uses indexed metadata for this filter.
limit
class-attribute
instance-attribute
¶
Optional page size; defaults to a reasonable server-side value.
model_providers
class-attribute
instance-attribute
¶
Optional provider filter; when set, only sessions recorded under these providers are returned. When present but empty, includes all providers.
originators
class-attribute
instance-attribute
¶
Optional originator allowlist, matching any supplied value exactly. Supported by hosted backends only; the local app-server rejects a nonempty list. Omitted or empty lists leave originators unrestricted.
parent_thread_id
class-attribute
instance-attribute
¶
Optional direct parent thread filter. Mutually exclusive with ancestorThreadId.
project_id
class-attribute
instance-attribute
¶
Omit to include every project, set to null for unassigned threads, or provide a project ID to return only threads in that project.
search_term
class-attribute
instance-attribute
¶
Optional substring filter for the extracted thread title.
section_id
class-attribute
instance-attribute
¶
Omit to include every section, set to null for unsectioned threads, or provide a section ID to return only threads in that section.
sort_direction
class-attribute
instance-attribute
¶
Optional sort direction; defaults to descending (newest first).
sort_key
class-attribute
instance-attribute
¶
Optional sort key; defaults to created_at.
source_kinds
class-attribute
instance-attribute
¶
Optional source filter; when set, only sessions from these source kinds are returned. When omitted or empty, defaults to interactive sources.
use_state_db_only
class-attribute
instance-attribute
¶
If true, the local store returns indexed metadata without scanning JSONL rollouts for repairs. Requests with includedThreadIds always use indexed metadata.
ThreadListResponse
¶
Bases: CodexBaseModel
Response for thread/list request.
Source code in src/codexed/models/responses.py
read_states
class-attribute
instance-attribute
¶
read_states: dict[str, ThreadReadState] | None = None
Read state per thread ID.
ThreadLoadedListParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
ThreadLoadedListResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
ThreadNameUpdatedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadReadParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
include_turns
class-attribute
instance-attribute
¶
When true, include turns and their items from rollout history. Full-history hydration is deprecated for paginated threads; prefer a metadata-only read and page with thread/turns/list and thread/items/list.
ThreadReadResponse
¶
ThreadRealtimeAppendAudioParams
¶
Bases: CodexBaseModel
EXPERIMENTAL - append audio input to thread realtime.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeAppendAudioResponse
¶
Bases: CodexBaseModel
EXPERIMENTAL - response for appending realtime audio input.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeAppendTextParams
¶
Bases: CodexBaseModel
EXPERIMENTAL - append text input to thread realtime.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeAppendTextResponse
¶
Bases: CodexBaseModel
EXPERIMENTAL - response for appending realtime text input.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeAudioChunk
¶
Bases: CodexBaseModel
EXPERIMENTAL - thread realtime audio chunk.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeClosedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadRealtimeClosedNotification
¶
Bases: CodexBaseModel
EXPERIMENTAL - emitted when thread realtime transport closes.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeErrorMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadRealtimeErrorNotification
¶
Bases: CodexBaseModel
EXPERIMENTAL - emitted when thread realtime encounters an error.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeItemAddedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadRealtimeItemAddedNotification
¶
Bases: CodexBaseModel
EXPERIMENTAL - raw non-audio thread realtime item emitted by the backend.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeListVoicesParams
¶
Bases: CodexBaseModel
EXPERIMENTAL - list voices supported by thread realtime.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeListVoicesResponse
¶
Bases: CodexBaseModel
EXPERIMENTAL - response for listing supported realtime voices.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeOutputAudioDeltaMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadRealtimeOutputAudioDeltaNotification
¶
Bases: CodexBaseModel
EXPERIMENTAL - streamed output audio emitted by thread realtime.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeStartParams
¶
Bases: CodexBaseModel
EXPERIMENTAL - start a thread-scoped realtime session.
Source code in src/codexed/models/v2_protocol.py
10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 | |
backend_reasoning_status
class-attribute
instance-attribute
¶
Relays public reasoning summaries as quiet context for realtime V3 delegations. Defaults to false.
client_managed_handoffs
class-attribute
instance-attribute
¶
Leaves Codex response handoffs to the client's explicit append calls instead of forwarding them automatically. Defaults to false.
codex_response_handoff_channel_prefixes
class-attribute
instance-attribute
¶
Overrides BEM channel prefixes by analysis, commentary, or final. Omitted channels retain their default uppercase bracketed prefixes.
codex_response_handoff_mode
class-attribute
instance-attribute
¶
Selects how automatic Codex responses are routed in Frameless Bidi sessions. Omitted values default to thinking. Realtime V1 and V2 ignore this setting.
codex_response_item_prefix
class-attribute
instance-attribute
¶
Optional prefix added to automatic Codex response items when codexResponsesAsItems is true.
codex_responses_as_items
class-attribute
instance-attribute
¶
Sends automatic Codex responses as realtime conversation items instead of handoff appends.
delegation_ack_filler
class-attribute
instance-attribute
¶
Controls whether a realtime V3 delegation produces an acknowledgement filler. Omitted values preserve the Realtime API's default behavior.
flush_transcript_tail_on_session_end
class-attribute
instance-attribute
¶
Routes any transcript tail remaining at session end through Codex. Defaults to false. TODO: Remove this rollout knob once transcript-tail flushing is always enabled.
include_startup_context
class-attribute
instance-attribute
¶
Set to false to start without Codex's startup context. Omitted or null includes it.
initial_items
class-attribute
instance-attribute
¶
initial_items: list[ThreadRealtimeInitialItem] | None = None
Adds complete role-bearing text items to the initial Frameless Bidi session history. This is only supported by realtime V3 and is sent during session startup. Requests are limited to 128 items and 8,192 estimated text tokens in total.
model
class-attribute
instance-attribute
¶
Overrides the configured realtime model for this session only.
output_modality
instance-attribute
¶
Selects text or audio output for the realtime session. Transport and voice stay independent so clients can choose how they connect separately from what the model emits.
realtime_end_instructions
class-attribute
instance-attribute
¶
Developer instructions given to the backing Codex model when this realtime session ends.
realtime_start_instructions
class-attribute
instance-attribute
¶
Developer instructions given to the backing Codex model when this realtime session starts.
version
class-attribute
instance-attribute
¶
Overrides the configured realtime protocol version for this session only.
voice_session_id
class-attribute
instance-attribute
¶
Client-generated identifier for the product voice session. This is distinct from realtimeSessionId.
ThreadRealtimeStartResponse
¶
Bases: CodexBaseModel
EXPERIMENTAL - response for starting thread realtime.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeStartedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadRealtimeStartedNotification
¶
Bases: CodexBaseModel
EXPERIMENTAL - emitted when thread realtime startup is accepted.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeStopParams
¶
Bases: CodexBaseModel
EXPERIMENTAL - stop thread realtime.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeStopResponse
¶
Bases: CodexBaseModel
EXPERIMENTAL - response for stopping thread realtime.
Source code in src/codexed/models/v2_protocol.py
ThreadRealtimeTranscriptDeltaMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadRealtimeTranscriptDoneMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadResponse
¶
Bases: CodexBaseModel
Response for thread/start, thread/resume, and thread/fork.
Source code in src/codexed/models/responses.py
collaboration_mode
class-attribute
instance-attribute
¶
collaboration_mode: CollaborationMode | None = None
Only returned by thread/resume.
initial_turns_page
class-attribute
instance-attribute
¶
initial_turns_page: TurnsPage | None = None
Only returned by thread/resume.
items_backwards_cursor
class-attribute
instance-attribute
¶
Only returned by thread/resume.
turns_backwards_cursor
class-attribute
instance-attribute
¶
Only returned by thread/resume.
ThreadResumeParams
¶
Bases: CodexBaseModel
There are three ways to resume a thread: 1. By thread_id: load the thread from disk by thread_id and resume it. 2. By history: instantiate the thread from memory and resume it. 3. By path: load the thread from disk by path and resume it.
For non-running threads, the precedence is: history > non-empty path > thread_id. If using history or a non-empty path for a non-running thread, the thread_id param will be ignored.
If thread_id identifies a running thread, app-server rejoins that thread and treats a non-empty path as a consistency check against the active rollout path. Empty string path values are treated as absent.
Prefer using thread_id whenever possible.
Source code in src/codexed/models/v2_protocol.py
10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 | |
approvals_reviewer
class-attribute
instance-attribute
¶
approvals_reviewer: ApprovalsReviewer | None = None
Override where approval requests are routed for review on this thread and subsequent turns.
exclude_turns
class-attribute
instance-attribute
¶
When true, return only thread metadata and live-resume state without populating thread.turns. This is useful when the client plans to call thread/turns/list immediately after resuming. Full-history hydration is deprecated for paginated threads; use this with thread/turns/list and thread/items/list instead.
history
class-attribute
instance-attribute
¶
[UNSTABLE] FOR CODEX CLOUD - DO NOT USE. If specified, the thread will be resumed with the provided history instead of loaded from disk.
initial_turns_page
class-attribute
instance-attribute
¶
initial_turns_page: ThreadResumeInitialTurnsPageParams | None = None
When present, include a thread/turns/list page in the resume response so clients can bootstrap recent turns without a second request.
model
class-attribute
instance-attribute
¶
Configuration overrides for the resumed thread, if any.
path
class-attribute
instance-attribute
¶
[UNSTABLE] Specify the rollout path to resume from. If specified for a non-running thread, the thread_id param will be ignored. If thread_id identifies a running thread, the path must match the active rollout path.
permissions
class-attribute
instance-attribute
¶
Named profile id for the resumed thread. Cannot be combined with sandbox.
personality
class-attribute
instance-attribute
¶
personality: Personality | None = None
@deprecated friendly and pragmatic no longer select a style. Changing this does not rewrite the thread's existing instructions.
runtime_workspace_roots
class-attribute
instance-attribute
¶
runtime_workspace_roots: list[AbsolutePathBuf] | None = None
Replace the thread's runtime workspace roots. Paths must be absolute.
ThreadRevertParams
¶
Bases: CodexBaseModel
Replace a paginated thread's durable history with the prefix before one turn.
This only changes persisted conversation history. It does not revert local file changes.
Source code in src/codexed/models/v2_protocol.py
before_turn_id
instance-attribute
¶
Turn excluded from the replacement history, together with every later turn.
ThreadRevertResponse
¶
Bases: CodexBaseModel
Response for thread/revert request.
Source code in src/codexed/models/responses.py
items_backwards_cursor
class-attribute
instance-attribute
¶
Cursor for hydrating paginated items backwards via thread/items/list.
thread
instance-attribute
¶
thread: Thread
Updated thread metadata. turns is always empty; use thread/turns/list.
turns_backwards_cursor
class-attribute
instance-attribute
¶
Cursor for hydrating paginated turns backwards via thread/turns/list.
ThreadShellCommandParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
command
instance-attribute
¶
Shell command string evaluated by the thread's configured shell. Unlike command/exec, this intentionally preserves shell syntax such as pipes, redirects, and quoting. This runs unsandboxed with full access rather than inheriting the thread sandbox policy.
timeout_ms
class-attribute
instance-attribute
¶
Maximum execution time in milliseconds. Defaults to one hour when omitted or null. Must be non-negative; zero requests an immediate timeout, not unlimited execution. Does not affect the immediate RPC acknowledgement.
ThreadStartParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 | |
allow_provider_model_fallback
class-attribute
instance-attribute
¶
Allow a provider with an authoritative static model catalog to replace an unavailable requested model with its default.
approvals_reviewer
class-attribute
instance-attribute
¶
approvals_reviewer: ApprovalsReviewer | None = None
Override where approval requests are routed for review on this thread and subsequent turns.
daybreak_enabled
class-attribute
instance-attribute
¶
Initial Daybreak choice for this persistent thread. Omitted or null leaves it unset. This does not select a turn's cyberAccessProgram or grant access. Not supported for ephemeral threads.
environments
class-attribute
instance-attribute
¶
environments: list[TurnEnvironmentParams] | None = None
Optional sticky environments for this thread.
Omitted selects the default environment when environment access is enabled. Empty disables environment access for turns that do not provide a turn override. Non-empty selects the first environment as the current turn environment.
experimental_raw_events
class-attribute
instance-attribute
¶
If true, opt into emitting raw Responses API items on the event stream. This is for internal use only (e.g. Codex Cloud).
history_mode
class-attribute
instance-attribute
¶
Persisted thread history contract to use for this new thread.
mock_experimental_field
class-attribute
instance-attribute
¶
Test-only experimental field used to validate experimental gating and schema filtering behavior in a stable way.
multi_agent_mode
class-attribute
instance-attribute
¶
multi_agent_mode: MultiAgentMode | None = None
@deprecated Ignored. Use Ultra reasoning effort for proactive multi-agent behavior.
permissions
class-attribute
instance-attribute
¶
Named profile id for this thread. Cannot be combined with sandbox.
personality
class-attribute
instance-attribute
¶
personality: Personality | None = None
@deprecated friendly and pragmatic no longer select a style.
project_id
class-attribute
instance-attribute
¶
Optional project identity for this new thread. Durable threads persist the assignment; ephemeral threads expose it only in live responses.
runtime_workspace_roots
class-attribute
instance-attribute
¶
runtime_workspace_roots: list[AbsolutePathBuf] | None = None
Replace the thread's runtime workspace roots. Paths must be absolute.
selected_capability_roots
class-attribute
instance-attribute
¶
selected_capability_roots: list[SelectedCapabilityRoot] | None = None
Capability roots selected for this thread by the hosting platform.
thread_source
class-attribute
instance-attribute
¶
Optional client-supplied analytics source classification for this thread.
ThreadStartedData
¶
Bases: CodexBaseModel
Payload for thread/started notification (V2 protocol).
Source code in src/codexed/models/event_data.py
ThreadStartedEvent
¶
ThreadStatusChangedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ThreadTokenUsageUpdatedEvent
¶
Bases: CodexBaseModel
Thread token usage updated event.
Source code in src/codexed/models/events.py
ThreadTurnsListParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
cursor
class-attribute
instance-attribute
¶
Opaque cursor to pass to the next call to continue after the last turn.
items_view
class-attribute
instance-attribute
¶
How much item detail to include for each returned turn; defaults to summary.
limit
class-attribute
instance-attribute
¶
Optional turn page size.
sort_direction
class-attribute
instance-attribute
¶
Optional turn pagination direction; defaults to descending.
ThreadTurnsListResponse
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
backwards_cursor
class-attribute
instance-attribute
¶
Opaque cursor to pass as cursor when reversing sortDirection. This is only populated when the page contains at least one turn. Use it with the opposite sortDirection to include the anchor turn again and catch updates to that turn.
next_cursor
class-attribute
instance-attribute
¶
Opaque cursor to pass to the next call to continue after the last turn. if None, there are no more turns to return.
ThreadUnarchiveResponse
¶
Bases: CodexBaseModel
Response for thread/unarchive request.
Source code in src/codexed/models/responses.py
ThreadUnarchivedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
ToolRequestUserInputAnswer
¶
Bases: CodexBaseModel
A user's answer to a request_user_input question.
Source code in src/codexed/models/misc.py
ToolRequestUserInputOption
¶
ToolRequestUserInputParams
¶
Bases: CodexBaseModel
Parameters for item/tool/requestUserInput server request.
Source code in src/codexed/models/request_params.py
ToolRequestUserInputQuestion
¶
Bases: CodexBaseModel
A question in a tool request for user input.
Source code in src/codexed/models/misc.py
to_schema_property
¶
Convert a Codex user input question to a JSON Schema property.
Maps question options to enum values, and handles secret/free-text questions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
question
|
Codex question with optional options list |
required |
Returns:
| Type | Description |
|---|---|
dict[str, Any]
|
JSON Schema property definition |
Source code in src/codexed/models/misc.py
ToolRequestUserInputResponse
¶
Bases: CodexBaseModel
Response for item/tool/requestUserInput server request.
Source code in src/codexed/models/responses.py
ToolSearchToolConfig
¶
ToolSuggestToolConfig
¶
Bases: _ToolConfigBase
Configuration for the tool_suggest tool (requires discoverable tools).
Source code in src/codexed/models/tool_config.py
Turn
¶
Bases: CodexBaseModel
Turn data structure.
Source code in src/codexed/models/misc.py
completed_at
class-attribute
instance-attribute
¶
Unix timestamp (in seconds) when the turn completed.
duration_ms
class-attribute
instance-attribute
¶
Duration between turn start and completion in milliseconds, if known.
error
class-attribute
instance-attribute
¶
error: TurnError | None = None
Only populated when the Turn's status is failed.
final_response
property
¶
Extract the final assistant response text from this turn.
Looks for the last ThreadItemAgentMessage with phase="final_answer".
Falls back to the last agent message with no phase (for models that don't
emit phase metadata). Returns None if the turn has no agent messages.
For structured output turns, this returns the raw JSON string.
items
instance-attribute
¶
Only populated on a thread/resume or thread/fork response.
For all other responses and notifications returning a Turn, the items field will be an empty list.
items_view
class-attribute
instance-attribute
¶
How completely the turn's items are included in this payload.
started_at
class-attribute
instance-attribute
¶
Unix timestamp (in seconds) when the turn started.
TurnCompletedData
¶
TurnCompletedEvent
¶
TurnData
¶
Bases: CodexBaseModel
Turn data in responses.
Source code in src/codexed/models/misc.py
items_view
class-attribute
instance-attribute
¶
How completely the turn's items are included in this payload.
TurnDiffUpdatedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
TurnDiffUpdatedNotification
¶
Bases: CodexBaseModel
Notification that the turn-level unified diff has changed. Contains the latest aggregated diff across all file changes in the turn.
Source code in src/codexed/models/v2_protocol.py
TurnEnvironmentParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
runtime_workspace_roots
class-attribute
instance-attribute
¶
Environment-native runtime workspace roots. Omitted defaults to cwd.
TurnError
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
misalignment
class-attribute
instance-attribute
¶
misalignment: MisalignmentErrorDetails | None = None
Optional public explanation and continuation instruction for a misalignment block.
TurnPlanUpdatedMessage
¶
Bases: CodexBaseModel
Notification sent from the server to the client.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
TurnStartParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 | |
additional_context
class-attribute
instance-attribute
¶
Optional client-provided context fragments keyed by an opaque source identifier.
approval_policy
class-attribute
instance-attribute
¶
Override the approval policy for this turn and subsequent turns.
approvals_reviewer
class-attribute
instance-attribute
¶
approvals_reviewer: ApprovalsReviewer | None = None
Override where approval requests are routed for review on this turn and subsequent turns.
collaboration_mode
class-attribute
instance-attribute
¶
collaboration_mode: CollaborationMode | None = None
EXPERIMENTAL - Set a pre-set collaboration mode. Takes precedence over model, reasoning_effort, and developer instructions if set.
For collaboration_mode.settings.developer_instructions, null means "use the built-in instructions for the selected mode".
cwd
class-attribute
instance-attribute
¶
Override the working directory for this turn and subsequent turns.
cyber_access_program
class-attribute
instance-attribute
¶
cyber_access_program: CyberAccessProgram | None = None
EXPERIMENTAL - Request an authorized cyber program for this turn. Omission preserves automatic behavior. This does not grant access.
disabled_plugin_ids
class-attribute
instance-attribute
¶
Replace this thread's disabled plugin IDs. Omitted/null preserves the list; [] clears it.
effort
class-attribute
instance-attribute
¶
effort: ReasoningEffort | None = None
Override the reasoning effort for this turn and subsequent turns.
environments
class-attribute
instance-attribute
¶
environments: list[TurnEnvironmentParams] | None = None
Optional environments for this turn and subsequent turns.
Omitted uses the thread sticky environments. Empty disables environment access for this turn. Non-empty selects the first environment as the current turn environment for this turn.
model
class-attribute
instance-attribute
¶
Override the model for this turn and subsequent turns.
multi_agent_mode
class-attribute
instance-attribute
¶
multi_agent_mode: MultiAgentMode | None = None
@deprecated Ignored. Use effort: "ultra" for proactive multi-agent behavior.
output_schema
class-attribute
instance-attribute
¶
Optional JSON Schema used to constrain the final assistant message for this turn.
parent_turn_id
class-attribute
instance-attribute
¶
ID of the turn that caused this new turn to start.
Set this when starting work on behalf of another turn, such as delegated work in a different thread. Leave unset for work started directly by the user. Ignored when this request adds input to an active turn.
permissions
class-attribute
instance-attribute
¶
Select a named permissions profile id for this turn and subsequent turns. Cannot be combined with sandboxPolicy.
personality
class-attribute
instance-attribute
¶
personality: Personality | None = None
@deprecated friendly and pragmatic no longer select a style. Changing this does not rewrite the thread's existing instructions.
responsesapi_client_metadata
class-attribute
instance-attribute
¶
Optional metadata to enrich Codex's ResponsesAPI turn metadata. Replaces unprotected client-provided entries when supplied; an empty map clears them.
Entries are flattened into the JSON string sent as client_metadata["x-codex-turn-metadata"] on ResponsesAPI HTTP and websocket requests.
They are not sent as top-level ResponsesAPI client_metadata keys, and reserved keys such as session_id, thread_id, turn_id, and window_id cannot be overridden.
responsesapi_client_metadata_patch
class-attribute
instance-attribute
¶
Merge entries into the ResponsesAPI turn metadata without removing existing entries. Applied after responsesapiClientMetadata if both are provided; reserved keys remain protected.
root_turn_id
class-attribute
instance-attribute
¶
ID of the first turn in the chain of work that led to this new turn.
When setting parentTurnId, set this to the parent turn's rootTurnId when known. This keeps descendant work attributed to the original turn. If omitted, the new turn becomes its own root. Ignored when this request adds input to an active turn.
runtime_workspace_roots
class-attribute
instance-attribute
¶
runtime_workspace_roots: list[AbsolutePathBuf] | None = None
Replace the thread's runtime workspace roots for this turn and subsequent turns. Paths must be absolute.
sandbox_policy
class-attribute
instance-attribute
¶
Override the sandbox policy for this turn and subsequent turns.
service_tier
class-attribute
instance-attribute
¶
Override the service tier for this turn and subsequent turns.
service_tier_for_turn
class-attribute
instance-attribute
¶
Override the service tier only when this request starts a new turn. Use "default" for standard speed. Omitted or null inherits the thread's tier. Does not change the thread's tier or a turn being steered.
summary
class-attribute
instance-attribute
¶
summary: ReasoningSummary | None = None
Override the reasoning summary for this turn and subsequent turns.
turn_trigger
class-attribute
instance-attribute
¶
Optional source classification for the caller that starts this turn. Ignored when this request steers an already-active turn.
TurnStartResponse
¶
Bases: CodexBaseModel
Response for turn/start request.
Source code in src/codexed/models/responses.py
TurnStartedData
¶
TurnStartedEvent
¶
TurnSteerParams
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
additional_context
class-attribute
instance-attribute
¶
Optional client-provided context fragments keyed by an opaque source identifier.
expected_turn_id
instance-attribute
¶
Required active turn id precondition. The request fails when it does not match the currently active turn.
responsesapi_client_metadata
class-attribute
instance-attribute
¶
Optional metadata to enrich Codex's ResponsesAPI turn metadata. Replaces unprotected client-provided entries when supplied; an empty map clears them.
Entries are flattened into the JSON string sent as client_metadata["x-codex-turn-metadata"] on ResponsesAPI HTTP and websocket requests.
They are not sent as top-level ResponsesAPI client_metadata keys, and reserved keys such as session_id, thread_id, turn_id, and window_id cannot be overridden.
responsesapi_client_metadata_patch
class-attribute
instance-attribute
¶
Merge entries into the ResponsesAPI turn metadata without removing existing entries. Applied after responsesapiClientMetadata if both are provided; reserved keys remain protected.
UncommittedChangesReviewTarget
¶
Bases: CodexBaseModel
Review the working tree: staged, unstaged, and untracked files.
Source code in src/codexed/models/v2_protocol.py
ViewImageToolConfig
¶
WarningNotification
¶
Bases: CodexBaseModel
Source code in src/codexed/models/v2_protocol.py
WebSearchToolConfig
¶
Bases: _ToolConfigBase
Configuration for the web_search tool.
Source code in src/codexed/models/tool_config.py
WindowsWorldWritableWarningMessage
¶
Bases: CodexBaseModel
Notifies the user of world-writable directories on Windows, which cannot be protected by the sandbox.
Source code in src/codexed/models/v2_protocol.py
emitted_at_ms
class-attribute
instance-attribute
¶
Unix timestamp (in milliseconds) when app-server emitted this notification.
tools_to_config_dict
¶
tools_to_config_dict(tools: list[ToolConfig]) -> dict[str, Any]
Convert a list of tool configs into the config dict for ThreadStartParams.
Each tool config contributes its settings to the appropriate config keys. An empty list explicitly disables all builtin tools.
Example::
config = tools_to_config_dict([]) # disable all tools
config = tools_to_config_dict([ # enable only these
WebSearchToolConfig(mode="live", context_size="high"),
JsReplToolConfig(),
])
Source code in src/codexed/models/tool_config.py
303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 | |