You can create an application at https://dev.twitter.com/apps
Once you create an application, you can use OAuth to negotiate an access token for long-term use. Or, you can use a convenience feature in the same app management interface that will allow you to self-generate an access token for further use.