Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Higress CLI (hgctl)

$ hgctl Official Med Risk
Higress (Alibaba) · Cloud & Infra · Apache-2.0 · macos / linux / windows

hgctl is the official CLI for Higress, Alibaba's Apache-2.0 AI-native API Gateway (9.9k+ stars). It manages Higress control/data plane installation, Kubernetes --context/--kubeconfig targeting, declarative -f profile configs, Wasm plugin scaffolding, and includes an official SKILL.md for AI agents.

FCRS-1.0 Score
80 /100
Good
Medium Confidence
Zero-Friction Install
https://github.com/higress-group/higress/releases
CLI vs MCP Decision Hybrid (CLI + MCP)

Use hgctl for Higress gateway installation, upgrades, and Wasm plugin lifecycle; pair with Higress Console/MCP management APIs for live AI route mutations.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
✓ Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Ships SKILL.md (official_skill) and supports declarative -f YAML/JSON config files and --set overrides, though it lacks a universal --json flag.

  • Ships SKILL.md (official_skill) and -f / --set declarative flags
Trust & Safety 19 / 25

Supports explicit --kubeconfig and --context scoping for Kubernetes deployments, reducing cross-cluster accidents.

  • Explicit --kubeconfig and --context cluster targeting
Setup & Portability 12 / 15

Single Go binary via GitHub releases, though full gateway orchestration assumes Docker or Kubernetes access.

  • Go binary distributed via higress-group/higress releases
Utility & Efficiency 13 / 15

Streamlines Higress AI Gateway provisioning, profile inspection, and Wasm plugin workflows.

  • Dedicated Higress gateway lifecycle and plugin management
Maintenance & Lineage 9 / 10

Official higress-group/higress project (9.9k+ stars, Apache-2.0) backed by Alibaba and CNCF ecosystem contributors.

  • Official higress-group/higress repo (9.9k+ stars, Apache-2.0)
Docs & Verifiability 8 / 10

Clear hgctl reference docs on higress.ai alongside bundled SKILL.md guidance.

  • Official hgctl docs on higress.ai and SKILL.md

Security, Auth & Guardrails

Auth Modes
Config File
Credential Storage

Uses local Kubernetes credentials (~/.kube/config or --kubeconfig) and Docker/Helm context for gateway deployment.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

Open-source and free (Apache-2.0); runtime infrastructure depends on your Kubernetes or Docker host.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# hgctl Agent Rules
- Always pass `--context` or `--kubeconfig` explicitly when targeting Kubernetes clusters.
- Inspect `hgctl profile list` and pass `-f config.yaml` rather than mutating production clusters interactively.
- Require user approval before running `hgctl uninstall` or upgrading production gateways.

Agent-Ready Command Recipes

Safe Read-Only Queries

Check hgctl and Higress version info
hgctl version

Displays client and connected Higress control plane version metadata.

Inspect Higress gateway deployment profile
hgctl profile list

Lists available built-in installation profiles (k8s, local-k8s, standalone).

Controlled Writes & Previews

Install Higress with explicit kubeconfig context
hgctl install --set profile=local-k8s --context kind-higress

Deploys Higress into a scoped local Kind Kubernetes context.

Strengths for Agents

  • + Ships official SKILL.md agent instructions in higress-group/higress.
  • + Clean --context, --kubeconfig, and -f declarative profile support.
  • + High community adoption (9.9k+ stars) for AI-native API gateway deployments.

Caveats & Pitfalls

  • ! Focused on gateway lifecycle and profiles rather than structured --json query output.
  • ! Not packaged in Homebrew core; requires release binary or official install script.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI