Skip to content

feat(cli): add ax studio launcher and install.sh studio download - #627

Merged
YoyinZyc merged 3 commits into
google:mainfrom
YoyinZyc:feat/ax-studio-cmd
Nov 17, 2026
Merged

YoyinZyc merged 3 commits into
google:mainfrom
YoyinZyc:feat/ax-studio-cmd

Conversation

@YoyinZyc

@YoyinZyc YoyinZyc commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Add 'ax studio' to launch the standalone AX Studio local web application (github.com/agentexecutor/studio) on 127.0.0.1:8080(default port)

  • Download and SHA-256-verify ax-studio alongside ax in install.sh into ~/.ax/bin/ax-studio (gracefully skipping until agentexecutor/studio publishes its first release, while failing closed on any checksum mismatch).
  • And fixed some output of ax status cli

Test with released ax-studio binary(in my personal repo) on both linux and macOS

Tested:

curl -fsSL https://github.com/YoyinZyc/ax/releases/download/v0.0.4-test/install.sh | \
  AX_GITHUB_REPO=YoyinZyc/ax \
  AX_VERSION=v0.0.4-test \
  AX_STUDIO_GITHUB_REPO=YoyinZyc/studio \
  AX_STUDIO_VERSION=v0.1.0-test \
  sh

export PATH="$HOME/.ax/bin:$PATH"
export AX_SERVER_IMAGE="ghcr.io/yoyinzyc/ax/ax-server@sha256:..."
export AX_DEFAULT_TASK_IMAGE="ghcr.io/yoyinzyc/ax/ax-task-runner@sha256..."

ax studio

Output:
image

Add 'ax studio' to launch the standalone AX Studio local web application
(github.com/agentexecutor/studio) on 127.0.0.1:8080 without bundling frontend
assets or Node toolchains into google/ax.

- Download and SHA-256-verify ax-studio alongside ax in install.sh into
  ~/.ax/bin/ax-studio (gracefully skipping until agentexecutor/studio publishes
  its first release, while failing closed on any checksum mismatch).
- Add executil.ResolveStudioBinary ( -> ~/.ax/bin/ax-studio -> PATH).
- Validate loopback-only listen addresses (--port / --addr) up front and forward
  graceful shutdown signals without affecting running clusters or tasks.
@YoyinZyc

Copy link
Copy Markdown
Collaborator Author

Also cc @Raji14

@mayawang mayawang left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice that it fails closed on a checksum mismatch and binds to localhost. Non-blocking: same as install.sh, the checksum comes from the same release as the binary, so signing is a later follow-up.

Comment thread install.sh Resolved
@yongruilin

Copy link
Copy Markdown
Collaborator

One concern comments, otherwise lgtm.

@MushuEE

MushuEE commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator

@yongruilin @mayawang I am hesitant to support this natively from AX, seems like it introduces API surface area that has a lot of dependencies/ENV requirements to not fail and could introduce a lot of confusion for users. Is this a pattern you have seen in other products?

IMHO making studio a linked dep of the ax cli creates a new tight dependency on studio and if studio starts to support a lot of flags, config, options, there will be pressure to project those changes into ax cli

@YoyinZyc

Copy link
Copy Markdown
Collaborator Author

@MushuEE google/ax does not import or link agentexecutor/studio go.mod is untouched). Ax-studio is a separate standalone single binary (~/.ax/bin/ax-studio). The [install.sh‎](https://github.com/google/ax/pull/627/changes#diff-043df5bdbf6639d7a77e1d44c5226fd7371e5259a1e4df3a0dd5d64c30dca44f) in ax will install the binary as we want to give user the one-click experience. And ax studio just starts the web app locally.

The env above is mostly because I am testing with my own image and ax studio binary. Once released, the user flow is just:

curl -fsSL https://github.com/google/ax/releases/download/v0.0.4-test/install.sh | sh
ax studio

and uses the pinned image and studio binary.

Let me know if it resolves your concern.

@YoyinZyc

Copy link
Copy Markdown
Collaborator Author

Regarding the concern about if studio starts to support a lot of flags, I updated it to pure passthrough, so there should be no env coupling.

@YoyinZyc

Copy link
Copy Markdown
Collaborator Author

Will submit this one, let's keep iterating on it. :)

@YoyinZyc
YoyinZyc merged commit 7fd1bf7 into google:main Nov 17, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants