Locked learning resources

You must own this product to watch this lesson.

Locked learning resources

You must own this product to watch this lesson.

Log In With Codex

Above you can see a lesson from our Use Codex CLI to Enhance Your Python Projects video course by Rodrigo Girão Serrão.

Watch the video above and follow along as Rodrigo sets up Codex for the first time. You can ignore the instructions mentioning rpcontacts towards the end.

The most important step for you is to authenticate Codex by logging in. On the first run, Codex will prompt you to sign in. You have two options:

  • Sign in with ChatGPT (recommended): choose Sign in with ChatGPT in the prompt and complete the sign-in in your browser. If you’re not inside Codex, you can also run codex login in your terminal. This works with ChatGPT Plus or higher (Plus, Pro, Business, Edu, or Enterprise).
  • Use an OpenAI API key: Codex reads the key from standard input, so pipe it in. For example, if your key is stored in the OPENAI_API_KEY environment variable, run printenv OPENAI_API_KEY | codex login --with-api-key on macOS and Linux, or $env:OPENAI_API_KEY | codex login --with-api-key in Windows PowerShell.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

You must own this product to join the conversation.