Skip to content

adk web doesn't find agent #3073

Closed
Closed

Description

@ukaer

** Please make sure you read the contribution guide and file the issues in the right place. **
Contribution guide.

Describe the bug
Running adk web my_agent loads ui but shows "Warning: No agents found in current folder." and agent is not available in dropdown. Running adk run my_agent works fine, running code in init.py loads things fine as well.

To Reproduce
Please share a minimal code and data to reproduce your problem.
Steps to reproduce the behavior:

  1. in my_agent/ foder have these two files:

init.py:
from .agent import root_agent

agent.py:

from google.adk.agents import Agent

print("bbb")

# This is a minimal agent definition. Does this work?
root_agent = Agent(
    name="basic_test_agent",
    model="gemini-2.5-flash",
    instruction="Respond to all inquiries with 'Hello world'."
)
  1. Follow steps to create venv, activate and install google-adk
  2. From parent directory of my_agent, I run: adk web my_agent
  3. Open browser to http://127.0.0.1:8000/
  4. UI shows but no agent found. Also no errors when running with --verbose of --log_level DEBUG
  5. running adk run my_agent works fine and am able to interact as expected.

Expected behavior
Web UI should show my agent and allow me to interact with it.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 11
  • Python version(python -V): Python 3.13.7
  • ADK version(pip show google-adk): 1.15.1

Model Information:

  • Are you using LiteLLM: No
  • Which model is being used(e.g. gemini-2.5-pro): gemini-2.0-flash

Additional context
Add any other context about the problem here.

Activity

  1. added
    web[Component] This issue will be transferred to adk-web
    on Oct 2, 2025
  2. added theissue type on Oct 2, 2025
  3. ukaer commented on Oct 2, 2025

    @ukaer
    Author

    Also tried with adk create new_agent, same result.

  4. ejfn commented on Oct 2, 2025

    @ejfn
    Contributor

    Try __init__.py?
    Or you don't even need __init__.py, just do
    adk web ./, the path containing the my_agent?

  5. AlexFierro9 commented on Oct 2, 2025

    @AlexFierro9

    can you change init.py to __ init __.py? Also have you tried running just 'adk web'? we are using this at work and it's oddly stupid.

  6. ukaer commented on Oct 2, 2025

    @ukaer
    Author

    Thanks, and my bad - I wrote init.py but the file was correctly named init.py

    starting in the agent dir with adk web ./ results in the same issue. Also tried removing the init.py and had same results - UI is available but "Warning: No agents found in current folder." and no agent selectable from left dropdown (but works fine w/ adk run)

  7. ukaer commented on Oct 2, 2025

    @ukaer
    Author

    Ah ok looks like I had probably written it right but markdown is eating the underscores and needs to be escaped __init__.py

  8. boyangsvl commented on Oct 8, 2025

    @boyangsvl
    Collaborator

    moving to discussions as it seems to be a set up issue rather than an ADK bug.

  9. locked and limited conversation to collaborators on Oct 8, 2025
  10. converted this issue into a discussion #3117 on Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

web[Component] This issue will be transferred to adk-web

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions