open_ai_api_key lets the Agent use all of these capabilities.
Text Chat
Codex (ChatGPT Subscription)
The Codex provider calls GPT models through your ChatGPT subscription, with no API key, and is intended for personal use. CowAgent sends requests through the official Codex CLI, while conversation history and tool calls are still managed by CowAgent under the existing permission settings.Sign In from the Web Console
- Under “Config › Models”, choose Codex as the provider and click “Sign in with ChatGPT”. On the first sign-in, the official Codex CLI (about 110 MB) is downloaded automatically and the progress is shown.
- Copy the device code, open the OpenAI authorization page, sign in with your ChatGPT account, paste the device code, and confirm.
- Once authorized, the model list syncs automatically and Codex models can be selected in chats.
Sign In from the Terminal
Run as the user that runs the CowAgent service:--yes to confirm automatically. On a machine with a browser, you can use cow codex login --browser. Other commands:
If OpenAI asks you to enable device code authorization, turn it on in ChatGPT’s security settings. The Codex CLI and its sign-in credentials are stored in the data directory of the current CowAgent instance and do not affect any Codex CLI you installed yourself.
Use via the Config File
model to a model listed by cow codex models. If LinkAI is enabled, set use_linkai to false.
The Codex provider is used only for text chat and tool calls; image understanding, image generation, speech, and embeddings need to be configured separately. Available models and usage limits follow your ChatGPT plan.
Image Understanding
OpenAI models likegpt-5.5, gpt-5.4, gpt-4o, and gpt-4.1 natively support vision. Once open_ai_api_key is configured, the Agent’s Vision tool automatically uses the main model to recognize images. If the main model does not support vision or you want to specify it explicitly, set it in the configuration file:
gpt-5.5, gpt-5.4, gpt-5.4-mini, gpt-5.4-nano, gpt-5, gpt-4.1, gpt-4.1-mini, gpt-4o.
Image Generation
Specify the image generation model in the configuration file; the Agent automatically routes image generation skill calls to OpenAI:gpt-image-2.5-flare (recommended default), gpt-image-2.5-sunburst, gpt-image-2.6-flare, gpt-image-2.6-sunburst, gpt-image-2, gpt-image-1. The gpt-image-2.6 series uses high quality when quality is not specified.
Speech-to-Text (ASR)
Credentials are automatically reused from
open_ai_api_key.
Text-to-Speech (TTS)
Embedding
text-embedding-3-small, text-embedding-3-large, text-embedding-ada-002. After changing the embedding, run /memory rebuild-index to rebuild the index.