Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>BoxAINew to Visual Studio Code? Get it now.
BoxAI

BoxAI

Krishan Singh Gunjyal

|
4 installs
| (0) | Free
A AI File Chat
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Go to https://openrouter.ai/ in your web browser.
  2. Sign up for a free account.
  3. Navigate to your Keys page from your account settings.
  4. Click "+ Create Key" and copy the new API key to your clipboard.

Step 2: Set the API Key in VS Code

  1. In VS Code, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P).
  2. Run the command: File Chat: Set Open Router API Key.
  3. Paste the API key you copied from OpenRouter and press Enter. A success message will appear.

Step 3: Send a Prompt

  1. Open any file and write your prompt.
  2. Open the Command Palette (Ctrl+Shift+P).
  3. Run the command: File Chat: Send Prompt.
  4. 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.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft