Skip to main content

dex-agents-google-adk-cli

dex-agents-google-adk-cli provides the dex-agents-google-adk command. It runs a Google ADK agent as a durable Dex agent session and chats with it in your terminal. The shared CLI core, dex-agents-cli-core, starts or reuses dexcli dev, connects the connectors MCP server, and runs the Worker. This package only builds the agent with the Google ADK adapter.

Running it

The command needs Python 3.11 or later and a Gemini API key:

export GOOGLE_API_KEY=...
uvx --from dex-agents-google-adk-cli dex-agents-google-adk

The Google Gen AI SDK reads the key from GOOGLE_API_KEY or GEMINI_API_KEY. To call Gemini on Vertex AI instead, set GOOGLE_GENAI_USE_VERTEXAI=true, GOOGLE_CLOUD_PROJECT, and GOOGLE_CLOUD_LOCATION, and sign in with Application Default Credentials. The command passes these variables to the SDK and never prints or stores them.

The first run asks the init questions and writes ~/.dex/agents/google-adk.yaml. Then type a message at the > prompt. Approve or reject tool calls with y or n, and press Ctrl-D to exit. The session stays in Dex, and the command prints the --resume line that continues it. See the CLI core README for every subcommand and option, and agents/cli for the configuration file.

Configuration

The model defaults to gemini-2.5-flash; set model in the file or pass --model to change it. It is a Gemini model name. system_prompt replaces the default instructions. Session settings that change model or system_prompt apply from the session's next turn. The google_adk section has no options yet, and any key in it is a configuration error.

The command has no reasoning effort setting: Gemini 3 models take a thinking level and Gemini 2.5 models a thinking token budget. A session whose settings carry reasoning_effort fails its turn with unsupported_reasoning_effort, and the terminal UI does not offer /effort. Its /model also offers gemini-2.5-pro.

Tools

The agent is one ADK LlmAgent. Its tools are the CLI core's connector tools and local tools: files, shell commands, web fetch, and the browser. Each call runs in its own Dex tool Step with the CLI core's rules: reads run at once, writes and shell commands wait for approval unless the shell allow list has the command, and file tools stay in the workspace. See the CLI core README for the tools and their rules.

Images

/image <path> attaches an image file to the next message. The command gives the Google ADK adapter the media store of media.store, so the model sees the image, and images that tools return go to the same store. See Images.

Development

Develop with uv 0.12.2. The package resolves dex-agents, the adapter, the CLI core, and the shared test support from this repository by path. ci.sh installs the locked dependencies, checks that google-adk and google-genai match the adapter's lock, checks lint and types, and runs the tests against a private dexcli dev:

cd agents/cli/python/google-adk
DEXCLI=/path/to/dexcli ./ci.sh

The tests run the command in a pseudo-terminal with a private home. ADK calls the scripted Gemini API of ../testing on 127.0.0.1 through GOOGLE_GEMINI_BASE_URL; a refused proxy stops any other request. A fake connectors MCP server serves a connector read and write. The tests cover a chat turn and --resume, read_file without approval and write_file after approval, a connector read and an approved connector write that runs once, session settings that change the model, and a key in the google_adk section. A reasoning_effort in the session settings fails the turn. They also cover a system_prompt set in the session settings, which reaches the next model request, and a rejected file write and connector write, which never run.

Metadata

Release files for dex-agents-google-adk-cli 0.6.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dex-agents-google-adk-cli 0.6.10
File Size Uploaded Provenance Actions
dex_agents_google_adk_cli-0.6.10.tar.gz 7.2 kB Without provenance Details for dex_agents_google_adk_cli-0.6.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dex-agents-google-adk-cli 0.6.10
File Interpreter ABI Platform Actions
dex_agents_google_adk_cli-0.6.10-py3-none-any.whl Python 3 none any Details for dex_agents_google_adk_cli-0.6.10-py3-none-any.whl

Total release size: 16.7 kB

Release files / dex_agents_google_adk_cli-0.6.10.tar.gz

Download URL dex_agents_google_adk_cli-0.6.10.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
73cf4fe01b880ff2a314d74686d096e70d56eda09bfd82ea02fdc11e1896c878
BLAKE2b-256 checksum
How to use checksums
f002f0c6b62cc6849f65ea0383a724cbe33d6832c2867e8a812ed2e822cfbf7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / dex_agents_google_adk_cli-0.6.10-py3-none-any.whl

Download URL dex_agents_google_adk_cli-0.6.10-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c9812b20c7ee17d420a108b8f02e8eaa041c02573fce7bf25c80cddc12b2930
BLAKE2b-256 checksum
How to use checksums
c5e4468fbab375ea235102c19ad1aa8f19cf11479370fd1277b214e9a93841a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.2 {"installer":{"name":"uv","version":"0.12.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for dex-agents-google-adk-cli 0.6.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page