Update guidance on API key permissions (#3112)
Fixes https://github.com/openai/codex/issues/3108
This commit is contained in:
@@ -8,6 +8,8 @@ If you prefer to pay-as-you-go, you can still authenticate with your OpenAI API
|
|||||||
export OPENAI_API_KEY="your-api-key-here"
|
export OPENAI_API_KEY="your-api-key-here"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
This key must, at minimum, have write access to the Responses API.
|
||||||
|
|
||||||
## Migrating to ChatGPT login from API key
|
## Migrating to ChatGPT login from API key
|
||||||
|
|
||||||
If you've used the Codex CLI before with usage-based billing via an API key and want to switch to using your ChatGPT plan, follow these steps:
|
If you've used the Codex CLI before with usage-based billing via an API key and want to switch to using your ChatGPT plan, follow these steps:
|
||||||
@@ -85,4 +87,4 @@ If you run Codex on a remote machine (VPS/server) without a local browser, the l
|
|||||||
ssh -L 1455:localhost:1455 <user>@<remote-host>
|
ssh -L 1455:localhost:1455 <user>@<remote-host>
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, in that SSH session, run `codex` and select "Sign in with ChatGPT". When prompted, open the printed URL (it will be `http://localhost:1455/...`) in your local browser. The traffic will be tunneled to the remote server.
|
Then, in that SSH session, run `codex` and select "Sign in with ChatGPT". When prompted, open the printed URL (it will be `http://localhost:1455/...`) in your local browser. The traffic will be tunneled to the remote server.
|
||||||
|
|||||||
Reference in New Issue
Block a user