CV Google Scholar MSU
Using AI in your research

Claude Code and Codex, side by side

Claude Code, from Anthropic, and Codex, from OpenAI, are the same kind of tool: an agent that works inside a folder on your computer, reading and writing files and running commands until a task is done. Most of what you learn in one carries over to the other. The differences are in names, defaults, and plans.

Last verified November 4, 2026, against Claude Code 2.1.318 and Codex 0.166.0. Both change often. Typing / in either one lists its current commands.

Plans and data

Claude CodeCodex
Plans that include itPro ($20 a month) and higher. Not the free plan.Plus ($20 a month) and higher, and MSU’s ChatGPT Edu. Free and Go get it only in the ChatGPT desktop app, as it rolls out.
MSU data rulesPublic data only. Claude isn’t approved at MSU yet, and MSU expects an agreement with Anthropic in December 2026.On an Edu seat, up to confidential research, with MSU IT approval. On a personal plan, public data only.
Usage limitsA five-hour window and a weekly cap. /usage shows both.A five-hour window, and weekly limits may apply. /status shows what’s left.

More on data rules: Choosing a tool. Installing either one: Setting up the terminal.

Starting and stopping

Claude CodeCodex
Start in this folderclaudecodex
Start with a taskclaude "summarize the PDFs here"codex "summarize the PDFs here"
Sign inA browser opens the first time. /login switches accounts.A browser opens the first time. Choose Sign in with ChatGPT.
Stop it mid-taskEscEsc
Leave/exit/exit
Pick up where you left offclaude --continuecodex resume --last
Choose an older session/resume/resume

Talking to it

Claude CodeCodex
Point it at a fileType @ and start the file’s name.Type @ and start the file’s name.
Run a command yourselfStart the line with !Start the line with !
New line without sendingShift+EnterShift+Enter
Search earlier promptsCtrl+RCtrl+R
Dictate instead of typingAny voice-to-text tool works. See Setting up the terminal.

Instructions and memory

Claude CodeCodex
Instruction file for this folderCLAUDE.mdAGENTS.md
Instructions for every project~/.claude/CLAUDE.md~/.codex/AGENTS.md
Draft a first instruction file/init/init
Bring over the other tool’s setup/import/import
Memory between sessionsOn by default. It saves notes to reuse later. /memory shows them and turns it off.Off by default. Turn it on in Codex’s settings, and /memories controls it for each chat.

The instruction file is plain text you can read and edit. Whatever is in it shapes every session in that folder, so it’s the first place to look when an agent behaves differently than you expected.

Permissions and safety

Claude CodeCodex
How it startsAuto mode. A second model reviews each action instead of asking you. Anthropic says this does not guarantee safety.In a Git folder, it edits files in that folder and asks before anything else. In other folders it starts read-only. Network access is off.
Change the modeShift+Tab cycles through Manual (asks first), accept edits, plan, and auto./permissions switches between Auto and Read Only.
Plan before actingPlan mode, from Shift+Tab or /plan/plan
SandboxOff by default. /sandbox turns it on (Mac, Linux, and WSL 2 on Windows).On by default, on Mac, Windows, and Linux.
Undo changes/rewind, or Esc twice on an empty prompt, rolls back files and the conversation.Save Git snapshots before and after a task. /diff shows what changed.

Everyday commands

Claude CodeCodex
See all commands/helpType /
Check your usage/usage/status
Switch model/model/model
Set how hard it thinks/effort, from low to maxIn /model, from low to ultra
Free up room in a long chat/compact/compact
Start fresh/clear/new
See how full the context is/context/status
Review its changes/review/review
See connected tools/mcp/mcp

Models

Claude CodeCodex
Choices, November 2026Opus 5.5 (the default), Sonnet 5.5, Haiku 5.5, and Fable 5.1, the most capable, which costs extra on Pro.GPT-6.1 Sol (OpenAI’s suggested start), GPT-6 Astra (the most capable), GPT-6.1 Terra (fast), and GPT-6 Luna (the most efficient).

When you compare the two, use matched models and effort levels on each side.

Working at scale

Claude CodeCodex
Run one task from a scriptclaude -p "..." starts in Manual mode, so it can’t take actions you haven’t allowed in advance.codex exec "..." starts read-only and expects a Git folder.
Sub-agentsAsk for them, or define them as Markdown files in .claude/agents/Ask for them, or define them as TOML files in .codex/agents/
Skills (saved instructions for a task).claude/skills/<name>/SKILL.md, run with /name.agents/skills/<name>/SKILL.md, run with $name
Connect outside tools (MCP)claude mcp addcodex mcp add
Web searchBuilt in.On by default, from a cached index. Start with codex --search for live results.

Other places it runs

Claude CodeCodex
An app window, no terminalThe Code tab in the Claude desktop app (Mac, Windows)Codex mode in the ChatGPT desktop app (Mac, Windows, Linux)
Inside VS CodeThe Claude Code extensionThe Codex extension
In the cloudclaude.ai/code, working on a GitHub repositoryCodex Cloud, which MSU turns off for Edu seats