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
| Direction | Count | Client API |
|---|---|---|
| Client requests | 183 | request(method, params) |
| Server notifications | 88 | onNotification(method, listener) |
| Server requests | 11 | onServerRequest(method, handler) |
Client requests
| Method | Parameters | Result |
|---|---|---|
initialize | InitializeParams | InitializeResponse |
server/diagnostics | ServerDiagnosticsParams | ServerDiagnosticsResponse |
userVerification/status | UserVerificationStatusParams | UserVerificationStatusResponse |
userVerification/enroll | UserVerificationEnrollParams | UserVerificationEnrollResponse |
userVerification/delete | UserVerificationDeleteParams | UserVerificationDeleteResponse |
userVerification/verify | UserVerificationVerifyParams | UserVerificationVerifyResponse |
userVerification/cancel | UserVerificationCancelParams | UserVerificationCancelResponse |
thread/start | ThreadStartParams | ThreadStartResponse |
thread/resume | ThreadResumeParams | ThreadResumeResponse |
thread/fork | ThreadForkParams | ThreadForkResponse |
thread/sample | ThreadSampleParams | ThreadSampleResponse |
thread/sample/cancel | ThreadSampleCancelParams | ThreadSampleCancelResponse |
thread/archive | ThreadArchiveParams | ThreadArchiveResponse |
thread/delete | ThreadDeleteParams | ThreadDeleteResponse |
thread/unsubscribe | ThreadUnsubscribeParams | ThreadUnsubscribeResponse |
thread/increment_elicitation | ThreadIncrementElicitationParams | ThreadIncrementElicitationResponse |
thread/decrement_elicitation | ThreadDecrementElicitationParams | ThreadDecrementElicitationResponse |
thread/name/set | ThreadSetNameParams | ThreadSetNameResponse |
thread/prediction/request | ThreadPredictionRequestParams | ThreadPredictionRequestResponse |
thread/goal/set | ThreadGoalSetParams | ThreadGoalSetResponse |
thread/goal/get | ThreadGoalGetParams | ThreadGoalGetResponse |
thread/goal/clear | ThreadGoalClearParams | ThreadGoalClearResponse |
thread/queue/add | ThreadQueueAddParams | ThreadQueueAddResponse |
thread/queue/list | ThreadQueueListParams | ThreadQueueListResponse |
thread/queue/update | ThreadQueueUpdateParams | ThreadQueueUpdateResponse |
thread/queue/delete | ThreadQueueDeleteParams | ThreadQueueDeleteResponse |
thread/queue/reorder | ThreadQueueReorderParams | ThreadQueueReorderResponse |
thread/queue/start | ThreadQueueStartParams | ThreadQueueStartResponse |
thread/metadata/update | ThreadMetadataUpdateParams | ThreadMetadataUpdateResponse |
thread/attachment/add | ThreadAttachmentAddParams | ThreadAttachmentAddResponse |
thread/attachment/list | ThreadAttachmentListParams | ThreadAttachmentListResponse |
thread/attachmentOwner/list | ThreadAttachmentOwnerListParams | ThreadAttachmentOwnerListResponse |
thread/attachment/remove | ThreadAttachmentRemoveParams | ThreadAttachmentRemoveResponse |
thread/section/move | ThreadSectionMoveParams | ThreadSectionMoveResponse |
thread/settings/update | ThreadSettingsUpdateParams | ThreadSettingsUpdateResponse |
thread/memoryMode/set | ThreadMemoryModeSetParams | ThreadMemoryModeSetResponse |
thread/memory/read | ThreadMemoryReadParams | ThreadMemoryReadResponse |
memory/status | MemoryStatusParams | MemoryStatusResponse |
memory/reset | undefined | MemoryResetResponse |
rollout/compress | undefined | RolloutCompressResponse |
thread/unarchive | ThreadUnarchiveParams | ThreadUnarchiveResponse |
thread/compact/start | ThreadCompactStartParams | ThreadCompactStartResponse |
thread/shellCommand | ThreadShellCommandParams | ThreadShellCommandResponse |
thread/approveGuardianDeniedAction | ThreadApproveGuardianDeniedActionParams | ThreadApproveGuardianDeniedActionResponse |
thread/backgroundTerminals/clean | ThreadBackgroundTerminalsCleanParams | ThreadBackgroundTerminalsCleanResponse |
thread/backgroundTerminals/list | ThreadBackgroundTerminalsListParams | ThreadBackgroundTerminalsListResponse |
thread/backgroundTerminals/terminate | ThreadBackgroundTerminalsTerminateParams | ThreadBackgroundTerminalsTerminateResponse |
thread/revert | ThreadRevertParams | ThreadRevertResponse |
thread/list | ThreadListParams | ThreadListResponse |
project/list | ProjectListParams | ProjectListResponse |
project/read | ProjectReadParams | ProjectReadResponse |
project/create | ProjectCreateParams | ProjectCreateResponse |
project/import | ProjectImportParams | ProjectImportResponse |
project/update | ProjectUpdateParams | ProjectUpdateResponse |
project/move | ProjectMoveParams | ProjectMoveResponse |
project/delete | ProjectDeleteParams | ProjectDeleteResponse |
threadSection/list | ThreadSectionListParams | ThreadSectionListResponse |
threadSection/create | ThreadSectionCreateParams | ThreadSectionCreateResponse |
threadSection/update | ThreadSectionUpdateParams | ThreadSectionUpdateResponse |
threadSection/delete | ThreadSectionDeleteParams | ThreadSectionDeleteResponse |
thread/search | ThreadSearchParams | ThreadSearchResponse |
thread/searchOccurrences | ThreadSearchOccurrencesParams | ThreadSearchOccurrencesResponse |
thread/loaded/list | ThreadLoadedListParams | ThreadLoadedListResponse |
thread/read | ThreadReadParams | ThreadReadResponse |
thread/readState/update | ThreadReadStateUpdateParams | ThreadReadStateUpdateResponse |
thread/turns/list | ThreadTurnsListParams | ThreadTurnsListResponse |
thread/items/list | ThreadItemsListParams | ThreadItemsListResponse |
thread/items/read | ThreadItemsReadParams | ThreadItemsReadResponse |
thread/guardianReview | ThreadGuardianReviewParams | ThreadGuardianReviewResponse |
thread/inject_items | ThreadInjectItemsParams | ThreadInjectItemsResponse |
skills/list | SkillsListParams | SkillsListResponse |
skills/extraRoots/set | SkillsExtraRootsSetParams | SkillsExtraRootsSetResponse |
hooks/list | HooksListParams | HooksListResponse |
marketplace/add | MarketplaceAddParams | MarketplaceAddResponse |
marketplace/remove | MarketplaceRemoveParams | MarketplaceRemoveResponse |
marketplace/upgrade | MarketplaceUpgradeParams | MarketplaceUpgradeResponse |
plugin/list | PluginListParams | PluginListResponse |
plugin/search | PluginSearchParams | PluginSearchResponse |
plugin/installed | PluginInstalledParams | PluginInstalledResponse |
plugin/reconcile | PluginReconcileParams | PluginReconcileResponse |
plugin/read | PluginReadParams | PluginReadResponse |
plugin/skill/read | PluginSkillReadParams | PluginSkillReadResponse |
plugin/share/save | PluginShareSaveParams | PluginShareSaveResponse |
plugin/share/updateTargets | PluginShareUpdateTargetsParams | PluginShareUpdateTargetsResponse |
plugin/share/list | PluginShareListParams | PluginShareListResponse |
plugin/share/checkout | PluginShareCheckoutParams | PluginShareCheckoutResponse |
plugin/share/delete | PluginShareDeleteParams | PluginShareDeleteResponse |
app/read | AppsReadParams | AppsReadResponse |
app/list | AppsListParams | AppsListResponse |
app/installed | AppsInstalledParams | AppsInstalledResponse |
fs/readFile | FsReadFileParams | FsReadFileResponse |
fs/writeFile | FsWriteFileParams | FsWriteFileResponse |
fs/createDirectory | FsCreateDirectoryParams | FsCreateDirectoryResponse |
fs/getMetadata | FsGetMetadataParams | FsGetMetadataResponse |
fs/readDirectory | FsReadDirectoryParams | FsReadDirectoryResponse |
fs/remove | FsRemoveParams | FsRemoveResponse |
fs/copy | FsCopyParams | FsCopyResponse |
fs/watch | FsWatchParams | FsWatchResponse |
fs/unwatch | FsUnwatchParams | FsUnwatchResponse |
skills/config/write | SkillsConfigWriteParams | SkillsConfigWriteResponse |
plugin/install | PluginInstallParams | PluginInstallResponse |
plugin/uninstall | PluginUninstallParams | PluginUninstallResponse |
turn/start | TurnStartParams | TurnStartResponse |
turn/settings/update | TurnSettingsUpdateParams | TurnSettingsUpdateResponse |
turn/steer | TurnSteerParams | TurnSteerResponse |
turn/interrupt | TurnInterruptParams | TurnInterruptResponse |
thread/realtime/start | ThreadRealtimeStartParams | ThreadRealtimeStartResponse |
thread/realtime/appendAudio | ThreadRealtimeAppendAudioParams | ThreadRealtimeAppendAudioResponse |
thread/realtime/appendText | ThreadRealtimeAppendTextParams | ThreadRealtimeAppendTextResponse |
thread/realtime/appendSpeech | ThreadRealtimeAppendSpeechParams | ThreadRealtimeAppendSpeechResponse |
thread/realtime/stop | ThreadRealtimeStopParams | ThreadRealtimeStopResponse |
thread/timeline/list | ThreadTimelineListParams | ThreadTimelineListResponse |
thread/realtime/listVoices | ThreadRealtimeListVoicesParams | ThreadRealtimeListVoicesResponse |
review/start | ReviewStartParams | ReviewStartResponse |
model/list | ModelListParams | ModelListResponse |
account/gatewayOAuth/read | undefined | GatewayOAuthReadResponse |
account/gatewayOAuth/login | undefined | GatewayOAuthLoginResponse |
account/gatewayOAuth/cancel | undefined | GatewayOAuthCancelResponse |
modelProvider/capabilities/read | ModelProviderCapabilitiesReadParams | ModelProviderCapabilitiesReadResponse |
experimentalFeature/list | ExperimentalFeatureListParams | ExperimentalFeatureListResponse |
permissionProfile/list | PermissionProfileListParams | PermissionProfileListResponse |
experimentalFeature/enablement/set | ExperimentalFeatureEnablementSetParams | ExperimentalFeatureEnablementSetResponse |
remoteControl/enable | RemoteControlEnableParams | null | RemoteControlEnableResponse |
remoteControl/disable | RemoteControlDisableParams | null | RemoteControlDisableResponse |
remoteControl/status/read | undefined | RemoteControlStatusReadResponse |
remoteControl/pairing/start | RemoteControlPairingStartParams | RemoteControlPairingStartResponse |
remoteControl/pairing/status | RemoteControlPairingStatusParams | RemoteControlPairingStatusResponse |
remoteControl/client/list | RemoteControlClientsListParams | RemoteControlClientsListResponse |
remoteControl/client/revoke | RemoteControlClientsRevokeParams | RemoteControlClientsRevokeResponse |
collaborationMode/list | CollaborationModeListParams | CollaborationModeListResponse |
mock/experimentalMethod | MockExperimentalMethodParams | MockExperimentalMethodResponse |
environment/add | EnvironmentAddParams | EnvironmentAddResponse |
environment/info | EnvironmentInfoParams | EnvironmentInfoResponse |
environment/status | EnvironmentStatusParams | EnvironmentStatusResponse |
mcpServer/oauth/login | McpServerOauthLoginParams | McpServerOauthLoginResponse |
config/mcpServer/reload | undefined | McpServerRefreshResponse |
mcpServerStatus/list | ListMcpServerStatusParams | ListMcpServerStatusResponse |
mcpServer/resource/read | McpResourceReadParams | McpResourceReadResponse |
mcpServer/event/stream/start | McpServerEventStreamStartParams | McpServerEventStreamStartResponse |
mcpServer/event/stream/stop | McpServerEventStreamStopParams | McpServerEventStreamStopResponse |
mcpServer/tool/call | McpServerToolCallParams | McpServerToolCallResponse |
windowsSandbox/setupStart | WindowsSandboxSetupStartParams | WindowsSandboxSetupStartResponse |
windowsSandbox/readiness | undefined | WindowsSandboxReadinessResponse |
account/login/start | LoginAccountParams | LoginAccountResponse |
account/bedrock/discover | BedrockDiscoverParams | BedrockDiscoverResponse |
account/bedrock/setup | BedrockSetupParams | BedrockSetupResponse |
account/gcp/setup | GcpSetupParams | GcpSetupResponse |
account/bedrock/checkGovCloudRequirements | BedrockCheckGovCloudRequirementsParams | BedrockCheckGovCloudRequirementsResponse |
account/login/cancel | CancelLoginAccountParams | CancelLoginAccountResponse |
accountSession/list | AccountSessionsListParams | AccountSessionsResponse |
accountSession/switch | AccountSessionsSwitchParams | AccountSessionsSwitchResponse |
account/logout | undefined | LogoutAccountResponse |
account/rateLimits/read | GetAccountRateLimitsParams | undefined | GetAccountRateLimitsResponse |
account/rateLimitResetCredit/consume | ConsumeAccountRateLimitResetCreditParams | ConsumeAccountRateLimitResetCreditResponse |
account/usage/read | GetAccountTokenUsageParams | undefined | GetAccountTokenUsageResponse |
account/workspaceMessages/read | undefined | GetWorkspaceMessagesResponse |
account/sendAddCreditsNudgeEmail | SendAddCreditsNudgeEmailParams | SendAddCreditsNudgeEmailResponse |
feedback/upload | FeedbackUploadParams | FeedbackUploadResponse |
feedback/save | FeedbackSaveParams | FeedbackSaveResponse |
command/exec | CommandExecParams | CommandExecResponse |
command/exec/write | CommandExecWriteParams | CommandExecWriteResponse |
command/exec/terminate | CommandExecTerminateParams | CommandExecTerminateResponse |
command/exec/resize | CommandExecResizeParams | CommandExecResizeResponse |
process/spawn | ProcessSpawnParams | ProcessSpawnResponse |
process/writeStdin | ProcessWriteStdinParams | ProcessWriteStdinResponse |
process/kill | ProcessKillParams | ProcessKillResponse |
process/resizePty | ProcessResizePtyParams | ProcessResizePtyResponse |
config/read | ConfigReadParams | ConfigReadResponse |
externalAgentConfig/detect | ExternalAgentConfigDetectParams | ExternalAgentConfigDetectResponse |
externalAgentConfig/import | ExternalAgentConfigImportParams | ExternalAgentConfigImportResponse |
externalAgentConfig/import/recordHistory | ExternalAgentConfigImportHistoryRecordParams | ExternalAgentConfigImportHistoryRecordResponse |
externalAgentConfig/import/readHistories | undefined | ExternalAgentConfigImportHistoriesReadResponse |
config/value/write | ConfigValueWriteParams | ConfigWriteResponse |
config/batchWrite | ConfigBatchWriteParams | ConfigWriteResponse |
configRequirements/read | undefined | ConfigRequirementsReadResponse |
account/read | GetAccountParams | GetAccountResponse |
getConversationSummary | GetConversationSummaryParams | GetConversationSummaryResponse |
gitDiffToRemote | GitDiffToRemoteParams | GitDiffToRemoteResponse |
getAuthStatus | GetAuthStatusParams | GetAuthStatusResponse |
fuzzyFileSearch | FuzzyFileSearchParams | FuzzyFileSearchResponse |
fuzzyFileSearch/sessionStart | FuzzyFileSearchSessionStartParams | FuzzyFileSearchSessionStartResponse |
fuzzyFileSearch/sessionUpdate | FuzzyFileSearchSessionUpdateParams | FuzzyFileSearchSessionUpdateResponse |
fuzzyFileSearch/sessionStop | FuzzyFileSearchSessionStopParams | FuzzyFileSearchSessionStopResponse |
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
| Method | Parameters | Result |
|---|---|---|
item/commandExecution/requestApproval | CommandExecutionRequestApprovalParams | CommandExecutionRequestApprovalResponse |
item/fileChange/requestApproval | FileChangeRequestApprovalParams | FileChangeRequestApprovalResponse |
item/tool/requestUserInput | ToolRequestUserInputParams | ToolRequestUserInputResponse |
mcpServer/elicitation/request | McpServerElicitationRequestParams | McpServerElicitationRequestResponse |
item/permissions/requestApproval | PermissionsRequestApprovalParams | PermissionsRequestApprovalResponse |
item/tool/call | DynamicToolCallParams | DynamicToolCallResponse |
account/chatgptAuthTokens/refresh | ChatgptAuthTokensRefreshParams | ChatgptAuthTokensRefreshResponse |
attestation/generate | AttestationGenerateParams | AttestationGenerateResponse |
currentTime/read | CurrentTimeReadParams | CurrentTimeReadResponse |
applyPatchApproval | ApplyPatchApprovalParams | ApplyPatchApprovalResponse |
execCommandApproval | ExecCommandApprovalParams | ExecCommandApprovalResponse |
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.