Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>AL AI SageNew to Visual Studio Code? Get it now.
AL AI Sage

AL AI Sage

Mario Longo

|
250 installs
| (0) | Free
Use AI to review and analyze AL code for Business Central development
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AL AI Sage

A Visual Studio Code extension for Microsoft Dynamics 365 Business Central AL developers that provides AI-powered code reviews and explanations.

Features

  • Code Review: Analyzes AL code for bugs, performance issues, and Business Central best practices
  • Code Description: Explains AL code functionality with examples and Business Central concepts
  • Custom Questions: Add @alai: comments in code for specific AI analysis
  • Multi-AI Support: Compatible with OpenAI, Google Gemini, and Anthropic
  • Multi-Language: Responses available in multiple languages

Configuration

Initial Setup

  1. Open Command Palette (Ctrl+Shift+P)
  2. Run: AL AI Sage: Configure
  3. Configure the following settings:

AI Provider Settings

  • LLM Family: Choose between OpenAI, Google Gemini, or Anthropic
  • Model Name: Enter the specific model (see supported models below)
  • API Key: Enter your API key for the selected provider

Supported Models

The extension supports all models available through the providers' APIs. For current model availability and names, refer to:

  • OpenAI: Platform Documentation
  • Google Gemini: AI Documentation
  • Anthropic: Model Documentation

Language Settings

  • Response Language: Set preferred language (english, italian, spanish, french, german, portuguese, chinese, japanese)

API Key Setup

OpenAI

  1. Visit OpenAI Platform
  2. Create account and generate API key
  3. Add key in extension configuration

Google Gemini

  1. Visit Google AI Studio
  2. Sign in and create API key
  3. Add key in extension configuration

Anthropic

  1. Visit Anthropic Console
  2. Create account and generate API key
  3. Add key in extension configuration

Usage

Code Review

  1. Select AL code or place cursor in file
  2. Command Palette → AL AI Sage: Review Code
  3. View results in side panel

Code Description

  1. Select AL code
  2. Command Palette → AL AI Sage: Describe Code
  3. View explanation in side panel

Custom Questions

Add comments in your code:

//@alai: How can I optimize this for better performance?
procedure MyProcedure()
begin
    // your code here
end;

Insert questions:

  • Command Palette → AL AI Sage: Insert Question
  • Type @ and select autocomplete suggestion

Commands

Command Description
AL AI Sage: Configure Open configuration panel
AL AI Sage: Review Code Analyze selected AL code
AL AI Sage: Describe Code Explain selected AL code
AL AI Sage: Insert Question Insert @alai comment

Troubleshooting

API Key Issues

  • Verify API key is correct in configuration
  • Check API quota/credits with provider

Connection Issues

  • Verify internet connection
  • Try different model or provider

No Response

  • Check VS Code Output panel for errors
  • Verify selected code is valid AL syntax

Requirements

  • Visual Studio Code 1.74.0+
  • AL Language Extension
  • Internet connection
  • API key for at least one AI provider

Privacy

  • API keys stored securely in VS Code
  • Code sent to selected AI provider for analysis
  • No local data retention by extension
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft