Skip to content

Protocol inventory ​

This inventory follows the checked-in codex-cli 0.167.0 schema, including experimental APIs. Every listed method is typed at the client boundary; availability depends on the running Codex server and its configuration.

Run npm run generate:rpc after schema regeneration. npm run check:rpc detects documentation drift without launching Codex.

Summary ​

DirectionCountClient API
Client requests183request(method, params)
Server notifications88onNotification(method, listener)
Server requests11onServerRequest(method, handler)

Client requests ​

MethodParametersResult
initializeInitializeParamsInitializeResponse
server/diagnosticsServerDiagnosticsParamsServerDiagnosticsResponse
userVerification/statusUserVerificationStatusParamsUserVerificationStatusResponse
userVerification/enrollUserVerificationEnrollParamsUserVerificationEnrollResponse
userVerification/deleteUserVerificationDeleteParamsUserVerificationDeleteResponse
userVerification/verifyUserVerificationVerifyParamsUserVerificationVerifyResponse
userVerification/cancelUserVerificationCancelParamsUserVerificationCancelResponse
thread/startThreadStartParamsThreadStartResponse
thread/resumeThreadResumeParamsThreadResumeResponse
thread/forkThreadForkParamsThreadForkResponse
thread/sampleThreadSampleParamsThreadSampleResponse
thread/sample/cancelThreadSampleCancelParamsThreadSampleCancelResponse
thread/archiveThreadArchiveParamsThreadArchiveResponse
thread/deleteThreadDeleteParamsThreadDeleteResponse
thread/unsubscribeThreadUnsubscribeParamsThreadUnsubscribeResponse
thread/increment_elicitationThreadIncrementElicitationParamsThreadIncrementElicitationResponse
thread/decrement_elicitationThreadDecrementElicitationParamsThreadDecrementElicitationResponse
thread/name/setThreadSetNameParamsThreadSetNameResponse
thread/prediction/requestThreadPredictionRequestParamsThreadPredictionRequestResponse
thread/goal/setThreadGoalSetParamsThreadGoalSetResponse
thread/goal/getThreadGoalGetParamsThreadGoalGetResponse
thread/goal/clearThreadGoalClearParamsThreadGoalClearResponse
thread/queue/addThreadQueueAddParamsThreadQueueAddResponse
thread/queue/listThreadQueueListParamsThreadQueueListResponse
thread/queue/updateThreadQueueUpdateParamsThreadQueueUpdateResponse
thread/queue/deleteThreadQueueDeleteParamsThreadQueueDeleteResponse
thread/queue/reorderThreadQueueReorderParamsThreadQueueReorderResponse
thread/queue/startThreadQueueStartParamsThreadQueueStartResponse
thread/metadata/updateThreadMetadataUpdateParamsThreadMetadataUpdateResponse
thread/attachment/addThreadAttachmentAddParamsThreadAttachmentAddResponse
thread/attachment/listThreadAttachmentListParamsThreadAttachmentListResponse
thread/attachmentOwner/listThreadAttachmentOwnerListParamsThreadAttachmentOwnerListResponse
thread/attachment/removeThreadAttachmentRemoveParamsThreadAttachmentRemoveResponse
thread/section/moveThreadSectionMoveParamsThreadSectionMoveResponse
thread/settings/updateThreadSettingsUpdateParamsThreadSettingsUpdateResponse
thread/memoryMode/setThreadMemoryModeSetParamsThreadMemoryModeSetResponse
thread/memory/readThreadMemoryReadParamsThreadMemoryReadResponse
memory/statusMemoryStatusParamsMemoryStatusResponse
memory/resetundefinedMemoryResetResponse
rollout/compressundefinedRolloutCompressResponse
thread/unarchiveThreadUnarchiveParamsThreadUnarchiveResponse
thread/compact/startThreadCompactStartParamsThreadCompactStartResponse
thread/shellCommandThreadShellCommandParamsThreadShellCommandResponse
thread/approveGuardianDeniedActionThreadApproveGuardianDeniedActionParamsThreadApproveGuardianDeniedActionResponse
thread/backgroundTerminals/cleanThreadBackgroundTerminalsCleanParamsThreadBackgroundTerminalsCleanResponse
thread/backgroundTerminals/listThreadBackgroundTerminalsListParamsThreadBackgroundTerminalsListResponse
thread/backgroundTerminals/terminateThreadBackgroundTerminalsTerminateParamsThreadBackgroundTerminalsTerminateResponse
thread/revertThreadRevertParamsThreadRevertResponse
thread/listThreadListParamsThreadListResponse
project/listProjectListParamsProjectListResponse
project/readProjectReadParamsProjectReadResponse
project/createProjectCreateParamsProjectCreateResponse
project/importProjectImportParamsProjectImportResponse
project/updateProjectUpdateParamsProjectUpdateResponse
project/moveProjectMoveParamsProjectMoveResponse
project/deleteProjectDeleteParamsProjectDeleteResponse
threadSection/listThreadSectionListParamsThreadSectionListResponse
threadSection/createThreadSectionCreateParamsThreadSectionCreateResponse
threadSection/updateThreadSectionUpdateParamsThreadSectionUpdateResponse
threadSection/deleteThreadSectionDeleteParamsThreadSectionDeleteResponse
thread/searchThreadSearchParamsThreadSearchResponse
thread/searchOccurrencesThreadSearchOccurrencesParamsThreadSearchOccurrencesResponse
thread/loaded/listThreadLoadedListParamsThreadLoadedListResponse
thread/readThreadReadParamsThreadReadResponse
thread/readState/updateThreadReadStateUpdateParamsThreadReadStateUpdateResponse
thread/turns/listThreadTurnsListParamsThreadTurnsListResponse
thread/items/listThreadItemsListParamsThreadItemsListResponse
thread/items/readThreadItemsReadParamsThreadItemsReadResponse
thread/guardianReviewThreadGuardianReviewParamsThreadGuardianReviewResponse
thread/inject_itemsThreadInjectItemsParamsThreadInjectItemsResponse
skills/listSkillsListParamsSkillsListResponse
skills/extraRoots/setSkillsExtraRootsSetParamsSkillsExtraRootsSetResponse
hooks/listHooksListParamsHooksListResponse
marketplace/addMarketplaceAddParamsMarketplaceAddResponse
marketplace/removeMarketplaceRemoveParamsMarketplaceRemoveResponse
marketplace/upgradeMarketplaceUpgradeParamsMarketplaceUpgradeResponse
plugin/listPluginListParamsPluginListResponse
plugin/searchPluginSearchParamsPluginSearchResponse
plugin/installedPluginInstalledParamsPluginInstalledResponse
plugin/reconcilePluginReconcileParamsPluginReconcileResponse
plugin/readPluginReadParamsPluginReadResponse
plugin/skill/readPluginSkillReadParamsPluginSkillReadResponse
plugin/share/savePluginShareSaveParamsPluginShareSaveResponse
plugin/share/updateTargetsPluginShareUpdateTargetsParamsPluginShareUpdateTargetsResponse
plugin/share/listPluginShareListParamsPluginShareListResponse
plugin/share/checkoutPluginShareCheckoutParamsPluginShareCheckoutResponse
plugin/share/deletePluginShareDeleteParamsPluginShareDeleteResponse
app/readAppsReadParamsAppsReadResponse
app/listAppsListParamsAppsListResponse
app/installedAppsInstalledParamsAppsInstalledResponse
fs/readFileFsReadFileParamsFsReadFileResponse
fs/writeFileFsWriteFileParamsFsWriteFileResponse
fs/createDirectoryFsCreateDirectoryParamsFsCreateDirectoryResponse
fs/getMetadataFsGetMetadataParamsFsGetMetadataResponse
fs/readDirectoryFsReadDirectoryParamsFsReadDirectoryResponse
fs/removeFsRemoveParamsFsRemoveResponse
fs/copyFsCopyParamsFsCopyResponse
fs/watchFsWatchParamsFsWatchResponse
fs/unwatchFsUnwatchParamsFsUnwatchResponse
skills/config/writeSkillsConfigWriteParamsSkillsConfigWriteResponse
plugin/installPluginInstallParamsPluginInstallResponse
plugin/uninstallPluginUninstallParamsPluginUninstallResponse
turn/startTurnStartParamsTurnStartResponse
turn/settings/updateTurnSettingsUpdateParamsTurnSettingsUpdateResponse
turn/steerTurnSteerParamsTurnSteerResponse
turn/interruptTurnInterruptParamsTurnInterruptResponse
thread/realtime/startThreadRealtimeStartParamsThreadRealtimeStartResponse
thread/realtime/appendAudioThreadRealtimeAppendAudioParamsThreadRealtimeAppendAudioResponse
thread/realtime/appendTextThreadRealtimeAppendTextParamsThreadRealtimeAppendTextResponse
thread/realtime/appendSpeechThreadRealtimeAppendSpeechParamsThreadRealtimeAppendSpeechResponse
thread/realtime/stopThreadRealtimeStopParamsThreadRealtimeStopResponse
thread/timeline/listThreadTimelineListParamsThreadTimelineListResponse
thread/realtime/listVoicesThreadRealtimeListVoicesParamsThreadRealtimeListVoicesResponse
review/startReviewStartParamsReviewStartResponse
model/listModelListParamsModelListResponse
account/gatewayOAuth/readundefinedGatewayOAuthReadResponse
account/gatewayOAuth/loginundefinedGatewayOAuthLoginResponse
account/gatewayOAuth/cancelundefinedGatewayOAuthCancelResponse
modelProvider/capabilities/readModelProviderCapabilitiesReadParamsModelProviderCapabilitiesReadResponse
experimentalFeature/listExperimentalFeatureListParamsExperimentalFeatureListResponse
permissionProfile/listPermissionProfileListParamsPermissionProfileListResponse
experimentalFeature/enablement/setExperimentalFeatureEnablementSetParamsExperimentalFeatureEnablementSetResponse
remoteControl/enableRemoteControlEnableParams | nullRemoteControlEnableResponse
remoteControl/disableRemoteControlDisableParams | nullRemoteControlDisableResponse
remoteControl/status/readundefinedRemoteControlStatusReadResponse
remoteControl/pairing/startRemoteControlPairingStartParamsRemoteControlPairingStartResponse
remoteControl/pairing/statusRemoteControlPairingStatusParamsRemoteControlPairingStatusResponse
remoteControl/client/listRemoteControlClientsListParamsRemoteControlClientsListResponse
remoteControl/client/revokeRemoteControlClientsRevokeParamsRemoteControlClientsRevokeResponse
collaborationMode/listCollaborationModeListParamsCollaborationModeListResponse
mock/experimentalMethodMockExperimentalMethodParamsMockExperimentalMethodResponse
environment/addEnvironmentAddParamsEnvironmentAddResponse
environment/infoEnvironmentInfoParamsEnvironmentInfoResponse
environment/statusEnvironmentStatusParamsEnvironmentStatusResponse
mcpServer/oauth/loginMcpServerOauthLoginParamsMcpServerOauthLoginResponse
config/mcpServer/reloadundefinedMcpServerRefreshResponse
mcpServerStatus/listListMcpServerStatusParamsListMcpServerStatusResponse
mcpServer/resource/readMcpResourceReadParamsMcpResourceReadResponse
mcpServer/event/stream/startMcpServerEventStreamStartParamsMcpServerEventStreamStartResponse
mcpServer/event/stream/stopMcpServerEventStreamStopParamsMcpServerEventStreamStopResponse
mcpServer/tool/callMcpServerToolCallParamsMcpServerToolCallResponse
windowsSandbox/setupStartWindowsSandboxSetupStartParamsWindowsSandboxSetupStartResponse
windowsSandbox/readinessundefinedWindowsSandboxReadinessResponse
account/login/startLoginAccountParamsLoginAccountResponse
account/bedrock/discoverBedrockDiscoverParamsBedrockDiscoverResponse
account/bedrock/setupBedrockSetupParamsBedrockSetupResponse
account/gcp/setupGcpSetupParamsGcpSetupResponse
account/bedrock/checkGovCloudRequirementsBedrockCheckGovCloudRequirementsParamsBedrockCheckGovCloudRequirementsResponse
account/login/cancelCancelLoginAccountParamsCancelLoginAccountResponse
accountSession/listAccountSessionsListParamsAccountSessionsResponse
accountSession/switchAccountSessionsSwitchParamsAccountSessionsSwitchResponse
account/logoutundefinedLogoutAccountResponse
account/rateLimits/readGetAccountRateLimitsParams | undefinedGetAccountRateLimitsResponse
account/rateLimitResetCredit/consumeConsumeAccountRateLimitResetCreditParamsConsumeAccountRateLimitResetCreditResponse
account/usage/readGetAccountTokenUsageParams | undefinedGetAccountTokenUsageResponse
account/workspaceMessages/readundefinedGetWorkspaceMessagesResponse
account/sendAddCreditsNudgeEmailSendAddCreditsNudgeEmailParamsSendAddCreditsNudgeEmailResponse
feedback/uploadFeedbackUploadParamsFeedbackUploadResponse
feedback/saveFeedbackSaveParamsFeedbackSaveResponse
command/execCommandExecParamsCommandExecResponse
command/exec/writeCommandExecWriteParamsCommandExecWriteResponse
command/exec/terminateCommandExecTerminateParamsCommandExecTerminateResponse
command/exec/resizeCommandExecResizeParamsCommandExecResizeResponse
process/spawnProcessSpawnParamsProcessSpawnResponse
process/writeStdinProcessWriteStdinParamsProcessWriteStdinResponse
process/killProcessKillParamsProcessKillResponse
process/resizePtyProcessResizePtyParamsProcessResizePtyResponse
config/readConfigReadParamsConfigReadResponse
externalAgentConfig/detectExternalAgentConfigDetectParamsExternalAgentConfigDetectResponse
externalAgentConfig/importExternalAgentConfigImportParamsExternalAgentConfigImportResponse
externalAgentConfig/import/recordHistoryExternalAgentConfigImportHistoryRecordParamsExternalAgentConfigImportHistoryRecordResponse
externalAgentConfig/import/readHistoriesundefinedExternalAgentConfigImportHistoriesReadResponse
config/value/writeConfigValueWriteParamsConfigWriteResponse
config/batchWriteConfigBatchWriteParamsConfigWriteResponse
configRequirements/readundefinedConfigRequirementsReadResponse
account/readGetAccountParamsGetAccountResponse
getConversationSummaryGetConversationSummaryParamsGetConversationSummaryResponse
gitDiffToRemoteGitDiffToRemoteParamsGitDiffToRemoteResponse
getAuthStatusGetAuthStatusParamsGetAuthStatusResponse
fuzzyFileSearchFuzzyFileSearchParamsFuzzyFileSearchResponse
fuzzyFileSearch/sessionStartFuzzyFileSearchSessionStartParamsFuzzyFileSearchSessionStartResponse
fuzzyFileSearch/sessionUpdateFuzzyFileSearchSessionUpdateParamsFuzzyFileSearchSessionUpdateResponse
fuzzyFileSearch/sessionStopFuzzyFileSearchSessionStopParamsFuzzyFileSearchSessionStopResponse

Server notifications ​

Method
error
thread/started
thread/status/changed
thread/readState/changed
thread/archived
thread/deleted
thread/unarchived
thread/closed
thread/reverted
skills/changed
thread/name/updated
thread/section/changed
thread/attachment/updated
thread/goal/updated
thread/prediction/updated
thread/goal/cleared
thread/queue/changed
project/changed
thread/project/updated
thread/environment/connected
thread/environment/disconnected
thread/settings/updated
thread/tokenUsage/updated
turn/started
hook/started
turn/completed
hook/completed
turn/diff/updated
turn/plan/updated
item/started
item/autoApprovalReview/started
item/autoApprovalReview/completed
autoApprovalReview/strictReviewRequired
item/completed
rawResponseItem/completed
rawResponse/completed
item/agentMessage/delta
item/plan/delta
command/exec/outputDelta
process/outputDelta
process/exited
item/commandExecution/outputDelta
item/commandExecution/terminalInteraction
item/fileChange/outputDelta
item/fileChange/patchUpdated
serverRequest/resolved
item/mcpToolCall/progress
mcpServer/oauthLogin/completed
mcpServer/startupStatus/updated
mcpServer/event/stream/notification
account/updated
account/gatewayOAuth/changed
account/rateLimits/updated
app/list/updated
remoteControl/status/changed
externalAgentConfig/import/progress
externalAgentConfig/import/completed
fs/changed
item/reasoning/summaryTextDelta
item/reasoning/summaryPartAdded
item/reasoning/textDelta
thread/compacted
model/rerouted
model/verification
modelProvider/authRecoveryStarted
modelProvider/authRecoveryCompleted
turn/moderationMetadata
model/safetyBuffering/updated
warning
guardianWarning
deprecationNotice
configWarning
fuzzyFileSearch/sessionUpdated
fuzzyFileSearch/sessionCompleted
thread/realtime/started
thread/realtime/itemAdded
thread/realtime/item/started
thread/realtime/item/transcript/delta
thread/realtime/item/completed
thread/realtime/transcript/delta
thread/realtime/transcript/done
thread/realtime/outputAudio/delta
thread/realtime/sdp
thread/realtime/error
thread/realtime/closed
windows/worldWritableWarning
windowsSandbox/setupCompleted
account/login/completed

Server requests ​

MethodParametersResult
item/commandExecution/requestApprovalCommandExecutionRequestApprovalParamsCommandExecutionRequestApprovalResponse
item/fileChange/requestApprovalFileChangeRequestApprovalParamsFileChangeRequestApprovalResponse
item/tool/requestUserInputToolRequestUserInputParamsToolRequestUserInputResponse
mcpServer/elicitation/requestMcpServerElicitationRequestParamsMcpServerElicitationRequestResponse
item/permissions/requestApprovalPermissionsRequestApprovalParamsPermissionsRequestApprovalResponse
item/tool/callDynamicToolCallParamsDynamicToolCallResponse
account/chatgptAuthTokens/refreshChatgptAuthTokensRefreshParamsChatgptAuthTokensRefreshResponse
attestation/generateAttestationGenerateParamsAttestationGenerateResponse
currentTime/readCurrentTimeReadParamsCurrentTimeReadResponse
applyPatchApprovalApplyPatchApprovalParamsApplyPatchApprovalResponse
execCommandApprovalExecCommandApprovalParamsExecCommandApprovalResponse

Parameter and result names refer to generated protocol types. Import top-level types and the type-only v2 namespace from @korus-dev/codex-sdk; see generated types. The client routes these messages; your app owns their presentation, approval policy, and any state derived from notifications.

Released under the Apache License 2.0.