Skip to content

lsoft/FreeAIr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeAIr

Эта страница на русском языке

Access to AI for free for anyone.

logo

FreeAIr is a Visual Studio extension which allows you to interact with any LLM which have OpenAI-compatible API. Even with local LLM! No artificial | political barrier injected in FreeAIr code.

Download VSIX

QA

Q: Wait, another one?!

A: Yes, yet another LLM VSIX :)

Q: Why? There is a fantastic Copilot!

A: Because Copilot is a subject of politics. Today you are enjoying Copilot, tomorrow your country has been banned from it. FreeAIr is not a political subject and provides no artificial barriers.

Q1: I have NO access to any LLM in Internet via public API.

Q2: I have NO rights to use any remote LLM because of license of the code I'm writing.

A: No problem! You can use local LLM, for example via KoboldCpp. Local LLM sends nothing to remote servers. See details below.

Features

Main functions:

  • Searching with natural language
  • Explain the code
    • selected piece of the code
    • whole file
  • Comment the code
    • selected piece of the code
    • whole file
  • Optimize the code
  • Continue writing code according to the comments
  • Chat
  • Composing commit message
  • Whole line completion
  • Generate unit tests
  • Fix build errors
  • Support for MCP servers and its tools.
  • A Visual Studio MCP server is built into FreeAIr.

Searching with natural language:

Natural0

Natural1

Context menu:

Context Menu

Chat window:

Chat window

Composing commit message:

Composing commit message

Whole file commands:

Whole file commands

Also, FreeAIr actions available via codelens:

Code lens

Whole line completion:

Put cursor in the place of your source code where you need an autocompletion and press Alt+A:

Whole line completion

Fix build error:

Fix build error

Main menu:

Main Menu

Options:

Options Page 1

Options Page 2

OpenRouter.ai choose model window:

OpenRouter Model

MCP servers:

MCP servers

How I can access to AI if my country is banned from Copilot and from any other LLM provider?

This is possible. If you are banned only from Copilot:

  1. Install this VSIX into your Visual Studio. You will need to have Visual Studio 2022 v.17.14 at least.
  2. Register on openrouter.ai. This is easily can be done via github.com account. Also, you can obtain access to any LLM with OpenAI compatible API. FreeAIr itself does not include any LLM.
  3. Choose any free model at openrouter.ai and create an access token.
  4. Put your token into options page (see screenshot above).
  5. That's all, enjoy! But remember: for a free LLM openrouter.ai has daily limits (50 prompts per day, if I remember correctly).

FreeAIr itself has no restrictions, you are able to switch another OpenAI compatible API.

If you are banned from any remote LLM then run LLM locally, which is very easy, for example with KoboldCpp: run KoboldCpp, choose the model, wait for KoboldCpp starts (it opens browser), and then use correct OpenAI compatible endpoint like http://localhost:5001/v1.

Thanks

  • openrouter.ai for free access.
  • CCodeAI for inspiration.
  • L.AI for inspiration.
  • KoboldCpp for testing without daily limits.
  • to you, visitor. Thanks for reading this. If you are enjoying it please consider give it a ★ in the github repo and ★★★★★ rating on the Visual Studio Marketplace.

About

Access to AI for free for anyone inside your Visual Studio. This is a Visual Studio extension.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published