sim icon indicating copy to clipboard operation
sim copied to clipboard

[BUG]Unable to Save API Keys as environment variable when running in local server

Open csaikarthikreddy-create opened this issue 1 month ago • 4 comments

Describe the bug When running SIM in the local environment and trying to use the Copilot for developing the workflow, we are faced with an error. Although the API key was created in the cloud SIM environment we are unable to save the API key as an enviroment variable in the settings folder. The "Save" option does not function as intended. When we move to a different option the API key saved is lost.

To Reproduce Steps to reproduce the behavior:

  1. Run the npx simstudio or use docker compose
  2. Open in the UI browser
  3. Create an API key for the copilot on the sim.ai web app.
  4. Go to settings in the local server running at localhost:3000
  5. Click on Environment->Add->Save
  6. Now move to another tab such as tools. Move back to the enviroment and the API key is missing

Expected behavior API Keys are not saving while using local server.

Screenshots After Saving the Key Image After moving to a different setting option and returning back to the environment option Image

Additional context Add any other context about the problem here.

csaikarthikreddy-create avatar Dec 20 '25 01:12 csaikarthikreddy-create

@csaikarthikreddy-create you don't have the ENCRYPTION_KEY set in your .env

waleedlatif1 avatar Dec 20 '25 03:12 waleedlatif1

Hey thanks for responding. I tried adding API keys and saving them. But they dont get added while running the server in the local. The same worked in the cloud environment.

Regards, Sai Karthik

On Fri, Dec 19, 2025 at 10:21 PM Waleed @.***> wrote:

waleedlatif1 left a comment (simstudioai/sim#2488) https://github.com/simstudioai/sim/issues/2488#issuecomment-3677319637

@csaikarthikreddy-create https://github.com/csaikarthikreddy-create you don't have the ENCRYPTION_KEY set in your .env

— Reply to this email directly, view it on GitHub https://github.com/simstudioai/sim/issues/2488#issuecomment-3677319637, or unsubscribe https://github.com/notifications/unsubscribe-auth/BW72LUCY77S63UXQYOCCMHD4CS6EDAVCNFSM6AAAAACPTAO2KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNZXGMYTSNRTG4 . You are receiving this because you were mentioned.Message ID: @.***>

csaikarthikreddy-create avatar Dec 20 '25 03:12 csaikarthikreddy-create

@csaikarthikreddy-create in the docker container thats running, you need to set ENCRYPTION_KEY set in your .env

you can see this line here: https://github.com/simstudioai/sim/blob/main/apps/sim/.env.example#L18

waleedlatif1 avatar Dec 20 '25 05:12 waleedlatif1

Ok sure I will try that . Thank you .

Regards, Sai Karthik

On Sat, 20 Dec 2025 at 12:08 AM, Waleed @.***> wrote:

waleedlatif1 left a comment (simstudioai/sim#2488) https://github.com/simstudioai/sim/issues/2488#issuecomment-3677393595

@csaikarthikreddy-create https://github.com/csaikarthikreddy-create in the docker container thats running, you need to set ENCRYPTION_KEY set in your .env

you can see this line here: https://github.com/simstudioai/sim/blob/main/apps/sim/.env.example#L18

— Reply to this email directly, view it on GitHub https://github.com/simstudioai/sim/issues/2488#issuecomment-3677393595, or unsubscribe https://github.com/notifications/unsubscribe-auth/BW72LUELHAHL4RB26SSZQJL4CTKWDAVCNFSM6AAAAACPTAO2KOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNZXGM4TGNJZGU . You are receiving this because you were mentioned.Message ID: @.***>

csaikarthikreddy-create avatar Dec 20 '25 05:12 csaikarthikreddy-create