X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/8e8da466ded3b39188862e4b46f40220d65f316e..0821d23c64f4ffc856760e4914fa39ba2e3260e4:/README.rst?ds=inline diff --git a/README.rst b/README.rst index 362eeeb..fdcc0e0 100644 --- a/README.rst +++ b/README.rst @@ -45,6 +45,24 @@ field is an error. The model and the reasoning effort of the summaries. The defaults are ``gpt-6-luna`` and ``high``. +******* + Login +******* + +The ``chatgpt`` endpoint needs a login with a ChatGPT account: + +.. code:: console + + onechat login + +The command shows a link and a code. Open the link on any device, enter +the code, and approve the login. Device code login must be allowed in +the ChatGPT security settings. OneChat writes the tokens to +``auth.json`` in the data directory, with mode 0600, and refreshes them +before they expire. The file belongs to OneChat only. Do not share it +with the Codex CLI, because each program rotates the refresh token and +logs the other out. + ************* Development *************