Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Workbench for ZephyrNew to Visual Studio Code? Get it now.
Workbench for Zephyr

Workbench for Zephyr

Ac6

ac6.fr
|
12,959 installs
| (6) | Free
Zephyr project support for Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Workbench for Zephyr (VS Code)

VS Marketplace Installs Open VSX License

Ac6 Workbench for Zephyr is a VS Code extension that adds support of Zephyr development to Visual Studio Code, including host tools installation, SDK and toolchain management, west workspace management, project creation, build, flash and debug, Kconfig and devicetree editing, memory analysis, static code analysis and SBOM generation.

The extension is available on the VS Code Marketplace and on Open VSX.

Getting started with Workbench for Zephyr

Features

  • Install native host tools (Python, CMake, Ninja, ...) in a sandboxed location, with an advanced mode to select individual tools
  • Install and manage toolchains: Zephyr SDK (full or minimal, with optional LLVM/Clang), ARM GNU, IAR ARM and Rust
  • Detect and use Zephyr SDKs installed globally or locally
  • Import west workspaces from a template, a repository, a local folder or a manifest file
  • Manage west manifests, west blobs and per-workspace Python environments with the West Manager
  • Create application projects for a specific board from a sample, or import existing applications
  • Define multiple build configurations per application, with sysbuild, shields and snippets support
  • Build and flash applications from the status bar, the command palette or the Applications view
  • Open a Zephyr terminal with the build environment sourced (PowerShell, bash, zsh, Git Bash, MSYS2 or Cygwin)
  • Debug with OpenOCD, J-Link, pyOCD, LinkServer, ST-LINK GDB Server, STM32CubeProgrammer, nRF tools or Simplicity Commander, using the built-in backend or Cortex-Debug
  • Generate launch configurations with the Debug Manager, manage pyOCD target packs, install runners from the extension
  • Configure applications with the Kconfig Manager GUI, menuconfig, guiconfig or hardenconfig
  • Edit devicetree and pin muxing with the Devicetree Manager, with DTS language server support out of the box
  • Analyze memory usage with RAM/ROM reports, plots and puncover
  • Inspect builds in the Zephyr Dashboard: application summary, sys-init data and RAM/ROM usage with ELF size breakdown
  • Run static code analysis with ECLAIR (MISRA, BARR-C, AUTOSAR) and diagnose devicetree errors with DT Doctor
  • Generate SPDX 2.3 and SPDX 3.0 SBOM documents, verify them with SBOM Total and export PDF, DOCX or Markdown reports
  • Let AI coding agents (Claude Code, OpenAI Codex, GitHub Copilot, Cursor, Antigravity, opencode) build your applications and read build results, set up in one click from the AI Manager
  • IntelliSense with the C/C++ extension or clangd
  • Supported on Windows, Linux and macOS, including VS Code Portable mode

Quick Start

  1. Click on the Workbench for Zephyr icon in the activity bar
  2. Install Host Tools: the native tools are downloaded into ${USERDIR}/.zinstaller (takes ~5 minutes)
  3. Add a toolchain: import an official Zephyr SDK or register an already installed one
  4. Add a west workspace: from a template, a repository, a local folder or a manifest file (takes ~10 minutes)
  5. Create a new application: select the west workspace, the toolchain, the board and a sample project
  6. Build from the status bar, then configure your debug session with the Debug Manager

Step-by-step guides are available for Windows, Linux and macOS.

Supported toolchains

Toolchain Notes
Zephyr SDK Official SDK, full or minimal install, all Zephyr target architectures
LLVM/Clang Optional download together with a Zephyr SDK
ARM GNU Toolchain arm-none-eabi and aarch64-none-elf
IAR ARM Toolchain Registered with an IAR license token, a Zephyr SDK is still required for the host utilities
Rust zephyr-lang-rust module, standalone toolchain or rustup

Zephyr SDKs installed globally with west sdk are detected automatically, shown with a [global] badge in the Toolchains view and selectable as an application toolchain.

Supported debug runners

Runner Notes
OpenOCD Zephyr, ESP32, xPack, Infineon, TI or custom variants
J-Link SEGGER
pyOCD Target packs managed with the pyOCD Manager
LinkServer NXP
ST-LINK GDB Server STMicroelectronics
STM32CubeProgrammer STMicroelectronics
nrfjprog, nRF Util Nordic Semiconductor
Simplicity Commander Silicon Labs

Debug sessions run on the built-in west debugserver backend or on Cortex-Debug. Runners and programming tools (including ModusToolbox Programming Tools) can be installed directly from the Install Runners view.

Devicetree Manager

The Devicetree Manager is a visual editor for the devicetree and the pin muxing of an application. It reads the resolved devicetree of the selected build configuration and generates the corresponding boards/<board>.overlay file. It ships as a separate companion extension, Devicetree Manager for Zephyr (also on Open VSX).

Devicetree Manager for Zephyr

AI agents (MCP)

Workbench for Zephyr can be driven by an AI coding agent. The agent sees your applications and build configurations, runs builds in a VS Code terminal you can watch, and gets compiler errors back with the file and line, so it can fix them and build again. It can also read memory usage, Kconfig values and the resolved devicetree of a build, change a build configuration (board, overlays, conf files), change Kconfig options the way a build would accept them, search boards, shields, snippets and samples, and check what is missing from your environment.

With a board connected, an agent can read what it prints on its serial console and send it a line, such as a Zephyr shell command. The capture shows live in a VS Code terminal you can stop, and a send asks you first. The capture keeps DTR and RTS low. Linux and macOS still raise both for a moment as a port opens, so a board whose reset is wired to them may reset once when a capture starts.

An agent can also set things up from scratch: create an application from a sample or import one, change its toolchain, IntelliSense provider or Python environment, and run DT Doctor, the Kconfig hardening check, an SPDX SBOM or an ECLAIR analysis. With the full toolset it can also install and register toolchains (Zephyr SDK, Arm GNU, Rust, LLVM), create, update and edit west workspaces, and remove or delete what it no longer needs. When a choice is yours to make, such as an IAR licence token, it opens the right wizard or view for you instead.

To connect an agent:

  1. Open the command palette and run Zephyr Workbench: AI Manager
  2. On the Zephyr Workbench MCP page, in the Agents tab, click Connect next to your agent. You are shown the exact file and change before anything is written
  3. Restart the agent session, then ask it to build your application

GitHub Copilot in VS Code 1.101 or later, and Cursor, need no setup at all. For any other MCP client, run Zephyr Workbench: Copy MCP Configuration for an Agent and paste the result into its configuration.

One agent setup serves every project and every open VS Code window: each request goes to the window that has the application open. If an agent cannot reach Workbench for Zephyr, click Test connection in the AI Manager, or run Zephyr Workbench: Check AI Agent Connection (MCP). It runs the same command your agent runs, shows what to fix, and writes the full report to the Zephyr Workbench: MCP output.

Everything stays on your machine: the server only accepts local connections, and each request needs a key that changes every time VS Code starts. Use the Permissions tab to choose what agents may do. With the Core preset, the default, agents build and inspect without asking, ask you before they create an application, change a west workspace, install a toolchain or send text to a board, and cannot delete anything. Full lets agents use every tool without asking, and Custom lets you choose Allow, Ask or Block for each tool. Only you can answer in VS Code.

The AI Manager has two more pages. Zephyr Project MCP connects your agents, in the same way, to the Zephyr Project's own MCP server, run by Kapa.ai, which answers questions from Zephyr's documentation, source code and GitHub activity. It is a hosted service, so your questions leave your machine, and the first time an agent uses it you sign in once in your browser. A server you added to your Claude account as a connector shows as connected too: the page asks Claude Code which servers it reaches. The page also lists the sources it answers from and gives the configuration for any other MCP client. Third-party skills points to Zephyr agent skill collections written by others.

CI and Docker

A Docker image with VS Code and the Workbench for Zephyr extension pre-installed is available in the vscode-zephyr-workbench-docker repository. The image is based on Ubuntu 24.04 and already contains the Zephyr host tools. It can be used as a Dev Container from your local VS Code, as a standalone VS Code with GUI, or in terminal-only mode to run west builds in CI pipelines.

Documentation

The complete documentation is available on https://z-workbench.com/, in particular:

  • Installation and the Host Tools Manager
  • Toolchains
  • West Workspaces
  • Applications and Multibuild
  • Install Runners and Debug Session
  • Memory Analysis and Static Code Analysis
  • Devicetree Manager, DTS LSP Integration and Custom Boards
  • VS Code Portable Mode
  • Board tutorials and the SBOM tutorial

The latest features are listed in the CHANGELOG.

Open Source

The Workbench for Zephyr extension is a fully open-source project, built to provide an IDE for the Zephyr community and to introduce Zephyr to newcomers. The source code is available on GitHub, and we actively encourage developers to contribute, review and improve the project. The extension is licensed under the Apache-2.0 license.

Contribute

We welcome contributions from developers of all skill levels. Whether you are fixing bugs, adding new features, or improving documentation, your efforts help make this extension better for everyone.

  • Reporting issues: found a bug or have a feature request? Please check the existing issues and, if needed, open a new one to let us know
  • Improving documentation: clear documentation is crucial for the user experience, if you spot something unclear or missing, feel free to suggest improvements

Useful links

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