# Manage Synapse Credentials¶

There are multiple ways one can login to Synapse. We recommend users to choose the method that fits their workflow.

import synapseclient


## Use .synapseConfig¶

For writing code using the Synapse Python client, that is easy to share with others, please do not include your credentials in the code. Instead, please use .synapseConfig file to manage your credentials.

When installing the Synapse Python client, the .synapseConfig is added to your home directory. Open the .synapseConfig file and find the following section:

#[authentication]
#apikey = <apikey>


To enable this section, uncomment it. You will only need to specify either username and password or username and apikey. For security purposes, we recommend that you use Synapse apikey instead of your password:

[authentication]
apikey = <apikey>


import synapseclient


## Letting the Operating System Manage Your Synapse Credentials¶

For users who would like to save their credentials and let other OS configured applications (like keychain in Mac) manage credentials for them, when logging in for the first time, use:

import synapseclient

import synapseclient