new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

AI SDK · Providers · all subjects

codex-cli/setup

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Codex CLI provider package and import

The Codex CLI provider is available as the npm package ai-sdk-provider-codex-cli. The default provider instance codexCli can be imported from 'ai-sdk-provider-codex-cli'. For customized setup, import createCodexCli from the same package.

Codex CLI version compatibility with AI SDK

Provider version 1.x is compatible with AI SDK v6 (latest, stable). Provider version 0.x is compatible with AI SDK v5 (maintenance). Install with: npm install ai-sdk-provider-codex-cli ai for v6, or npm install ai-sdk-provider-codex-cli@ai-sdk-v5 ai@^5.0.0 for v5.

Codex CLI authentication methods

The provider uses existing ChatGPT Plus/Pro subscription through the Codex CLI. Install globally with: npm install -g @openai/codex, then run 'codex' and follow interactive authentication setup. Alternatively, use an OpenAI API key by setting the OPENAI_API_KEY environment variable.

Codex CLI basic usage example

Basic usage example: import { codexCli } from 'ai-sdk-provider-codex-cli'; import { generateText } from 'ai'; const { text } = await generateText({ model: codexCli('gpt-5.2-codex'), prompt: 'Write a vegetarian lasagna recipe for 4 people.' });

Give your agent this brain