Herald CLI | Herald Docs

Herald CLI

How Snorkel AI got day-one results with Herald

Herald CLI connects to your local environmentkubectl, gcloud, Datadog, git, etc — and answers questions about what’s actually happening in your infrastructure. Ask why pods are restarting, what changed before an alert fired, or where an error is coming from. No context switching, no digging through dashboards.

Using Herald

Install the CLI

Install the npm package and start the CLI:

npm install -g @herald-ai/herald

herald

Start a Session

From the repository you want Herald to use, run:

herald

This opens an interactive session where you can ask questions and continue with follow-ups.

> why are pods in the checkout namespace restarting?

To exit the session, type /exit.

First-Time Setup

The first time you run herald after installing the CLI, Herald walks you through a short setup flow. The terminal will show an authentication link, where you can sign in and generate your unique API key. Paste that key back into the CLI when prompted.

During setup, Herald inspects what is available on your machine and does its best to connect to useful local tools. For example, if it sees Kubernetes, Google Cloud, Grafana, Prometheus, or similar infrastructure signals in your repo or environment, it can offer to connect to the matching local tools.

These connections use your existing local credentials and configuration. Herald does not ask you to manually recreate everything you already have set up on your laptop.

Supported Tools

The CLI can connect to the following local tools during setup or from /config.

Supported today

Coming soon

Security FAQ

Does Herald need my credentials?

The CLI can use local files and tools that are already configured on your machine, such as your kubeconfig, kubectl, and gcloud. You do not need to give Herald API keys, cloud credentials, tokens, or service account keys, and those credentials do not leave your local machine.

Can I bring my own LLM key?

Bring your own LLM key support is coming soon. It will be handled as a model configuration option, separate from local tool connections like kubectl, gcloud, and git.

Does Herald run locally?

The CLI runs on your local machine and uses your local repository, shell environment, and configured developer tools to gather context. Your existing credentials stay managed by those local tools.

If you run into any issues, please reach out to us at support@herald.dev.