Tutorial: Setting Up AI Assistance in Visual Studio Code: Two Free Ways for Doctoral Researchers

Setting Up AI Assistance in Visual Studio Code: Two Free Ways for Doctoral Researchers

Zur deutschen Version springen

Doctoral researchers can add powerful AI coding assistance to Visual Studio Code (VS Code) completely free of charge. This guide explains two cost-free approaches, so you can choose the best fit for your needs.
(All information is current as of July 10, 2025.)

Two Ways to Use AI in VS Code Without Costs

  1. GitHub Copilot (Free Plan): Use GitHub Copilot’s built-in AI features directly in VS Code. The free plan offers a generous monthly quota for code suggestions and chat, using models like GPT-4o and Claude 3.5 Sonnet. You’ll need to create a free GitHub account first.
    Note: Copilot does not support custom or third-party AI APIs.
  2. GWDG AI Services (with Compatible Plugin): Connect to GWDG’s advanced AI models by installing a third-party VS Code extension that supports custom, OpenAI-compatible APIs. This lets you use research-focused models such as LLaMA, Codestral, and others, provided by GWDG at no cost to academic users.
Feature GitHub Copilot (Free Plan) GWDG API (with Plugin)
Cost Free Free for academics
Setup Simplicity Easy, built-in Requires extra plugin setup
Account Required Free GitHub account Academic ID via university
Custom AI Models No Yes (GWDG models)
Best For General code help Research, programming, custom models

Option 1: GitHub Copilot (Free Plan)

Step 1: Install Visual Studio Code

  1. Download VS Code from the official website.
  2. Run the installer and follow the instructions.
  3. During installation, check „Add to PATH“ for easier command-line access.
  4. Launch VS Code after installation.

Step 2: Option 1 – Set Up GitHub Copilot (Free Plan)

GitHub Copilot offers a free plan for researchers, providing AI code assistance at no cost.

Create a Free GitHub Account

  1. Go to github.com and click „Sign up“.
  2. Enter your email address, create a password, and choose a username.
  3. Verify your email address when prompted.
  4. Complete the account setup (you can skip optional steps about team collaboration).

Install and Configure GitHub Copilot

  1. Open VS Code and click the Extensions icon (⇧⌘X or Ctrl+Shift+X).
  2. Search for GitHub Copilot and click Install.
  3. Click the Copilot icon in the status bar and select „Set up Copilot.“
  4. Sign in with your newly created GitHub account.
  5. You’ll automatically get the free plan with the following features:
  • 2,000 code completions/month
  • 50 chat interactions/month
  • Access to Claude 3.5 Sonnet and GPT-4o models
  • Available in VS Code and GitHub web interface

More info: GitHub Copilot Getting Started

Important: Copilot does not allow you to use your own AI models or connect to third-party APIs such as GWDG.

Option 2 – Use GWDG AI Services with a Compatible Plugin (Free for Academics)

GWDG provides free AI services for academic users. To use GWDG’s AI models in VS Code, you must install a plugin that supports custom API endpoints.

Eligibility and Registration

  • Who can apply: Students, researchers, and affiliates of universities, colleges, and research institutes
  • Special access: Free access to OpenAI GPT-3.5 and GPT-4 for Lower Saxony public universities and Max Planck Society
  • Cost: Completely free for academic users

Step 1: Get Your Free GWDG API Access

  1. Go to academiccloud.de and log in with your university credentials.
  2. Register and access the Chat AI service at chat-ai.academiccloud.de.
  3. Request API access via the KISSKI booking form.

Available Models (All Free)

  • Meta LLaMA 3.1 (8B and 70B)
  • Mistral Large Instruct
  • Qwen 2.5 (72B)
  • Codestral 22B (for programming)
  • OpenAI GPT-3.5 and GPT-4 (for eligible institutions)

Free Usage Limits

  • 10 API requests/minute
  • 200 API requests/hour
  • 400 API requests/day
  • 3,000 API requests/month
  • Limits can be increased on request at no charge

More info: GWDG SAIA documentation

Step 2: Install Fee Plugins for GWDG API in VS Code

Option 1: CodeGPT: Chat & AI Agents

  1. Install the extension from the VS Code Marketplace (free).
  2. Open the extension settings.
  3. Select „Custom“ as the provider.
  4. Enter the GWDG API endpoint: https://chat-ai.academiccloud.de/v1/chat/completions
  5. Input your GWDG API key (from the booking form).
  6. Set the model name (e.g., „meta-llama-3.1-8b-instruct“).

Option 2: AI Code Companion

  1. Install the extension (free).
  2. Configure the API endpoint and key in settings.
  3. Select a model from GWDG’s options.

Configuration and Usage Tips

    • Set temperature for creativity level.
  • Use system prompts for your research area.
  • Adjust token limits as needed.

Best Practices for Free Usage:

  • Data privacy: GWDG does not store conversations permanently.
  • Academic integrity: Disclose AI assistance in your research.
  • Model selection: Use Codestral 22B for code, LLaMA for general research.
  • Usage monitoring: Track your API usage to stay within free limits.
  • Cost management: Both options remain free as long as you stay within usage limits.

Troubleshooting

  • GitHub account issues: Verify your email address and complete account setup.
  • API connection issues: Check your Academic ID and API key.
  • Rate limiting: Monitor your usage and request higher limits if needed (still free).
  • Model availability: See the latest documentation.

Support and Resources

Note: This tutorial was created using Perplexity.ai on July 10, 2025.
If you experience any issues or if something does not work, please let me know via the contact form.


 

 


 

Einrichten von KI-Unterstützung in Visual Studio Code: Zwei kostenlose Möglichkeiten für Promovierende

Promovierende können leistungsstarke KI-Unterstützung für das Programmieren in Visual Studio Code (VS Code) völlig kostenlos nutzen. Diese Anleitung stellt zwei kostenfreie Ansätze vor, sodass du die für deine Bedürfnisse am besten geeignete Option wählen kannst. (Alle Angaben sind aktuell zum Stand vom 10. Juli 2025.)

Zwei Möglichkeiten, KI in VS Code kostenlos zu nutzen

    1. GitHub Copilot (kostenloser Plan): Nutze die integrierten KI-Funktionen von GitHub Copilot direkt in VS Code. Der kostenlose Plan bietet ein großzügiges monatliches Kontingent für Codevorschläge und Chatfunktionen – mit Modellen wie GPT-4o und Claude 3.5 Sonnet. Du musst dafür lediglich ein kostenloses GitHub-Konto erstellen. Hinweis: Copilot unterstützt keine benutzerdefinierten oder externen KI-APIs.

php-template
Kopieren
Bearbeiten

  1. GWDG-KI-Dienste (mit kompatiblem Plugin): Verbinde dich über eine Drittanbieter-Erweiterung in VS Code mit den fortgeschrittenen KI-Modellen der GWDG. Diese Erweiterung muss benutzerdefinierte OpenAI-kompatible APIs unterstützen. So kannst du forschungsorientierte Modelle wie LLaMA, Codestral und andere nutzen – kostenfrei für akademische Nutzerinnen und Nutzer.
Funktion GitHub Copilot (kostenloser Plan) GWDG API (mit Plugin)
Kosten Kostenlos Kostenlos für akademische Nutzer
Einrichtungsaufwand Einfach, direkt integriert Zusätzliche Plugin-Einrichtung erforderlich
Benötigtes Konto Kostenloses GitHub-Konto Akademischer Zugang über Hochschule
Eigene KI-Modelle möglich Nein Ja (GWDG-Modelle)
Am besten geeignet für Allgemeine Programmierhilfe Forschung, Programmierung, spezialisierte Modelle

Option 1: GitHub Copilot (kostenloser Plan)

Schritt 1: Visual Studio Code installieren

  1. Lade VS Code von der offiziellen Website herunter.
  2. Führe das Installationsprogramm aus und folge den Anweisungen.
  3. Aktiviere während der Installation „Zu PATH hinzufügen“ für den einfachen Zugriff über die Kommandozeile.
  4. Starte VS Code nach der Installation.

Schritt 2: Option 1 – GitHub Copilot einrichten (kostenloser Plan)

GitHub Copilot bietet einen kostenlosen Plan für Forschende mit KI-gestützter Programmierhilfe.

Erstelle ein kostenloses GitHub-Konto

  1. Gehe auf github.com und klicke auf „Sign up“.
  2. Gib deine E-Mail-Adresse ein, lege ein Passwort fest und wähle einen Benutzernamen.
  3. Bestätige deine E-Mail-Adresse, wenn du dazu aufgefordert wirst.
  4. Schließe die Kontoerstellung ab (du kannst die optionalen Schritte zur Teamzusammenarbeit überspringen).

GitHub Copilot installieren und konfigurieren

  1. Öffne VS Code und klicke auf das Erweiterungs-Symbol (⇧⌘X bzw. Ctrl+Shift+X).
  2. Suche nach GitHub Copilot und klicke auf Installieren.
  3. Klicke in der Statusleiste auf das Copilot-Symbol und wähle „Copilot einrichten“.
  4. Melde dich mit deinem GitHub-Konto an.
  5. Du erhältst automatisch den kostenlosen Plan mit folgenden Funktionen:
  • 2.000 Code-Vervollständigungen pro Monat
  • 50 Chat-Interaktionen pro Monat
  • Zugriff auf Claude 3.5 Sonnet und GPT-4o
  • Nutzung in VS Code und auf GitHub im Browser

Weitere Infos:
GitHub Copilot – Erste Schritte

Wichtig: Copilot erlaubt keine Verwendung eigener KI-Modelle oder externer APIs (z. B. GWDG).

Option 2 – GWDG-KI-Dienste mit kompatiblem Plugin (kostenlos für Akademiker)

Die GWDG stellt akademischen Nutzern kostenfreie KI-Dienste zur Verfügung. Zur Nutzung in VS Code muss ein Plugin installiert werden, das benutzerdefinierte API-Endpunkte unterstützt.

Zugangsvoraussetzungen und Registrierung

  • Berechtigt: Studierende, Forschende und Mitarbeitende an Hochschulen, Universitäten und Forschungseinrichtungen
  • Sonderzugang: Kostenloser Zugang zu GPT-3.5 und GPT-4 für öffentliche Hochschulen in Niedersachsen und Institute der Max-Planck-Gesellschaft
  • Kosten: Vollständig kostenlos für akademische Nutzer

Schritt 1: GWDG-API-Zugang erhalten

  1. Besuche academiccloud.de und melde dich mit deinen Hochschulzugangsdaten an.
  2. Registriere dich und greife auf den Chat-AI-Dienst unter chat-ai.academiccloud.de zu.
  3. Fordere deinen API-Zugang über das KISSKI-Buchungsformular an.

Verfügbare Modelle (alle kostenlos)

  • Meta LLaMA 3.1 (8B und 70B)
  • Mistral Large Instruct
  • Qwen 2.5 (72B)
  • Codestral 22B (für Programmieraufgaben)
  • OpenAI GPT-3.5 und GPT-4 (für berechtigte Institutionen)

Freie Nutzungslimits

  • 10 API-Anfragen pro Minute
  • 200 API-Anfragen pro Stunde
  • 400 API-Anfragen pro Tag
  • 3.000 API-Anfragen pro Monat
  • Limits können bei Bedarf kostenlos erhöht werden

Mehr Informationen:
GWDG SAIA-Dokumentation

Schritt 2: Plugins für GWDG-API in VS Code installieren

Option 1: CodeGPT: Chat & AI Agents

  1. Erweiterung über den VS Code Marketplace installieren (kostenlos).
  2. Erweiterungseinstellungen öffnen.
  3. „Custom“ als Anbieter auswählen.
  4. Gib den GWDG-API-Endpunkt ein: https://chat-ai.academiccloud.de/v1/chat/completions
  5. Füge deinen GWDG-API-Schlüssel ein (aus dem Buchungsformular).
  6. Setze den Modellnamen (z. B. „meta-llama-3.1-8b-instruct“).

Option 2: AI Code Companion

  1. Erweiterung installieren (kostenlos).
  2. API-Endpunkt und Schlüssel in den Einstellungen konfigurieren.
  3. Ein GWDG-Modell auswählen.

Konfiguration und Anwendungstipps

  • Temperaturwert zur Steuerung der Kreativität einstellen.
  • System-Prompts passend zu deinem Forschungsgebiet setzen.
  • Token-Limits bei Bedarf anpassen.

Best Practices für kostenlose Nutzung:

  • Datenschutz: GWDG speichert Unterhaltungen nicht dauerhaft.
  • Akademische Redlichkeit: Weisen Sie in Ihrer Forschung auf KI-Unterstützung hin.
  • Modellwahl: Nutze Codestral 22B für Programmieraufgaben, LLaMA für allgemeine Forschung.
  • Nutzungsüberwachung: Behalte deinen API-Verbrauch im Blick, um Limits einzuhalten.
  • Kostenkontrolle: Beide Optionen bleiben kostenlos, solange du die Nutzungslimits nicht überschreitest.

Fehlerbehebung

  • GitHub-Konto-Probleme: Stelle sicher, dass deine E-Mail-Adresse verifiziert ist und der Account vollständig eingerichtet wurde.
  • API-Verbindungsprobleme: Prüfe deinen akademischen Zugang und API-Schlüssel.
  • Rate-Limit erreicht: Behalte den Verbrauch im Blick und fordere bei Bedarf höhere Limits an (kostenfrei).
  • Modellverfügbarkeit: Siehe die aktuelle Dokumentation.

Support und Ressourcen

Hinweis: Dieses Tutorial wurde am 10. Juli 2025 mit Perplexity.ai erstellt.
Falls Probleme auftreten oder etwas nicht funktioniert, nutze bitte das Kontaktformular.