CLS, a.k.a remote sloc, is a command line tool for Code Statistic of GitHub repositories through different OS platforms. The main advantage of such a tool is that it calculates by only accessing remote repositories without fetching them locally. However, to enhance accessing rate limitation as mentioned on the official site, the tool can only be used with a generated GitHub access token.
Detailed: https://github.com/aleen42/cls