Build and Earn! Check out the bounties!

💻VS Code Helper Extension

An integrated development environment for running AI workloads on the Lilypad Network directly within Visual Studio Code.

The Lilypad VS Code Extension allows developers to interact with the Lilypad Anura API within Visual Studio Code. By highlighting code blocks, users can query the available LLMs on Lilypad for explanations, improvements, or suggestions, receiving responses in a formatted webview panel.

VS Code extension in action

Features

  • AI-Powered Code Assistance – Select any code in your editor, choose an AI model, and ask Lilypad questions about it

  • Formatted Responses – View AI-generated insights in a structured webview panel

  • Secure API Configuration – Store your Lilypad API token securely

  • Context Menu Integration – Quickly access the extension’s features via the right-click menu

Installation

From the Repository

  1. Clone the repo: git clone [email protected]:PBillingsby/lilypad-vscode-extension.git

  2. Install the extension in VS Code: code --install-extension lilypad-vscode-extension.vsix

  3. Add Anura API key to .env: LILYPAD_API_TOKEN=<ANURA_API_KEY>

  4. If you make changes to the extension and need to recompile it:

    1. Recompile the code: npm run compile

    2. Repackage the extension: vsce package

    3. Reinstall the updated .vsix file: code --install-extension lilypad-vscode-extension.vsix

Usage

  1. Select a block of code in your editor.

  2. Right-click and select "Ask Lilypad about this code", or:

    • Open the Command Palette (Ctrl+Shift+P) and select "Ask Lilypad about this code".

  3. Choose an AI model to process the query.

  4. Enter your question related to the selected code.

  5. Wait for Lilypad AI to process your query.

  6. View the AI’s response in the webview panel that opens.

Example use

Resources

Last updated

Was this helpful?