You absolutely need to let models access the Internet if you want consistently good results. Pretty much any non-trivial task requires the model to do things like look up APIs, code examples, or existing discussions of a given topic.
Reading the actual code is also always a better source of truth than docs anyway (this is true for people and LLMs). Just clone whatever libraries you use.