eliza icon indicating copy to clipboard operation
eliza copied to clipboard

Log in info safe on character.json file vs .env?

Open sonatonagems opened this issue 11 months ago • 3 comments

Just a quick question about the safety of inputting our login information for social media platforms on the files. Is it safe to input them on the character.json file under "secrets", or is it better to have them in the .env?

What if you are running more than one character? Is there a way to add 2 different login info for the same platform (e.g twitter, or discord) in the .env and have them be assigned to different characters.json?

sonatonagems avatar Jan 13 '25 23:01 sonatonagems

I have same problems, I want to add Twitter accounts in the .env and assign them to different characters. now I have to solve this question by myself

user23406 avatar Jan 15 '25 02:01 user23406

I have same problems, I want to add Twitter accounts in the .env and assign them to different characters. now I have to solve this question by myself

Sure, you can add more variables for the additional characters in the .env and then reference them in the character file like so:

...
    "secrets": {
      "TWITTER_TOKEN": "${CHARACTER8_TWITTER_TOKEN}", 

ggindev avatar Jan 15 '25 02:01 ggindev

@ggindev thank you!

sonatonagems avatar Jan 15 '25 22:01 sonatonagems

@ggindev Suggested the right way to handle this. In future versions we will have a secret manager too.

AIFlowML avatar Jan 16 '25 22:01 AIFlowML