clab-lab-management

Automate ContainerLab network lab lifecycle management via the ContainerLab API.

Updated Feb 28, 2026
One-click install
npx skills add https://github.com/dgethings/netclaw --skill clab-lab-management-dgethings
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clab-lab-management
Source: https://github.com/dgethings/netclaw/tree/main/workspace/skills/clab-lab-management
Command: npx skills add https://github.com/dgethings/netclaw --skill clab-lab-management-dgethings

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ContainerLab lab lifecycle management automates authenticating, listing, deploying, inspecting, executing commands on, and destroying containerized network labs via the ContainerLab API. This reduces manual toil and operational errors in setting up reusable test environments.

Core Features & Use Cases

  • Authenticate to the ContainerLab API and auto-authenticate on subsequent tool calls.
  • List existing labs, deploy new topologies, inspect lab status, execute commands on lab nodes, and destroy labs when finished.
  • Use cases include spinning up SR Linux or cEOS topologies for quick experiments, running diagnostic commands, and tearing down environments with auditable trails.

Quick Start

Authenticate to ContainerLab and deploy your first lab topology using the example in the documentation.

Frequently Asked Questions about clab-lab-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate ContainerLab topology deployment and teardown?

Automating ContainerLab topology deployment and teardown requires configuring environment variables like CLAB_API_SERVER_URL, CLAB_API_USERNAME, and CLAB_API_PASSWORD to authenticate with the ContainerLab API. Once authenticated, you can deploy, inspect, and destroy labs programmatically.

Can I use ContainerLab to deploy SR Linux and cEOS topologies?

Yes, you can deploy SR Linux and cEOS topologies using ContainerLab. The management process supports deploying these specific network operating system topologies, running diagnostic commands on the nodes, and tearing down the test environments with auditable trails.

Do I need any specific environment variables to manage ContainerLab labs?

Yes, managing ContainerLab labs requires configuring environment variables including CLAB_API_SERVER_URL, CLAB_API_USERNAME, CLAB_API_PASSWORD, CLAB_MCP_SCRIPT, and MCP_CALL. These variables enable authentication and orchestrate the lab lifecycle through the ContainerLab API.

What is the best way to run commands on ContainerLab lab nodes?

The best way to run commands on ContainerLab lab nodes is through a management interface that utilizes the ContainerLab API. This method executes commands on deployed nodes and captures outputs, ensuring reproducible and auditable lab sessions.

Why does my ContainerLab lab deployment fail with an authentication error?

ContainerLab lab deployment fails with an authentication error when the CLAB_API_USERNAME or CLAB_API_PASSWORD environment variables are missing or invalid. Correctly configuring these credentials ensures successful auto-authentication on subsequent tool calls.

Does this approach support inspecting the status of deployed network labs?

Yes, inspecting the status of deployed network labs is supported. The management process interfaces with the ContainerLab API to retrieve and display the operational status of active lab environments after the topology deployment is complete.