A VS Code extension for building ADK-Rust agents. Provides project scaffolding, environment checking, build/run integration, and the ADK Studio visual builder — all from your editor.
- Project Scaffolding — Create new ADK agent projects from four built-in templates targeting adk-rust 0.3
- Environment Checking — Verify your Rust toolchain, ADK Studio, and API keys in one click
- Build & Run — Compile and run agents directly from the sidebar or command palette
- ADK Studio — Launch the visual agent builder in a webview panel with automatic VS Code theme synchronization
- API Key Management — Configure provider API keys without editing
.envfiles manually - Project Tree View — Browse and manage ADK projects from the sidebar
Install rustc and cargo via rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shVerify the installation:
rustc --version
cargo --versionADK Studio is the visual agent builder for ADK Rust. It powers the extension's main webview panel.
See the ADK Studio Installation section below.
cargo install adk-studioadk-studio --versionAfter installing, restart the environment check or reopen VS Code.
-
Install the extension — Search for "ADK Rust" in the VS Code Extensions view and click Install.
-
Create a project — Open the command palette (
Ctrl+Shift+P/Cmd+Shift+P) and run ADK Rust: Create Project. Pick a template and a folder. -
Set up your
.env— After creation, click Set Up .env in the notification to copy.env.exampleto.env. Add your API keys (e.g.GOOGLE_API_KEY). -
Build the project — Run ADK Rust: Build Project from the command palette or click the build icon in the sidebar.
-
Run the agent — Run ADK Rust: Run Project to start your agent.
Tip: Use ADK Rust: Check Environment at any time to verify your toolchain, ADK Studio, and API keys are configured correctly.
| Command | Icon | Description |
|---|---|---|
| ADK Rust: Open Studio | $(radio-tower) |
Opens the ADK Studio webview panel |
| ADK Rust: Create Project | $(add) |
Scaffolds a new ADK project from templates |
| ADK Rust: Build Project | $(gear) |
Builds the project with cargo build |
| ADK Rust: Run Project | $(play) |
Runs the ADK agent with cargo run |
| ADK Rust: Check Environment | $(checklist) |
Verifies Rust toolchain, ADK Studio, and API keys |
| ADK Rust: View Logs | $(output) |
Opens the extension output channel |
| Refresh ADK Projects | $(refresh) |
Refreshes the project tree view |
| ADK Rust: Configure API Keys | $(gear) |
Configure API keys for supported providers |
| ADK Rust: Open Settings | $(settings-gear) |
Opens VS Code settings filtered to adkRust |
All settings are under the adkRust namespace. Open them quickly with ADK Rust: Open Settings.
| Setting | Type | Default | Description |
|---|---|---|---|
adkRust.studioPort |
number |
3000 |
Port for the ADK Studio server |
adkRust.defaultTemplate |
string |
"simple-chat" |
Default template for new projects (simple-chat, tool-using-agent, multi-agent-workflow, graph-workflow) |
adkRust.adkStudioPath |
string | null |
null |
Custom path to the adk-studio binary. Leave empty to use PATH. |
adkRust.cargoPath |
string | null |
null |
Custom path to the cargo binary. Leave empty to use PATH. |
adkRust.rustcPath |
string | null |
null |
Custom path to the rustc binary. Leave empty to use PATH. |
adkRust.autoStartStudio |
boolean |
true |
Automatically start ADK Studio when the extension activates |
adkRust.studioAutoOpen |
boolean |
true |
Automatically open the ADK Studio webview when ADK projects are detected |
adkRust.sidebarWebview |
boolean |
true |
Use the rich sidebar webview instead of the native tree view |
adkRust.verbosity |
string |
"normal" |
Output verbosity: quiet, normal, or verbose |
| Shortcut | Command | When |
|---|---|---|
Ctrl+Shift+B / Cmd+Shift+B |
Build Project | Editing .rs files |
You can bind additional shortcuts (e.g. for Run Project) via VS Code's keybinding settings.
| Template | Description |
|---|---|
simple-chat |
Basic conversational agent using AgentBuilder and GeminiClient |
tool-using-agent |
Agent with #[tool] macro function tools and Google Search |
multi-agent-workflow |
Sequential and parallel agent orchestration with SequentialAgent / ParallelAgent |
graph-workflow |
State-machine workflow using petgraph with typed node/edge graphs |
- Ensure the extension is installed and enabled.
- Reload the VS Code window (
Ctrl+Shift+P→ Developer: Reload Window).
- Install Rust via rustup.
- If installed to a custom location, set
adkRust.rustcPathandadkRust.cargoPathin settings. - Restart VS Code after installing Rust.
- Ensure your
Cargo.tomldeclares a dependency on a known ADK crate (e.g.adk-rust,adk-core,adk-agent). - Click Refresh ADK Projects in the sidebar title bar.
- Run ADK Rust: Check Environment to verify all tools are available.
- Check the output channel (ADK Rust: View Logs) for detailed error messages.
- Ensure your
.envfile contains the required API keys for your chosen model provider.
- Verify ADK Studio is installed:
adk-studio --version. - Check that the configured port (
adkRust.studioPort, default3000) is not in use. - If installed to a custom location, set
adkRust.adkStudioPathin settings.
- Run ADK Rust: Check Environment — it reads the
.envfile from your workspace root. - Use ADK Rust: Configure API Keys to set keys from the sidebar.
- Ensure the
.envfile is in the workspace root. - For run/build, project-local
.envvalues (next toCargo.toml) can still override workspace values.