Sign in with ChatGPT
sign_inAuthenticate the image server with your ChatGPT account to enable image generation. Returns a browser link or device code to complete sign-in in the background.
Instructions
Start signing this image server in to the user's ChatGPT account (required once before generating, unless an existing Codex/opencode ChatGPT sign-in is detected). Returns a link (browser method) or a code (device method) that the USER must open or enter — relay it verbatim. Sign-in completes in the background; afterwards call auth_status to confirm.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sign_in"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Start a new sign-in even if already signed in (e.g. to switch accounts). Default false. | |
| method | No | "browser" (default): the user opens a link on THIS machine (redirects to localhost:1455). "device": the user enters a code at auth.openai.com/codex/device from any device — use for remote/headless machines. | browser |
| open_browser | No | Try to open the link in the local browser automatically (browser method; default true). |