The .sagews files are worksheets. So, if you click on it, it should open in the worksheet environment. If you want to run from the command line or use the load command, you can list commands in a .sage file and then use the load command in Sage to run the .sage file.