Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Sovereign Agent — Local AI & Ollama Coding AssistantNew to Visual Studio Code? Get it now.
Sovereign Agent — Local AI & Ollama Coding Assistant

Sovereign Agent — Local AI & Ollama Coding Assistant

Sovereign Agent

|
38 installs
| (1) | Free
Privacy-first VS Code coding agent for local AI models (Ollama, LM Studio, llama.cpp, LocalAI, vLLM, Jan, GPT4All). Craft-Anything source extractor, Graphify architecture studio, Auto-TDD, Live Web Preview, 1:1 PDF export, 16 languages, zero telemetry.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sovereign Agent — 100% Local AI & Ollama Coding Agent for VS Code

Read in another language: English | Türkçe | Deutsch | Español | Français | Azərbaycan | Русский | 中文

Install in VS Code VS Code Marketplace Installs Rate 5 Stars GitHub Stars Tests Privacy: 100% Local Languages: 16

Install in VS Code | Leave a Review on Marketplace | Star on GitHub

Sovereign Agent is a privacy-first, autonomous VS Code coding agent built specifically for local AI models. It supports Ollama, LM Studio, llama.cpp, LocalAI, vLLM, Jan, GPT4All, and any OpenAI-compatible local server — delivering full agentic coding, Craft-Anything source code extraction and rebuilding, Graphify interactive architecture visualization, Auto-TDD verification loops, Live Web Preview, and 1:1 Visual PDF Chat Exports with zero cloud dependencies and zero telemetry.

Sovereign Agent Showcase


Interface & Feature Walkthrough

Main Workspace & Composer

The primary view provides quick-start action chips (Graphify, Craft Anything, Benchmark, Auto-TDD, /help, Code, Learn, Write, Debug, Plan), a Chat/Agent mode switch, and a live local model selector.

Main Workspace and Composer

Composer Action Menu (+)

Clicking + opens the action menu to attach files or images, add project context, run Skills, switch UI language, open settings, toggle Web Search, launch Graphify or Craft Anything, and export the conversation.

Composer Action Menu

Local Model Selector

Switch instantly between locally served models from Ollama, LM Studio, llama.cpp, vLLM, LocalAI, Jan, or GPT4All with live search filtering.

Local Model Selector

Multi-Session Chat & Git History

Browse and restore past conversations (Chats tab) or inspect recent workspace commits (Git Commits tab) directly inside the side panel.

Chat and Git History Drawer

Approval & Auto-Approve Controls

Review and control write/command approval behavior so no file modification or terminal command runs without your consent.

Approval Controls

Support & Feedback Panel

Send feedback directly to the maintainers, copy the support address, or leave a rating on the VS Code Marketplace and GitHub.

Support and Feedback Modal

Extension Settings (settings.json / VS Code Settings UI)

Configure local-only network privacy (allowLanHosts), server baseUrl, contextLength, enableNetworkDiscovery, language, maxIterations, mcpServers, provider, approval gates, temperature, and userName.

Settings - Network and Context

Settings - Discovery and Language

Settings - MCP and Approval Gates

Settings - Temperature and User Name


Why Sovereign Agent?

Capability Sovereign Agent Cloud AI Assistants Typical Local Plugins
Hard-Blocked Cloud & Telemetry (localGuard) Enforced at network layer Sends code to cloud Soft config / telemetry
Autonomous File Read, Surgical Edit & Terminal With approval gates Yes Limited
Craft-Anything Deep Source Code Extractor HTML/CSS/JS/SourceMap/TSX No No
Graphify Interactive Architecture Studio Star, Diagram & Hierarchy No No
Autonomous Test-Driven Development (/tdd) Auto-detects & self-heals Partial No
Built-in Live Web Preview & UI Automation DOM inspect, click & type External No
1:1 Visual PDF Chat Export Pixel-perfect dark UI PDF No No
Anti-Hallucination & Atomic Multi-File Undo Deterministic AST checks Varies No
Hardware Speed & Coding Benchmark (/benchmark) Tok/s + 5-Stage Coding Test No No
LAN Peer-to-Peer Model Discovery (mDNS) Built-in team sharing No No
Native Localization 16 World Languages Mostly English English only

Core Capabilities

1. Strict Local-Only Privacy (localGuard)

Every outgoing request is verified by a deterministic network guard (127.0.0.1, localhost, ::1, and optional opt-in private LAN subnets 192.168.x.x / 10.x.x.x), with HTTP redirects blocked (redirect: 'error'). Public internet endpoints are hard-blocked in code. Your proprietary codebase never leaves your machine.

2. Craft-Anything Deep Source Code Extractor & Rebuilder (/craft)

Powered by the integrated Craft-Anything engine (Extract -> Study -> Build -> Check -> Refine):

  • Physical Source Code Extraction (.craft/extracted/<target>/): Extracts formatted index.html, downloads external and inline CSS stylesheets (styles/*.css, styles/design-tokens.css), and downloads external and inline JS bundles (scripts/*.js).
  • SourceMap (*.map) Unpacker (original_sources/): Automatically detects sourceMappingURL (external .map files and inline base64 sourcemaps) and reconstructs original TypeScript, React (.tsx), Vue (.vue), and SCSS source files on disk.
  • React/TSX Component Decompiler (components_tsx/): Splits semantic <header>, <nav>, <section>, <article>, <form>, and <footer> blocks into modular HTML snippets and converts them into React + TypeScript (.tsx) functional components.
  • Vector SVG & API Route Discovery (assets/*.svg, data/): Extracts inline <svg> icons, Next.js __NEXT_DATA__ state payloads, and backend API routes (/api/..., /v1/..., graphql), plus unpacks local .vsix, .zip, .crx, and .jar archives.
  • Automated Fidelity Check: Scores the rebuilt project against the reference (0-100% Likeness Score) and guides the Local AI to close any missing component or style gaps.

3. Graphify Architecture Studio (/graphify)

Explore and audit your entire codebase visually without burning LLM context tokens:

  • 3 Interactive Visualization Modes: Star & Spokes (module galaxy), Block Diagram (dependency flow), and Hierarchy Tree.
  • Architecture Health Score (0-100), God-Node & Circular Dependency Detection: Highlights architectural hubs, orphan files, and dependency cycles.
  • 1-Hop Focus & Blast-Radius Impact Analysis: Click any file node to inspect its imports, dependents, symbols, and change impact, or export a full Markdown Architecture Report.

4. Autonomous Test-Driven Development (/tdd)

Run /tdd, /tdd fix, or /tdd gen <file> to launch an automated Red -> Green -> Refactor verification loop:

  • Automatically detects your test runner (npm test, node --test, vitest, jest, pytest, cargo test, go test).
  • Parses pass/fail counts, duration, and stack traces into a structured dashboard, feeding failures directly back to your local model until all tests pass.

5. Live Web Preview & Headless UI Tester (browser_action)

Open workspace HTML files or local dev servers directly inside VS Code, inspect rendered DOM layouts, capture console/runtime errors, and let the agent autonomously click buttons (<action>click</action>) and type into inputs (<action>type</action>) to verify UI behavior.

6. Anti-Hallucination Guard & Atomic Multi-File Undo (SnapshotManager)

  • Pre- & Post-Write Verification: Automatically validates local relative imports and syntax after every write_file or replace_in_file call so the model immediately self-corrects broken imports.
  • 1-Click Atomic Turn Rollback: Every agent turn records before/after snapshots of all modified and created files, allowing you to revert an entire multi-file agent turn in one click (Undo).

7. 1:1 Visual PDF, Markdown & JSON Chat Export (/export)

Export any conversation as a dark-theme PDF document (.pdf) replicating the Sovereign Agent chat interface (including user bubbles, assistant cards, syntax-highlighted code blocks, tables, and collapsible tool badges), or save as .md, .json, or copy to clipboard.

8. Multi-Session Chat History & Git Timeline

Switch seamlessly between saved conversations in the History drawer (Chats and Git Commits tabs), start new sessions anytime, and inspect workspace Git commits inline.

9. Hardware Speed & 5-Stage Coding Benchmark (/benchmark)

Test your local GPU/CPU inference speed (tokens/sec, Time-to-First-Token, total duration) and evaluate your model across 5 real-world coding challenges (Algorithm, Bug Fix, Refactoring, Unit Testing, System Design), automatically calibrating optimal contextLength and temperature.

10. Local STDIO Model Context Protocol (MCP) Bridge

Connect local STDIO MCP servers (@modelcontextprotocol/server-filesystem, craft-anything-cli mcp, SQLite, Git, etc.) with explicit user approval gates and live tools/list discovery.

11. 16 Supported World Languages

Switch the UI and agent response language anytime from the top bar: English, Türkçe, Deutsch, Español, Français, 中文 (Simplified Chinese), Русский, 日本語, 한국어, Português, Italiano, العربية (RTL), Nederlands, Polski, हिन्दी, Azərbaycan.


Slash Commands Quick Reference

Command Description
/craft <url-or-path> [prompt] Extract full source code (.craft/extracted/) and rebuild any website or app with Local AI
/graphify [question] Build & open the interactive Graphify Knowledge Graph and analyze project architecture
/tdd Run the workspace test suite and display the live TDD verification dashboard
/tdd fix Run tests and automatically instruct the Local AI to fix any failing tests
/tdd gen <file> Generate comprehensive unit tests for a target file and verify they pass
/benchmark Run the 5-stage coding & hardware tok/s benchmark and auto-tune model parameters
/eval (or /judge) Run the 5-criterion 100-Point Quality Evaluation Suite and generate .craft/EVALUATION_REPORT.md
/export pdf Export the current conversation as a 1:1 visual PDF document (.pdf, .md, .json, copy)

Supported Local AI Providers

Provider Setting Value (sovereignAgent.provider) Default Local Endpoint
Ollama "ollama" http://localhost:11434
LM Studio "lm-studio" http://localhost:1234/v1
llama.cpp (llama-server) "llama-cpp" http://localhost:8080/v1
LocalAI "localai" http://localhost:8080/v1
vLLM "vllm" http://localhost:8000/v1
Jan "jan" http://localhost:1337/v1
GPT4All "gpt4all" http://localhost:4891/v1
OpenAI-Compatible Server "openai-compatible" http://localhost:1234/v1 (or custom URL)

Quick Start

  1. Start your local LLM server — e.g. install Ollama and run:
    ollama pull qwen2.5-coder:7b
    ollama serve
    
  2. Install Sovereign Agent from the VS Code Marketplace.
  3. Click the Sovereign Agent icon in the VS Code Activity Bar.
  4. Select your local model from the bottom-right model picker inside the composer and start building.

Configuration (settings.json)

Setting Default Description
sovereignAgent.provider "openai-compatible" "ollama", "lm-studio", "llama-cpp", "localai", "vllm", "jan", "gpt4all", or "openai-compatible"
sovereignAgent.baseUrl "" (Auto per provider) Local server URL (must be localhost / 127.0.0.1, or private LAN when allowLanHosts is enabled)
sovereignAgent.model "" Active local model identifier (e.g. "qwen2.5-coder:7b")
sovereignAgent.apiKey "" Optional Bearer API key for local OpenAI-compatible servers or proxies
sovereignAgent.language "auto" UI & agent reply language ("auto", "tr", "en", "de", "es", "fr", "zh", "ru", "ja", "ko", "pt", "it", "ar", "nl", "pl", "hi", "az")
sovereignAgent.temperature 0.2 Sampling temperature (0.0 - 2.0)
sovereignAgent.contextLength 8192 Context window size in tokens (min 1024)
sovereignAgent.maxIterations 20 Maximum autonomous tool steps per user prompt (1 - 100)
sovereignAgent.requireWriteApproval true Ask for confirmation before creating or modifying files
sovereignAgent.requireCommandApproval true Ask for confirmation before executing shell commands
sovereignAgent.allowLanHosts false Allow connecting to local AI servers on private LAN addresses (192.168.x.x, 10.x.x.x, 172.16-31.x, *.local)
sovereignAgent.enableNetworkDiscovery false Broadcast presence on LAN so teammates running Sovereign Agent can discover shared endpoints
sovereignAgent.mcpServers "{}" JSON map of local STDIO MCP servers

Support & Feature Requests

Have a feature idea, feedback, or bug report?

  • Click the Support & Feedback icon in the top-right header of Sovereign Agent inside VS Code
  • Email us directly at destekai.sovereign.ai@gmail.com
  • Open an issue on GitHub Issues

License

Released under the GNU General Public License v3.0 (GPL-3.0-or-later).

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