Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Vini OpenRouter Code TranslatorNew to Visual Studio Code? Get it now.
Vini OpenRouter Code Translator

Vini OpenRouter Code Translator

Ashwini Kumari

|
6 installs
| (1) | Free
AI code converter for file and project translation across multiple languages using OpenRouter ensemble models
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Vini OpenRouter Code Translator

Convert source code between programming languages in VS Code using a multi-model OpenRouter ensemble.

Features

  • Convert the current file or an entire project.
  • Supports JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Rust, PHP, Kotlin, Swift, Ruby, and Scala.
  • Uses multiple models and selects the best output:
    • anthropic/claude-3-haiku
    • openai/gpt-4o
    • deepseek/deepseek-v3.2
  • Cleans and validates model output before saving.
  • Keeps converted files in converted/ while preserving project structure.
  • Optional simplification pass after project conversion.

Requirements

Set your OpenRouter API key. When you first use the extension without a key, you'll see two buttons in the side panel:

  • Get API Key from OpenRouter — Opens OpenRouter to create a key
  • Paste API Key in Settings — Opens VS Code settings at the API key field

Or manually set it in VS Code settings:

  1. Open Settings.
  2. Search for Code Translator: OpenRouter API Key.
  3. Paste your OpenRouter API key.

For local development, .env is also supported in extension/workspace root:

OPENROUTER_API_KEY=your_api_key_here

Usage

  1. Open Command Palette and run Code Translator: Pick Language and Convert.
  2. Choose:
    • Current File, or
    • Whole Project
  3. Select the target language.
  4. Converted output is written to converted/.

You can also use the Code Translator side panel and click:

  • Convert File
  • Convert Project

Notes

  • Skips files in node_modules, .git, and converted.
  • Large files may be skipped in project mode for stability.
  • Output quality depends on model/API availability.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft