Step 1: go to the API keys perspective under the PROFILE tab
Step 2: press the plus sign to create a new API key
Step 3: input a label
Step 4: set the timeout of your API key. For no timeout input 0
Step 5(optional): you can also create keys that are restricted to specific API methods or categories of methods
Step 6: press Create