/install consul-deregister
Consul Service Deregister
Deregister service instances from Consul via the HTTP API.
Usage
Mode 1: Service ID + Agent List (Most Common)
User: Deregister service my-service-id on consul-agent-1, consul-agent-2, and consul-agent-3
AI executes:
python3 /Users/shiheng/.qclaw/workspace/skills/consul-deregister/scripts/deregister.py \
--service-id my-service-id \
--agents http://\x3CCONSUL_HOST_1>:8500 http://\x3CCONSUL_HOST_2>:8500 http://\x3CCONSUL_HOST_3>:8500
Mode 2: Paste Raw curl Commands (Easiest)
User pastes existing curl commands, AI parses and replays them:
User: Execute these deregister commands:
curl -XPUT http://\x3CCONSUL_HOST_1>:8500/v1/agent/service/deregister/\x3CSERVICE_ID>
curl -XPUT http://\x3CCONSUL_HOST_2>:8500/v1/agent/service/deregister/\x3CSERVICE_ID>
AI executes:
python3 /Users/shiheng/.qclaw/workspace/skills/consul-deregister/scripts/deregister.py \
--from-curl "curl -XPUT http://\x3CCONSUL_HOST>:8500/v1/agent/service/deregister/\x3CSERVICE_ID> ..."
Mode 3: Read Agent List from File
python3 /Users/shiheng/.qclaw/workspace/skills/consul-deregister/scripts/deregister.py \
--service-id my-service-id \
--agents-file ./agents.txt
agents.txt format (supports # comments):
# Consul Agent node list
\x3CCONSUL_HOST_1>:8500
\x3CCONSUL_HOST_2>:8500
\x3CCONSUL_HOST_3>:8500
Dry-Run Preview
Add --dry-run to any mode to preview the requests without actually sending them:
python3 /Users/shiheng/.qclaw/workspace/skills/consul-deregister/scripts/deregister.py \
--service-id my-service-id \
--agents http://\x3CCONSUL_HOST_1>:8500 http://\x3CCONSUL_HOST_2>:8500 \
--dry-run
With ACL Token
python3 /Users/shiheng/.qclaw/workspace/skills/consul-deregister/scripts/deregister.py \
--service-id my-service-id \
--agents http://\x3CCONSUL_HOST>:8500 \
--token your-consul-acl-token
Common Workflows
Scenario 1: Batch Deregister Gray Nodes User provides a service ID and multiple IP:port pairs.
Scenario 2: Release Rollback User triggers rollback; AI finds the old version's service ID from config/docs and deregisters.
Scenario 3: Service Migration Moving a service from old cluster to new cluster — deregister from all old cluster nodes first.
Notes
service-idmust exactly match the ID registered in Consul (no extra spaces)- Agent addresses accept both
host:portand full URL (http://host:port) — auto-completed - Parallel requests by default (up to 10 concurrent), automatic speedup for many nodes
- Non-zero exit code on any failure; AI will surface failure details
- Use
--jsonfor JSON output suitable for scripting / pipeline integration
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install consul-deregister - After installation, invoke the skill by name or use
/consul-deregister - Provide required inputs per the skill's parameter spec and get structured output
What is Consul Service Deregister?
Consul service deregistration tool. Triggered when users mention Consul deregister, remove service instance, service removal, or offline. Supports batch dere... It is an AI Agent Skill for Claude Code / OpenClaw, with 117 downloads so far.
How do I install Consul Service Deregister?
Run "/install consul-deregister" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Consul Service Deregister free?
Yes, Consul Service Deregister is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Consul Service Deregister support?
Consul Service Deregister is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Consul Service Deregister?
It is built and maintained by strongant (@strongant); the current version is v1.0.4.