Codex Setup logo

Codex Setup

Community
LeeJuOh
codex-setup

Check the Codex CLI, sign-in and the Official plugin, and set the default model and effort in config.toml.

Overview

PublisherLeeJuOh
Repositoryclaude-code-zero
Skill namecodex-setup
Stars
53
Forks
4
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by LeeJuOh on GitHub. Read the source before you install it.

Installation

Install the Codex Setup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/codex-advisor/skills/codex-setup
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LeeJuOh/claude-code-zero.git /tmp/claude-code-zero
mkdir -p .claude/skills
cp -r /tmp/claude-code-zero/plugins/codex-advisor/skills/codex-setup .claude/skills/codex-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Codex Setup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Codex Setup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Codex Setup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Codex Setup & Configuration

Preflight check and ~/.codex/config.toml configuration helper for codex-advisor.

Mode Selection

Parse $ARGUMENTS:

InputAction
--status or no argsRun preflight + show current config
--model MODELSet default model in config.toml
--effort LEVELSet reasoning effort in config.toml
Combined flagsApply all settings

Preflight Check

One call finds the Official Codex plugin and asks its companion what is installed and signed in:

bash
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-job.sh" setup

If it fails with Official Codex plugin not found, guide the user through the full installation process:

  1. Tell the user to run these commands in order (they must type these themselves since they are interactive CLI commands):
    • /plugin marketplace add openai/codex-plugin-cc — adds the Official Codex marketplace
    • /plugin install codex@openai-codex — installs the plugin from that marketplace
    • /reload-plugins — activates the newly installed plugin
  2. After the user completes the steps, re-run the check to verify.

Do NOT just print the steps and move on. Wait for the user to complete them. Until then, report the CLI and authentication rows as unknown — only the companion checks them.

Otherwise fill the status report from the JSON: codex.available and codex.detail for the CLI, auth.loggedIn and auth.detail for authentication. Relay nextSteps, except the review-gate one — --enable-review-gate belongs to the Official plugin's own /codex:setup and Stop hook, which codex-advisor does not wrap.

Configuration Management

Read current config

bash
"${CLAUDE_PLUGIN_ROOT}/scripts/codex-job.sh" config

Set Model / Effort (--model, --effort)

Both flags are handled by one call. Empty string = no change for that field:

bash
"${CLAUDE_PLUGIN_ROOT}/scripts/apply-codex-config.py" "<model or empty>" "<effort or empty>"

The script's first stdout line is:

Model: <before> -> <after> | Effort: <before> -> <after>

Relay that line verbatim to the user — it shows before/after so they can confirm. If it exits non-zero, relay its stderr instead — the file was left untouched. A Note: line means the current project's own .codex/config.toml sets the same key, which outranks config.toml in that project — relay it.

Model and effort handling

The script writes both values as given and judges neither — Codex owns the list of valid models and effort levels, and it decides at run time. Don't add a validity check here or reintroduce one downstream, and don't teach the script a model alias: any model name we keep goes stale the moment OpenAI ships the next one, and then it calls a working value wrong.

So when a user asks which models or efforts they can use, don't answer from memory — availability is account-scoped and changes. Tell them to run codex and open its /model picker.

The effort value lands on the model_reasoning_effort key (none is the exception — it belongs to plan_mode_reasoning_effort, which this plugin doesn't set). The script edits only the top-level keys (above the first [table] header), preserves everything else (e.g. model_context_window, [projects.*]), follows CODEX_HOME, and writes atomically via a temp file. On Python 3.11+ it parses the file before and after and refuses to write if anything other than the requested keys would change.

If a value looks like an obvious typo, AskUserQuestion beats letting it through — config.toml is global, so a typo follows the user into every later session.

Status Report

markdown
## Codex Setup Status

| Item | Status |
|------|--------|
| Codex CLI | `codex.detail` or NOT_INSTALLED |
| Authentication | `auth.detail` or NOT LOGGED IN |
| Official Plugin | OK or NOT_INSTALLED (required) |

## Current Configuration (~/.codex/config.toml)

| Setting | Value |
|---------|-------|
| model | <current or "default (not set)"> |
| model_reasoning_effort | <current or "default (not set)"> |
| web_search | <current or "default (not set)"> |

These defaults apply to ALL Codex commands — both Official plugin and direct CLI.
To change: `/codex-setup --model gpt-5.6-sol --effort high`

Gotchas

  • config.toml applies globally. Changes affect all Codex commands system-wide — Official plugin, direct CLI, and every codex-advisor skill. Warn the user when you mutate it.
  • Other skills set these too. review, adversarial, rescue, verify and research accept --model/--effort and write them through the same script. Review and adversarial have no --effort flag, so config.toml is the only way to set their effort — details in references/companion-usage.md §2.
  • Don't create config.toml if the user only asked for status. apply-codex-config.py "" "" is safe (no-op, prints current values) but avoid it when just reporting — codex-job.sh config is enough.

Frequently asked questions

What does the Codex Setup AI skill do?

Check the Codex CLI, sign-in and the Official plugin, and set the default model and effort in config.toml.

Why use Codex Setup on TypingMind?

Because you install it once and use it with any model. Codex Setup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Codex Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/LeeJuOh/claude-code-zero/tree/main/plugins/codex-advisor/skills/codex-setup. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Codex Setup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Codex Setup?

As many as you like. As long as a model supports skills, you can use Codex Setup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Codex Setup AI skill free?

Yes. It is published on GitHub by LeeJuOh under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇