360 Secure SkillHub
360 安全技能中心

Portainer

该 Skill 通过 Portainer CE HTTP API 管理 Docker 基础设施:列出环境(endpoints)与堆栈、查看堆栈详情、依据 Compose 内容部署或删除堆栈,并可经 Portainer 代理执行原始 Docker API 命令;需在 OpenClaw 中配置 Portainer API Key,由 Python 脚本调用。

分类:开发
leventsoft
leventsoft
热度 50.79
最近更新 2026-05-18 11:58:30

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add leventsoft/portainer-skill-openclaw
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
portainer
description
Comprehensive management for Portainer CE environments and stacks. Supports listing environments, managing Docker Compose/Swarm stacks, and executing raw Docker commands via proxy. Use when the user needs to deploy apps, check container status, or manage networks within Portainer. Requires a Portainer API Key configured in OpenClaw.

Portainer Manager Skill

Manage your Docker infrastructure through the Portainer CE HTTP API.

Setup

Add your Portainer API Key to your OpenClaw configuration:

openclaw config set portainer.apiKey "your_token_here"

Functions

  • list_environments(): Retrieves all Portainer environments (endpoints).
  • list_stacks(environment_id): Lists all stacks. Optional: filter by environment ID.
  • inspect_stack(stack_id): Returns full JSON details for a specific stack.
  • deploy_stack(stack_name, compose_content, environment_id): Launches a new Docker Compose stack from a string.
  • remove_stack(stack_id): Deletes a stack by ID.
  • execute_docker_command(environment_id, path, method, payload): Advanced. Proxies raw Docker API requests (e.g., /containers/json) through Portainer.