# OpenCLI Agent Pack: Consul

Use this when an AI agent needs to work with `consul`.

## What this CLI is for
The official CLI from HashiCorp. Service discovery, kv, and mesh from the terminal. Supports structured output — good for scripts and agents.

Best for: service discovery, kv, and mesh from the terminal.

## Agent readiness
Great for agents (75/100)
- Structured output is available for parsing.
- Supports non-interactive/scripted use.
- Works well in CI or repeatable automation.

## Install
```sh
brew tap hashicorp/tap && brew install hashicorp/tap/consul
```

## Verify before real work
```sh
consul --version
```
Expected signal: consul responds locally and is ready for the first real command.

## Safe starting commands
```sh
consul --version
```

```sh
consul agent -dev
```

## Guardrails for agents
- Start read-only, then ask before mutations.

## Suggested agent instruction
You may use Consul (`consul`) for service discovery, kv, and mesh from the terminal.. First install it if missing, then run the verify command. Start with read-only or inspection commands. Summarize what you found before changing anything. Ask for confirmation before commands that mutate remote state, spend money, deploy, delete data, merge code, or expose secrets.

Source: OpenCLI
