I don't think you can. However the connection to the extension repository only happens when you open the extension manager, the rest of DokuWiki is unaffected. The connection also does a "ping" with a relatively short timeout at first, so after a few seconds the extension manager should work offline just fine.