Open the OpenAI Configuration
Go to Integrations
Navigate to app.atcyrus.com/settings/integrations.
Open the configuration modal
Find the OpenAI tile, click the dropdown on the right side of the tile, and select Configure.
API Key Setup
Sign in to OpenAI
Go to platform.openai.com and sign in with your OpenAI account. If you don’t have one, create a free account first.
Open the API Keys page
Navigate to API keys in the left sidebar, or go directly to platform.openai.com/api-keys.
Create a new key
Click Create new secret key. Give it a descriptive name like
cyrus so you can identify it later.Copy the key
Your new key will be displayed once. Copy it immediately and store it somewhere safe — you won’t be able to see it again.
Add Billing
OpenAI API keys require a billing method to work. If you haven’t already:- Go to platform.openai.com/settings/organization/billing
- Add a payment method
- Optionally set a usage limit to control costs
ChatGPT/Codex Subscription Setup
If you have an active ChatGPT or Codex subscription, you can use that instead of a separate API key. The setup differs depending on whether you use a self-hosted or cloud-hosted runtime.OpenAI’s Terms of Service are friendly towards this type of usage — using your subscription with tools like Cyrus is permitted.
Self-Hosted Runtime
When running on a self-hosted runtime, you need to authenticate Codex manually on the device:- SSH into (or open a terminal on) the machine where Cyrus runs
- Switch to the same user account that the
cyruscommand-line process runs under - Run:
- Follow the prompts to sign in with your OpenAI account
- Back in the Cyrus OpenAI configuration modal (with the ChatGPT/Codex Sub tab selected), click I have authenticated to let Cyrus know you’ve completed the login
Cyrus doesn’t verify the authentication itself — clicking “I have authenticated” simply enables the provider. Make sure
codex login completed successfully before confirming.Cloud-Hosted Runtime
When running on a cloud-hosted runtime, you’ll complete a device authorization flow through the Cyrus UI:Enable device code authorization on OpenAI
Before starting, make sure device code auth is enabled on your OpenAI account. Go to chatgpt.com/#settings/Security, scroll to the bottom, and toggle on Enable device code authorization for Codex.

Start the flow in Cyrus
In the Cyrus OpenAI configuration modal (with the ChatGPT/Codex Sub tab selected), click Authenticate Codex.
Authorize on OpenAI
Click Open authentication page — this will launch OpenAI’s device authorization page. Paste the code when prompted.If you haven’t enabled device code authorization yet, you may see a link to enable it. Follow that link first (or use the direct link from Step 1), then return and complete the authorization.
Troubleshooting
“Invalid API key” error- Double-check you copied the full key (it starts with
sk-) - Make sure the key hasn’t been revoked in the OpenAI dashboard
- Verify you have billing set up at platform.openai.com/settings/organization/billing
- Check that you haven’t exceeded your usage limit
- Ensure you’ve enabled device code auth at chatgpt.com/#settings/Security
- Try generating a new code — device codes expire after a few minutes
Next Steps
To make OpenAI the provider Cyrus uses for every issue, see Default Model Provider.
Cyrus Community
Get support on Discord

