Web Interface

no

Original Documentation

Supported in ADKPython v0.1.0TypeScript v0.2.0Go v0.1.0Java v0.1.0

The ADK web interface lets you test your agents directly in the browser. This tool provides a simple way to interactively develop and debug your agents.

Caution: ADK Web for development only

ADK Web is not meant for use in production deployments. You should use ADK Web for development and debugging purposes only.

Start the web interface#

Use the following command to run your agent in the ADK web interface:

adk web
npx adk web
go run agent.go web api webui

Make sure to update the port number.

With Maven, compile and run the ADK web server:

mvn compile exec:java \
 -Dexec.args="--adk.agents.source-dir=src/main/java/agents --server.port=8080"

With Gradle, the build.gradle or build.gradle.kts build file should have the following Java plugin in its plugins section:

plugins {
    id('java')
    // other plugins
}

Then, elsewhere in the build file, at the top-level, create a new task:

tasks.register('runADKWebServer', JavaExec) {
    dependsOn classes
    classpath = sourceSets.main.runtimeClasspath
    mainClass = 'com.google.adk.web.AdkWebServer'
    args '--adk.agents.source-dir=src/main/java/agents', '--server.port=8080'
}

Finally, on the command-line, run the following command:

gradle runADKWebServer

In Java, the Web Interface and the API server are bundled together.

The server starts on http://localhost:8000 by default:

+-----------------------------------------------------------------------------+
| ADK Web Server started                                                      |
|                                                                             |
| For local testing, access at http://localhost:8000.                         |
+-----------------------------------------------------------------------------+

Features#

Key features of the ADK web interface include:

  • Chat interface: Send messages to your agents and view responses in real-time
  • Session management: Create and switch between sessions
  • State inspection: View and modify session state during development
  • Event history: Inspect all events generated during agent execution

Common options#

OptionDescriptionDefault
--portPort to run the server on8000
--hostHost binding address127.0.0.1
--session_service_uriCustom session storage URIIn-memory
--artifact_service_uriCustom artifact storage URILocal .adk/artifacts
--reload/--no-reloadEnable auto-reload on code changestrue

Example with options#

adk web --port 3000 --session_service_uri "sqlite:///sessions.db"
Link last verified June 7, 2026. View original ↗
Source: Google ADK
Link last verified: 2026-04-05