Codexauth

How to Reset Your Codex Sign-in

Codex is using the wrong account, or sign-in stopped working? How to sign out, sign in again and check which account Codex uses.

2 min read Updated Applies to Codex

What is going on

Codex remembers who you are after the first sign-in. That is convenient until you switch accounts or plans, your session ends, or a sign-in attempt fails halfway and leaves things in a confusing state. Codex then asks you to sign in again, keeps using the wrong account, or fails every time.

Error messages you might see

Not signed in
Please sign in again
Authentication required
Sign-in could not be completed

Common causes

  1. You signed in with a personal account and need a work one, or the other way round.
  2. Your session ended or your plan or workspace changed.
  3. An earlier sign-in attempt failed halfway and left damaged data behind.
  4. Several Codex apps on one computer (terminal, editor extension, desktop app) are not sharing the same state.

How to fix it

  1. Run codex logout to sign out.
  2. Run codex login and sign in with the account you want.
  3. Run codex login status to check which account Codex is using.
  4. Quit and reopen the editor or desktop app so it picks up the new sign-in.
  5. Last resort: Codex keeps its settings and saved sign-in in a .codex folder in your home folder. Rename the folder instead of deleting it, so you can put your settings back, and sign in again.

If signing in fails with a network error, see the guide on the token_exchange_failed error.

Getting help takes about a minute

No hiring, no back and forth. A real person looks at your app.

  1. 1

    Describe it

    Tell us what you need in plain words. You don't have to be technical or have an account to start.

  2. 2

    Free 15-minute call

    A verified developer calls you. Many tasks are sorted right there, and it costs nothing.

  3. 3

    Pay after you approve

    If there is more to do, you get one fixed price up front. You pay only once you are happy.

Get help

Real people, reviewed by hand

Developers who do this every day

Every developer is approved by our team before they can take a task. Describe yours and the first one who is free picks it up.

Get help
Richard McSorley Richard McSorley typescript · react · nextjs · angular · nodejs · python · tailwind · aws · azure · docker · kubernetes · postgresql · mongodb · langchain · openai · cicd · ionic · cordova Full-Stack Software Engineer with 8+ years building high-performance applications for enterprise clients. Shipped production systems at Walmart (4,000+ stores), Cigna (20M+ users), and Arkansas Blue Cross. 5 patents in retail/supply chain tech. Currently focused on AI integrations, automation tools, and TypeScript-first architectures. Antriksh Narang Antriksh Narang react · nextjs · postgres · tailwind · javascript · node · typescript · python 5 years+ Experienced Dev (Specially in Web Development), can help in python, javascript, react, next.js and full stack web dev technologies. Jacek Rozanski Jacek Rozanski react · nextjs · supabase · typescript · tailwind · php · symfony · postgresql · mysql · docker · aws · node.js · stripe · api integrations · ci/cd · devops Senior PHP/Symfony developer and DevOps engineer with 20+ years of professional experience, running opcode.pl (web development agency, est. 2004). Day job: I'm the sole backend developer at merketing company where I own and maintain 11 PHP/Symfony microservices on AWS (ECS Fargate, RDS, S3, CloudFront), handle the full CI/CD pipeline (Bitbucket Pipelines, Docker), and manage monitoring with Sentry and CloudWatch. These services handle high request volumes in production every month. What I bring to AI-built apps: - I audit and fix security issues (OWASP methodology), performance bottlenecks, and architectural problems in codebases generated by Cursor, Claude Code, Lovable, Bolt, and v0 - I refactor AI-generated prototypes into production-grade applications with proper error handling, testing, and clean architecture (SOLID, DDD, hexagonal architecture) - I set up the infrastructure AI tools don't touch: AWS hosting, CI/CD pipelines, automated deployments, database optimization, monitoring, and alerting - I integrate external services: payment providers, email systems, partner APIs, SSO/auth Tech stack: PHP 8.x, Symfony, React, Next.js, PostgreSQL, MySQL, Docker, AWS (ECS, RDS, S3, SQS/SNS, CloudFront), Terraform, Supabase. I also use AI tools daily (Claude Code, Cursor) in my own workflow, so I understand both the strengths and the gaps in AI-generated code. Based in Poland (CET timezone). Available for async work and calls during EU/US business hours.

Questions

Will signing out delete my projects?

No. Your code is in your own folders and repositories. Signing out only removes the saved sign-in.

How do I see which account Codex is using?

Run codex login status in a terminal.

Keep reading

Can't fix it yourself?
Real developers can help.

Get help