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

Sarvam Code

sarvam

|
89 installs
| (0) | Free
Run Sarvam Code inside VS Code. Chat with the agent, review diffs, and approve actions without leaving your editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sarvam Code for VS Code

Run Sarvam Code inside VS Code. Chat with the agent, review diffs, approve actions, and resume past conversations — all without leaving your editor.

Features

  • Inline chat panel in the sidebar with streaming responses, reasoning timeline, and full Markdown rendering
  • Tool call display — collapsible cards show what the agent is doing: reading files, editing code, running commands, with inline diff previews
  • Permission prompts — approve or reject agent actions before they execute, with auto-approve modes
  • Forms and questions — when the agent needs structured input, forms render right in the chat
  • Fork & side conversations — /fork branches into a new tab; /side opens a bottom panel overlay so you can ask questions while keeping the main thread visible
  • MCP servers — connect tools from any Model Context Protocol server, local or remote, from right inside the chat
  • Composer dropdowns — switch collaboration mode and model from the input area
  • @mention files — type @ to reference workspace files as context
  • Slash commands — with autocomplete, straight from the CLI
  • Send while busy — queue messages while the agent is working
  • Session resume — pick up a previous conversation from thread history

Getting Started

  1. Install this extension
  2. Open a workspace folder in VS Code
  3. Click the Sarvam Code icon in the Activity Bar

The first run is guided. If the Sarvam Code CLI isn't installed yet, the extension offers to install it.

Then sign in — either through your browser with your Sarvam account, or with an API key. Once you're signed in, the chat is ready; the extension manages the agent process for you, so your first message is instant.

Commands

Command Description
Sarvam Code: Open Chat Focus the chat panel
Sarvam Code: New Session Start a fresh conversation
Sarvam Code: Resume Session Pick a past session and continue it
Sarvam Code: Cancel Cancel the current prompt turn
Sarvam Code: Sign In / Sign Out Manage your Sarvam session
Sarvam Code: Add Selection to Chat Send the current editor selection as context
Sarvam Code: Add File to Chat Add a file from the Explorer as context

Add Selection to Chat is bound to Ctrl+L / Cmd+L (and Ctrl+Shift+L / Cmd+Shift+L), and also works from the terminal — the selected command output is added to the chat.

MCP Servers

The agent can use tools from any Model Context Protocol server — local or remote. Click the servers button in the chat input area (or type /mcp) to manage them:

  • Local command — runs a process on your machine (e.g. npx some-mcp-server)
  • Remote URL — a streamable HTTP endpoint

The panel shows each server's discovered tools and authentication state, and new servers are picked up without restarting the agent. A warning dot on the servers button lets you know when a server failed to connect or needs sign-in.

Settings

Setting Default Description
sarvamCode.executablePath "" Path to the sarvam-code binary. Leave empty to auto-detect.
sarvamCode.autoApprove "ask" Permission handling: ask, allow-read, or allow-all.
sarvamCode.model "" Model override passed to the agent.
sarvamCode.approvalPolicy "" Approval policy for the agent.
sarvamCode.sandboxMode "workspace-write" Sandbox mode for the agent — controls what it is allowed to do.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft