Your Own URL Shortener (YOURLS) is an open source personal URL shortening application.
YOURLS will allow you to run your own URL shortening service (a la TinyURL). You can make it private or public, you can pick custom keyword URLs, it comes with its own API. You will love it.