Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/grafana/latest/ai-tools/grafana-cli/gcx.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana/latest/ai-tools/grafana-cli/gcx/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
gcx CLI
Overview
gcx is the Grafana CLI that allows you and your AI coding agent to work with Grafana Cloud, Grafana Enterprise, and Grafana OSS.
gcx is designed to be used in common scenarios such as authentication against Grafana, query telemetry, inspect and manage resources, and automate observability workflows as code.
It’s also integrated with Grafana Assistant, combining the previously fragmented user experience into one single tool.
Get started
Note
Refer to the
gcxrepository in GitHub for the complete set ofgcxdocuments, including architecture information, user guides, and other reference material.
gcx is, what it costs, and which Grafana versions it works with.gcx with the quick installer, Homebrew, Windows, a prebuilt binary, or a container.gcx commands need, and how to fix authorization errors.gcx, the commands to use for each, and resource-specific guides.gcx behaves when an AI coding agent runs it, and how to set up sign-in, destructive operations, and skills for agents.gcx reports to Grafana Labs, and how to opt out.gcx stores credentials in your operating system’s keychain, and when it falls back to plaintext.gcx configuration to the version 1 format.Was this page helpful?
Related resources from Grafana Labs


