Skip to content
agentgateway has joined the Agentic AI FoundationLearn more

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Page as Markdown

Install agctl

Install the agctl command-line tool for inspecting and debugging agentgateway.

This feature is experimental. Try it out, see how it helps, and provide us feedback in GitHub or Discord. But keep in mind that it is subject to change and not supported for production.

Install agctl, the command-line tool that you use to inspect and debug agentgateway.

About

agctl is the agentgateway command-line interface. Use agctl to inspect the configuration that an agentgateway proxy has loaded, capture detailed traces of requests as the proxy handles them, and manage proxy and controller log levels. The CLI works against agentgateway running in Kubernetes or as a standalone binary on your workstation.

agctl includes the following subcommands.

CommandDescription
agctl proxy traceCapture a tap-style trace to analyze a copy of the next request that an agentgateway proxy handles. Renders the trace in an interactive, text-based terminal user interface (TUI) by default. Alternatively, you can format the output as JSON for piping to other tools.
agctl proxy configRetrieve the runtime configuration that an agentgateway proxy has loaded, including binds, listeners, routes, backends, workloads, and services.
agctl proxy logGet or set log levels for the agentgateway proxy at runtime.
agctl controller logGet or set log levels for the agentgateway controller at runtime.
agctl versionPrint version information for the agctl CLI.
agctl completionTurn on autocompletion for your shell in bash, zsh, fish, or powershell.

For a complete list of subcommands and flags, see the agctl CLI reference.

Before you begin

Make sure that you have Graphviz installed if you plan to use agctl for profile investigation.

If you choose to build agctl from source, you must also install Go 1.22 or later and Git.

Install agctl

Download the agctl binary for your platform from the releases page or build it from source.

Download the pre-compiled binary:

curl -sL https://github.com/agentgateway/agentgateway/releases/latest/download/agctl-linux-amd64 -o agctl
chmod +x agctl
sudo mv agctl /usr/local/bin/agctl

Verify the installation

agctl --help

Example output:

agctl controls and inspects Agentgateway resources

Usage:
  agctl [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  controller  Inspect and manage the Agentgateway controller
  help        Help about any command
  proxy       Inspect and manage the Agentgateway proxy
  version     Print agctl version information

Flags:
  -h, --help                help for agctl
  -k, --kubeconfig string   kubeconfig

Use "agctl [command] --help" for more information about a command.

Enable shell completion

agctl ships with an autocompletion script for bash, zsh, fish, and powershell. Source the script for your shell to get tab-completion of subcommands, flags, and resource names.

Add the completion script to a directory on your $fpath. The following example creates one and writes the script to it.

mkdir -p ~/.zsh/completions
agctl completion zsh > ~/.zsh/completions/_agctl

Add the directory to $fpath and load completion in your ~/.zshrc.

fpath=(~/.zsh/completions $fpath)
autoload -U compinit && compinit

Upgrade agctl

To upgrade agctl, replace the binary with the new version following the same steps as installation.

If you built from source, pull the latest changes and rebuild.

cd agentgateway
git pull
go install ./controller/cmd/agctl

Verify the new version.

agctl --help
Use the same agctl version as the agentgateway version that you run in your cluster. Slight skews within minor versions typically work, but compatibility across major versions is not guaranteed.

Uninstall agctl

To uninstall agctl, remove the binary from your system. For example:

# If installed to /usr/local/bin
sudo rm /usr/local/bin/agctl

# If installed via GOBIN
rm "$(go env GOPATH)/bin/agctl"
Was this page helpful?
Agentgateway assistant

Ask me anything about agentgateway configuration, features, or usage.

Note: AI-generated content might contain errors; please verify and test all returned information.

Tip: one topic per conversation gives the best results. Use the + button in the chat header to start a new conversation.

Switching topics? Starting a new conversation improves accuracy.
↑↓ navigate select esc dismiss

What could be improved?

Your feedback helps us improve assistant answers and identify docs gaps we should fix.

Need more help? Join us on Discord: https://discord.gg/y9efgEmppm

Want to use your own agent? Add the Solo MCP server to query our docs directly. Get started here: https://search.solo.io/.