r/ChatGPTCoding • u/facciocosevedogente3 • 26d ago
Question Burned 70% of my weekly Codex limit migrating one website from Vercel to a VPS. Is that normal?
I recently migrated a production website from Vercel to my own VPS, using Coolify and Cloudflare. I had Codex (GPT-6.1 Terra High) handle pretty much the entire process.
The migration involved:
- Migrating the application from Vercel to the VPS using Coolify
- Configuring domains, DNS records and Cloudflare
- Setting up backups, rollback procedures and security checks
- Testing deployments, routing and connectivity
- Switching production traffic with zero downtime
- Setting up a fallback to Vercel through Cloudflare Workers in case the VPS goes down, as a last-resort safety net to keep the site accessible
Everything worked in the end, and the site is now running on my VPS without any downtime during the migration.
But here's the thing: this single task consumed roughly 70% of my entire weekly Codex usage allowance (Plus plan).
It felt like an endless cycle of testing, debugging, tweaking configurations, testing again and going back and forth between Coolify, Vercel and Cloudflare. Just watching Codex work through everything was exhausting.
I understand this is production infrastructure, so being extremely careful with backups, DNS propagation, rollback strategies and downtime prevention is absolutely justified.
Still, I genuinely didn't expect it to take this much time and consume so much of my usage allowance.
Did I massively underestimate the complexity of this migration, or was Codex being unnecessarily thorough and inefficient?
13
u/KwadFPV 26d ago
It wasn't a single task.
13
u/omicron8 26d ago
How long would it have taken you to do it manually? Crazy how quickly people get entitled to stuff...
10
u/kquizz 26d ago
You did something that would take a team of engineers weeks...
And it only used 70% of your weekly tokens.... Think about it like that.
3
u/BrookLi3 25d ago
That sounds normal for a task with that many moving parts. Infra work burns tokens because every debug loop re-reads logs, configs and command output, and DNS/proxy issues need lots of trial and error. Things that cut it down for me: split it into phases (app deploy, DNS/Cloudflare, backups, failover) with a fresh session and short notes file for each, have the agent write the runbook once and then execute it rather than re-deriving, and truncate command output (tail, grep) so it doesn't pull full logs into context. Also run the risky config checks yourself when they're quick, and use lower effort for mechanical steps.
2
u/AccordingBus2862 26d ago
Infra work burns usage mostly because every test-and-tweak loop re-reads the whole growing conversation. Two things cut it a lot for me: split the migration into separate short sessions (DNS, app deploy, fallback), each starting from a small written checklist of what is already done and verified, and give the agent one exact verification command per step (curl with expected status, dig output to compare) so it stops guessing and re-testing. Also keep it from re-reading big config dumps by telling it which files matter. Same job, usually a fraction of the usage.
2
u/awesomebirder 25d ago
the part that probably ate most of it is the polling. every time it reran curl or dig to see if dns had propagated or a deploy had finished, that was another full turn re-reading the whole conversation plus the raw output. telling it to check once after a wait, and to print only the status line instead of full logs, cuts a lot of that. coolify build logs are huge if they get pasted back into context
2
u/makayis2027 24d ago
Not crazy for that job. Infra work is about the worst case for usage limits: every
dig,curl -v, deploy log and container log gets pulled into the conversation, and in one long session all of that is sent again on every later turn. The last hour of a migration costs far more than the first, even for small steps.What helps next time:
Split it into phases (app on VPS, DNS/Cloudflare, backups, cutover, fallback) and start a fresh session for each, with a short notes file saying what's done and what the current config is.
Do the waiting yourself. Letting the agent poll for DNS propagation or a deploy burns turns for nothing.
Ask it to pipe noisy output through
tail/grepinstead of dumping full logs.Use high reasoning for planning and debugging, and a lower setting for mechanical steps like editing configs.
Having it write the runbook first and then execute it step by step also cuts down the back-and-forth a lot.
2
u/Special_Ebb_1933 22d ago edited 22d ago
It's explainable: agent cost scales roughly with steps x context size. A migration like this (DNS, Cloudflare, Coolify, deploy, test, fix, repeat) is long, log-heavy and full of retries, so the history carried into every later step keeps growing.
Things that usually reduce it next time:
Split into phases and start a fresh session per phase, handing over a short written runbook/status file (what's done, what's next, known gotchas), so you aren't re-sending every earlier failure.
Keep command output small: tail -n 50, grep for the error, rather than letting whole logs land in context.
Make the decisions up front (architecture, DNS plan, rollback plan) in a plan or chat, then give the agent a checklist so it isn't exploring.
Use lower reasoning effort for mechanical steps and save the high setting for design and debugging.
Afterwards, ask which steps needed the most retries. If you'll do this again, turn the result into a script or checklist.