Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MicrosoftAI LLM ProxyNew to Visual Studio Code? Get it now.
MicrosoftAI LLM Proxy

MicrosoftAI LLM Proxy

MAI-EngineeringSystems

|
4,532 installs
| (0) | Free
Universal LLM proxy supporting GitHub Copilot and Papyrus, and OpenAI-compatible backends.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MAI LLM Proxy Extension

Universal LLM proxy for VS Code, supporting GitHub Copilot and Azure Papyrus backends.

Enables Claude Code, Codex CLI, and other AI tools to use enterprise LLM services through a local HTTP proxy that handles authentication and API format translation (Anthropic ↔ OpenAI) transparently.

Features

  • GitHub Copilot backend — Direct API calls with OAuth device flow authentication
  • Azure Papyrus backend — Enterprise LLM access via Azure Identity
  • Format translation — Accepts both Anthropic and OpenAI request formats
  • Streaming support — Full SSE streaming with tool call argument accumulation
  • Image processing — Auto-resize, EXIF stripping, adaptive compression
  • Model routing — Friendly aliases (opus, sonnet, haiku) map to Copilot API models

Commands

Command Description
MAI-LLMProxy: Start Server Start the proxy on the configured port
MAI-LLMProxy: Stop Server Stop the running proxy
MAI-LLMProxy: Configure Claude Code Settings Write proxy URL to ~/.claude/settings.json
MAI-LLMProxy: Configure Codex Settings Write proxy config to ~/.codex/config.toml
MAI-LLMProxy: Reset GitHub Copilot Authentication Clear auth tokens and re-authenticate
MAI-LLMProxy: Check GitHub Copilot Auth Status Show token expiration time
MAI-LLMProxy: Kill Process on Configured Port Free the port if blocked

Settings

Setting Default Description
mai-llmproxy.provider copilot LLM provider: copilot or papyrus
mai-llmproxy.serverPort 5000 Port for the proxy server
mai-llmproxy.claudeAutocompactPct 60 Context autocompact threshold

Documentation

Microsoft Internal Documentation

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft