Hi @Royam0820 ,
Apologies if I am misunderstanding your question, but I am not sure if you are wanting to know:
A) Where to enter your own OpenAI key in Cursor, in order to make requests in Cursor chats with your own key
B) How to use environment variables in a coding project
C) Something else
If A:
If you have a Pro Cursor subscription, then you don’t need to use your own API key, unless you want to, but then it will be at your own cost. You can add your own keys in Cursor Settings > Models.
IF B:
I’m a bit confused where your original Python code may have come from, and why it has a function named get_cursor_settings
- perhaps you could explain the scenario a bit more?
IF C:
Perhaps you could explain the scenario a bit more?
If you need a bit more introductory information about Cursor, perhaps this post can assist: