Great question! We are using OpenAI, haven't tried using local models. Our primary focus is to build the best product experience with the most comprehensive analysis. So, we are using the best in class models for programming.
To keep the costs in check we use some local tricks, like not triggering analysis if the code is malformed or only whitespace characters since last analysis. Also, we break apart large files into logical parts like functions so as to not analyze the entire file unnecessarily. We also have local throttling to limit the analysis to something like once per 10 second per file. On top of that we have some limits on the server side.