BoxAI - Your AI Chat Companion for VS Code
A simple extension that allows you to send the content of your current file as a prompt to powerful AI models via OpenRouter.
Features
- Send an entire file's content as a prompt to an AI model.
- Receive the AI's response directly in the same file.
- Securely stores your API key using VS Code's Secret Storage.
⚠️ Requirements
This extension requires a free API key from OpenRouter.ai. OpenRouter gives you access to a variety of AI models, including some with free tiers.
Getting Started
Follow these steps to set up and use the extension:
Step 1: Get Your OpenRouter API Key
- Go to https://openrouter.ai/ in your web browser.
- Sign up for a free account.
- Navigate to your Keys page from your account settings.
- Click "+ Create Key" and copy the new API key to your clipboard.
Step 2: Set the API Key in VS Code
- In VS Code, open the Command Palette (
Ctrl+Shift+P or Cmd+Shift+P ).
- Run the command:
File Chat: Set Open Router API Key .
- Paste the API key you copied from OpenRouter and press Enter. A success message will appear.
Step 3: Send a Prompt
- Open any file and write your prompt.
- Open the Command Palette (
Ctrl+Shift+P ).
- Run the command:
File Chat: Send Prompt .
- The AI's response will be added to the end of your file.
Commands
File Chat: Set Open Router API Key : Saves your OpenRouter API key.
File Chat: Send Prompt : Sends the content of the active file to the AI.
| |