Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AI-KeysNew to Visual Studio Code? Get it now.
AI-Keys

AI-Keys

tomcodedthis

|
1,362 installs
| (0) | Free
Connect to generative AI models from varied providers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AI-Keys

A VSCode extension to use and manage generative AI from varied sources.

Keep control of your keys, usage and costs directly to the model provider.

  • Features with Examples
  • Setup
  • Requirements
  • Extension Commands
  • In-Development
  • To-Do
  • Known Issues

New Features

Chat

Chat

Hugging Face Support

  • Speech to Text (ensure you've set a automatic-speech-recognition model) facebook/wav2vec2-large-960h-lv60-self) hf /PATH/TO/AUDIO/file.mp3
  • Text (ensure you've set a text-based model) gpt2
  • Translation (ensure you've set a translation-based model) t5-base
  • Change model: hf model = gpt2

OpenAI

  • Chat (GPT-3.5-Turbo):

    • Change system role (define how it behaves)
    • Reset chat (reduce token usage) clearChat
  • Image Generation (Dalle) dalle a smiling dog

Clarifai

  • Image Recognintion:
clarifai https://samples.clarifai.com/dog2.jpeg

clar /LOCAL/FILE/PATH/image.webp

Features with Examples

  • Chat

Chat

  • Inline Search CMD/CTRL + Enter or CMD/CTRL + Alt + /
  • Specify Model (optional, unspecified uses default model): gpt tell a joke code-search-ada-code-001 write a function that adds 2 numbers
  • List Supported Models CMD/CTRL + ALT + M
  • Shorthand Arguments (multiline prompts are only supported as comments):
convert / cv
# cv javascript
# def add(x, y):
# return x + y
optimise / op
// op
// function add(x, y) {
// return x + y
// }
explain / ex
# ex
# def add(x, y):
# return x + y`
  • Input Box Search
CMD/CTRL + Shift + P

AI-Keys: Search Prompt

Setup

  • Set API Keys and default configuration CMD/CTRL + Shift + P AI-Keys: Open Settings

Provider Model Prefix Type Cost
OpenAI GPT-3.5-Turbo gpt Chat See more
GPT3 gpt3 Text
DALL·E dalle Image See more
Clarifai Any clarifai Image Recognition 1,000 Free Operations per month
clar See more
Hugging Face Any huggingface Text, Translation, Speech Recognition 30,000 Free Prompt Characters per month
hf See more
hface

Requirements

An active text editor to read and write to.

At least one API key from our supported AI sources:

OpenAI

Hugging Face

Clarifai


Extension Commands

  • aikeys.goToSettings: Open extension settings
  • aikeys.sendLinePrompt: Send prompts from inline active editor
  • aikeys.sendBoxPrompt: Send prompts from VSCode input box
  • aikeys.listModels: List all available models
  • aikeys.clearChat: Clear chat history with GPT

In-Development

Features currently being worked on:

  1. Improved chat
  2. More support for Hugging Face
  3. Storing secret API keys
  4. Support for any Clarifai model (audio, text)
  5. More configuration

To-Do

Contributions are widely encouraged, get involved to earn XP (high/mid/low prioirty)

  • Improved UX of chat window (high)
  • Write proper tests for pre-release checks (high)
  • Add vscode walkthrough (high)
  • Store secret API keys (high)
  • Export as Chrome extension (mid)
  • Export as Logic extension (mid)
  • More models/source integrations (mid)
  • More types of generation (tts, video, 3d models) (mid)
  • Stream response info (low)

Known Issues

Please raise any issues / suggestions

  • Multiline prompts not accepted if there is an indent before comment symbol
  • Some configurations require the window to be refreshed to take effect
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft