✅ Step-by-Step Guide to Get Your API Key
-
Go to the OpenAI Platform
🔗 https://platform.openai.com -
Sign in / Sign up
-
Log in with your existing account, or
-
Create a new account using your email, Google, or Microsoft account.
-
-
Go to API Keys
-
Once logged in, click your profile icon (top-right corner) → "View API keys", or go directly to:
🔗 https://platform.openai.com/account/api-keys
-
-
Generate a New API Key
-
Click the "+ Create new secret key" button.
-
Give it a name (optional, for your reference).
-
Copy and store the key safely — you will only see it once.
5. Authenticate: Navigate to your project root in the terminal Export your OpenAI API key:
(You can get your API key from the OpenAI platform.)Bashexport OPENAI_API_KEY="YOUR_OPENAI_API_KEY"
- Run: Navigate to your project root in the terminal and type
codex
followed by your request in natural language. For example:Bashcodex "Explain this repo to me."
-
No comments:
Post a Comment