Codex with V0 unauthorized

➜ codex --provider vercel --model v0-1.0-md
╭──────────────────────────────────────────────────────────────╮
│ ● OpenAI Codex (research preview) v0.1.2505172129 │
╰──────────────────────────────────────────────────────────────╯
╭──────────────────────────────────────────────────────────────╮
│ localhost session: ebab5b0eeda841ab964424be7d48d947 │
│ ↳ workdir: ~/projects/touchway/touchway-new-front │
│ ↳ model: v0-1.0-md │
│ ↳ provider: vercel │
│ ↳ approval: suggest │
╰──────────────────────────────────────────────────────────────╯
user
do a hello world

system
⚠️  OpenAI rejected the request. Error details: Status: 401, Code: unknown, Type: unknown, Message: 401 "Unauthorized". Please verify your settings and try again.

ctrl+c to exit | “/” to see commands | enter to send — 100% context left


I’m trying to run this documentation: v0 in OpenAI Codex CLI
But it lack more detail, I already have v0 pro plan and chatgpt organization with credits, but can’t run, if I run without v0 model, it work.


The keys are on .zshrc as well:

1 Like

I have the same issue!

1 Like

fixed using

export OPENAI_API_KEY="${V0_API_KEY}"
codex
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.