# Codex

URL: https://docs.usestitch.ai/docs/resources/harnesses/codex



## Version [#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 [#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 [#authentication]

Use exactly one auth method. Store the credential as a
[Stitch secret](/docs/resources/secrets) and reference it with `secretName`.

| Auth method            | Credential                                             | Required harness environment         |
| ---------------------- | ------------------------------------------------------ | ------------------------------------ |
| `openai_api_key`       | [OpenAI API key](https://platform.openai.com/api-keys) | None                                 |
| `aws_bedrock_api_key`  | Amazon Bedrock API key from the AWS console            | `AWS_REGION` or `AWS_DEFAULT_REGION` |
| `azure_openai_api_key` | API key from your Azure OpenAI resource                | `AZURE_OPENAI_BASE_URL`              |
