So How Do You Actually Vibe Code? Not the GPT App — Claude Code or Codex
Pasting code into a ChatGPT window isn't vibe coding. You want an agent that reads your files, runs your commands, and deploys — Claude Code or Codex, logged in over OAuth and running locally. A comparison table, setup, a real first session, approval modes, cost, and troubleshooting.
Bottom line first: pasting code into a ChatGPT window? That’s not vibe coding — it’s hand-coding with AI seasoning. The real thing is an agent that reads the files on your machine, runs commands, and deploys. Two options do it: Claude Code or Codex. Run them locally as a desktop app or an OAuth CLI.
One difference: a chat app gives you an answer; an agent does the thing. It edits files, runs clasp push, runs wrangler deploy — you just direct and review.
Side by side
| ChatGPT app/web | Claude Code | Codex | |
|---|---|---|---|
| Reads/edits your files | ❌ (copy-paste) | ✅ | ✅ |
| Runs terminal commands | ❌ | ✅ (with approval) | ✅ (with approval) |
| Deploys (clasp, wrangler) | ❌ | ✅ | ✅ |
| Login | account | Claude subscription OAuth / API key | ChatGPT subscription OAuth / API key |
| Form | web · app | CLI · desktop · web · IDE extension | CLI · desktop |
The ❌ column is exactly what “copy-paste hell” is. An agent turns the whole column into ✅.
Why the GPT app falls short
ChatGPT’s web/app can’t see your folder. So the flow becomes:
get code → paste → save → run the command → error → copy the error → paste it back and ask → more code → paste again…
That round-trip is the opposite of vibe coding. An agent sits in the same folder, edits files directly, runs commands directly, reads the error directly, and fixes it. You only say “do this” and “yes / no.”
Option 1: Claude Code (Anthropic)
npm install -g @anthropic-ai/claude-code
cd ~/my-project # the folder to work in (mkdir an empty one if needed)
claude # run
On first run, type /login and a browser opens for Claude-account OAuth. On a subscription you need no API key. The same thing exists as a desktop app (Mac/Windows), web at claude.ai/code, and VS Code / JetBrains extensions.
Handy bits:
/init— have it scan the project once to build context (do this once at the start).- An approval prompt appears before it runs a command or edits a file. Look, then
y. claude mcp add ...— attach external tools (MCP) like gws-cli → Workspace access.
Option 2: Codex (OpenAI)
npm install -g @openai/codex
cd ~/my-project
codex # run, then sign in with your ChatGPT account
There’s a desktop app too. You pick how much it can do on its own with a mode — Suggest only / auto-edit but approve commands / Full-Auto. Start in an approval mode, then loosen it as trust builds.
What a first session actually looks like
Say you start in an empty folder. After running claude (or codex):
- You: “Build an Apps Script web app in this folder. Log form submissions to a sheet and email me. Deploy it with clasp.”
- Agent: shows you it’ll write
Code.gs,index.html,.clasp.json→ you approve. - Agent: asks to run
clasp push→ approve. (First time, it has youclasp loginfirst.) - On an error, the agent reads and fixes it. (e.g. “Apps Script API not enabled” → it gives you the link to turn it on.)
- You: “Add email-format validation” → one feature at a time, small and often.
The key move: when stuck, paste the error verbatim. You don’t debug — you let the agent read and fix it.
Which one?
- Already on Claude → Claude Code. Already on ChatGPT → Codex. (Reusing a subscription is the cheapest path.)
- New to both? Either. The workflow is nearly identical. Run one for a month and keep the one that fits.
- Want it inside an IDE (VS Code)? The Claude Code extension is convenient.
Watch out
In one line
Pasting is hand-coding. Log into Claude Code or Codex over OAuth and run it locally. That’s the real thing — files, commands, deploy, all done by the agent — and reusing a Claude/ChatGPT subscription means no keys and no extra cost.
Questions?
Stuck on which to start with? Just ask. Next step — getting what you built online → Stuck on localhost — now deploy it. The full picture → Vibe Coding 101.
Frequently asked questions
- Can't I just vibe code with the ChatGPT app?
- You can get code and paste it. But the ChatGPT web/app can't read the files on your machine, run commands, or deploy. To edit files, run them, and ship automatically, you need an agent like Claude Code or Codex.
- How do I start with Claude Code and Codex?
- Claude Code: npm install -g @anthropic-ai/claude-code, then run claude in your project folder and /login for browser OAuth. Codex: npm install -g @openai/codex, then run codex and sign in with your ChatGPT account. Both also have desktop apps.
- Do I need an API key?
- No. Logging in over OAuth with a Claude or ChatGPT subscription works without an API key. With an API key it bills per call, so for heavy use a subscription is usually cheaper.
- Isn't it risky to let an agent run commands on my machine?
- By default it asks for approval before editing files or running commands. Review risky commands (rm, deploy) before allowing them. Full-auto (YOLO) is for trusted tasks only — don't use it in sensitive folders.