When your Sia wallet is locked, it isn't able to perform common and important tasks. For renters, this might mean new contract formation or renewing your allowance. For hosts, it would mean downtime that affects your host scoring and the collateral you've put into contracts.
You can have your Sia wallet automatically unlock by setting up a few simple steps.
An environment variable is just a piece of information that is specific to your computer. In this case, it's your Sia wallet password, so you'll set an environment variable named
Environment variables are accessible by any program on your computer. If you still use your Sia seed to unlock your wallet instead of a custom password, you should change this before entering your Sia seed into the environment variable. Someone with access to your seed can easily steal your Siacoins and access your files. Learn how to set a custom password.
Everything we do here won't matter much if you physically need to reboot your machine after it loses power. At that point, you could just launch Sia again on your own. This setting will allow your computer to reboot automatically anytime its power is interrupted.
Windows and Linux (done through your BIOS, complete with instructions for connecting to an APC for smooth power-downs and startups)
Mac (only applicable to certain models)
Your computer needs to automatically log in to your user after it reboots. Follow these steps depending on your OS.
Now that your computer will automatically login after startup, you need to make sure that Sia will launch on its own after that happens.
Once all these steps are set, reboot your computer and verify that your account logs in, Sia starts, and your wallet unlocks automatically.