Stitch / docs
Harnesses

Codex

Run agents with OpenAI Codex.

Harness details
Typecodex
WebsiteCodex

Version

Set version explicitly to pin a release, for example 0.162.1.

The release must be available on GitHub and work with the harness adapter.

Model and Reasoning Effort

Set both model and reasoningEffort to non-empty strings. Stitch passes them to Codex without checking a model catalog or supported combinations. Codex reports unsupported values so you can correct the configuration.

Use reasoningEffort: default to let Codex choose the effort. Other values are passed as model_reasoning_effort. Azure OpenAI deployment names use azure_openai_api_key authentication.

Authentication

Use exactly one auth method. Store the credential as a Stitch secret and reference it with secretName.

Auth methodCredentialRequired harness environment
openai_api_keyOpenAI API keyNone
aws_bedrock_api_keyAmazon Bedrock API key from the AWS consoleAWS_REGION or AWS_DEFAULT_REGION
azure_openai_api_keyAPI key from your Azure OpenAI resourceAZURE_OPENAI_BASE_URL

On this page