# Visual editor demanding openAI key when running agents

**URL:** <https://community.crewai.com/t/visual-editor-demanding-openai-key-when-running-agents/7290>\
**Category:** CrewAI Community Support\
**Created:** [January 15, 2026, 2:23am UTC](https://community.crewai.com/t/visual-editor-demanding-openai-key-when-running-agents/7290 "2026-01-15T02:23:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/brian_s/32/4790_2.png) [@Brian\_S](https://community.crewai.com/u/Brian_S)\
**Post date:** [January 15, 2026, 2:23am UTC](https://community.crewai.com/t/visual-editor-demanding-openai-key-when-running-agents/7290/1 "2026-01-15T02:23:44Z")

</div>

No matter how I set my variables, it keeps wanting to use an OPENAI\_API\_KEY, throwing the same error. Seems like it’s missing the VIRTUAL\_ENV location somehow, so is defaulting to something else which doesn’t have the variables set? I don’t see where to set these things in the web UI at all.

Subprocess execution failed: Subprocess failed with return code 1.  
STDERR: warning: `VIRTUAL_ENV=/data/internal/venv` does not match the project environment path `/shared_venv` and will be ignored; use `--active` to target the active environment instead  
Building reasoning-swarm-with-persistent-memory @ file:///tmp/crewai\_gmj6zrys  
Built reasoning-swarm-with-persistent-memory @ file:///tmp/crewai\_gmj6zrys  
Uninstalled 1 package in 0.22ms  
Installed 1 package in 1ms  
Error during execution: Error importing native provider: OPENAI\_API\_KEY is required  
Traceback (most recent call last):  
File “/shared\_venv/lib/python3.12/site-packages/crewai/llm.py”, line 404, in **new**  
native\_class(model=model\_string, provider=provider, \*\*kwargs\_copy),  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/shared\_venv/lib/python3.12/site-packages/crewai/llms/providers/openai/completion.py”, line 97, in **init**  
client\_config = self.\_get\_client\_params()  
^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/shared\_venv/lib/python3.12/site-packages/crewai/llms/providers/openai/completion.py”, line 134, in \_get\_client\_params  
raise ValueError(“OPENAI\_API\_KEY is required”)  
ValueError: OPENAI\_API\_KEY is required

The above exception was the direct cause of the following exception:

Traceback (most recent call last):  
File “/automation/src/crewai\_studio\_runner/subprocess/launcher.py”, line 324, in main  
execute\_crew(args.module\_name, args.class\_name, inputs)  
File “/automation/src/crewai\_studio\_runner/subprocess/launcher.py”, line 236, in execute\_crew  
crew = crew\_class().crew()  
^^^^^^^^^^^^^^^^^^^  
File “/shared\_venv/lib/python3.12/site-packages/crewai/project/utils.py”, line 70, in wrapper  
result = meth(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^  
File “/shared\_venv/lib/python3.12/site-packages/crewai/project/annotations.py”, line 237, in wrapper  
crew\_instance: Crew = \_call\_method(meth, self, \*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/shared\_venv/lib/python3.12/site-packages/crewai/project/annotations.py”, line 163, in \_call\_method  
result = method(\*args, \*\*kwargs)  
^^^^^^^^^^^^^^^^^^^^^^^  
File “/tmp/crewai\_gmj6zrys/src/reasoning\_swarm\_with\_persistent\_memory/crew.py”, line 201, in crew  
chat\_llm=LLM(model=“openai/gpt-4o-mini”),  
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  
File “/shared\_venv/lib/python3.12/site-packages/crewai/llm.py”, line 409, in **new**  
raise ImportError(f"Error importing native provider: {e}") from e  
ImportError: Error importing native provider: OPENAI\_API\_KEY is required

 ![image](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/2X/5/55f74f8ba7d75f06b19ed5351056b255f48f828b.png)

---

<div class="post-metadata">

**Author:** ![Brian\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/brian_s/32/4790_2.png) [@Brian\_S](https://community.crewai.com/u/Brian_S)\
**Post date:** [January 15, 2026, 2:45am UTC](https://community.crewai.com/t/visual-editor-demanding-openai-key-when-running-agents/7290/2 "2026-01-15T02:45:38Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/2X/0/05b6c9e239abaa4d763fdf3e20be786f85779927.png)

---

<div class="post-metadata">

**Author:** ![Brian\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/brian_s/32/4790_2.png) [@Brian\_S](https://community.crewai.com/u/Brian_S)\
**Post date:** [January 15, 2026, 2:46am UTC](https://community.crewai.com/t/visual-editor-demanding-openai-key-when-running-agents/7290/3 "2026-01-15T02:46:09Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/crewai/original/2X/9/9c20de9d8a75c0894fed241ad28805cd9e60c419.png)

---

<div class="post-metadata">

**Author:** ![Tony\_Wood](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/tony_wood/32/1876_2.png) [@Tony\_Wood](https://community.crewai.com/u/Tony_Wood)\
**Post date:** [January 21, 2026, 8:09am UTC](https://community.crewai.com/t/visual-editor-demanding-openai-key-when-running-agents/7290/4 "2026-01-21T08:09:02Z")

</div>

Hi. Please ask the [crewai.com](http://crewai.com) website for this issue as it is a supported platform. This community is for opensource issues. But people will try to help where they can
