I run into this problem and my solution has been to block distracting sites. This gets me 90% of the value of being offline without taking required APIs offline.
I wrote this to help: https://github.com/bradjasper/focus
Re:To code quickly, you must quit coding
by thibaut_barrere on Saturday November 13, 2010 @04:00AM
(#1900604)
I was talking about the documentation - but for APIs, I create mocks.
For instance my work last week relies on an API that requires a VPN connection AND a windows machine.
I tested and mocked the API on windows, and now work offline, without the VPN nor Windows.
When you say you "download/clone", are you talking about just the docs, or do you actually clone the API locally?
For example, create a local, mock Twitter OAuth API so that you can program against the Twitter API without being online.
I'm genuinely curious. I like the idea of going offline, but it seems like it's not worth the effort if you're working on applications that are codependent on network APIs.