Skip to content
| Marketplace
Sign in
Visual Studio>Tools>CodeLens2GPT
CodeLens2GPT

CodeLens2GPT

Merry Yellow

|
2,930 installs
| (6) | Free
Use OpenAI ChatGPT, Google Gemini, Anthropic Claude, DeepSeek and Ollama through the CodeLens
Download

Try my other extension, Comment2GPT!

Use OpenAI ChatGPT, Google Gemini, Anthropic Claude, DeepSeek and Ollama through the CodeLens.

Tell

ezgif.com-optimize__8_.gif

Edit

ezgif.com-optimize__9_.gif

Additional Features:

  • Proxy support: Can access to LLMs via proxy. Supports all LLM platforms except Google Gemini and Vertex AI
  • Web/cloud services: Can use web and cloud services which have OpenAI API compatibility; such as OpenRouter, Open WebUI, LiteLLM etc.

Requirements (OpenAI ChatGPT): You need an OpenAI account and provide it's API key to this extension https://platform.openai.com/account/api-keys

Provide key by one of the below

  • Create an environment variable called OPENAI_API_KEY with the API key
  • Create a file with name .openai under user profile directory with the API key
  • Set API key in options, Tools->Options->CodeLens2GPT->Authentication

Requirements (Google Gemini): You need a Google account and provide it's API key to this extension https://ai.google.dev/gemini-api/docs/api-key

Provide key by one of the below

  • Create an environment variable called GOOGLE_API_KEY with the API key
  • Create a file with name .gemini under user profile directory with the API key
  • Set API key in options, Tools->Options->CodeLens2GPT->Authentication

Requirements (Anthropic Claude): You need an Anthropic account and provide it's API key to this extension https://console.anthropic.com/settings/keys

Provide key by one of the below

  • Create an environment variable called ANTHROPIC_API_KEY with the API key
  • Create a file with name .anthropic under user profile directory with the API key
  • Set API key in options, Tools->Options->CodeLens2GPT->Authentication

Requirements (DeepSeek): You need a DeepSeek account and provide it's API key to this extension https://platform.deepseek.com/api_keys

Provide key by one of the below

  • Create an environment variable called DEEPSEEK_API_KEY with the API key
  • Create a file with name .deepseek under user profile directory with the API key
  • Set API key in options, Tools->Options->CodeLens2GPT->Authentication

Pricing: This extension is free to use, but you may need to pay for OpenAI, Google AI, Anthropic or DeepSeek services

  • https://openai.com/pricing
  • https://ai.google.dev/pricing
  • https://www.anthropic.com/pricing#anthropic-api
  • https://api-docs.deepseek.com/quick_start/pricing

Bug/error report & suggestions: Either use e-mail or Q&A here

Notice: This extension may collect telemetry data about your use of the software for error tracking and usage metrics. Data is anonymous and telemetry can be disabled in the options if you have privacy concerns.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft