360 Secure SkillHub
360 安全技能中心

Flyio

这是一款基于Fly.io Machines API的Python CLI工具,仅依赖标准库,无额外依赖。核心功能涵盖应用、机器、存储、密钥、证书的全生命周期管理,支持全球区域部署、弹性缩放、健康监测等操作。适用于全球边缘容器部署、无服务器缩放、基础设施自动化场景,需配置FLY_API_TOKEN,通过命令行调用,输出默认JSON可选人类可读格式。

aiwithabidi
aiwithabidi
热度 56.38
最近更新 2026-05-10 17:40:54
分类:开发依赖:代码执行 / 第三方 API应用场景:DevOps / API 集成 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add flyio
Metadata
name
flyio
description
Fly.io edge deployment platform — manage apps, machines, volumes, secrets, and certificates via the Fly.io Machines API. Deploy containers globally, scale to zero, manage persistent storage, and configure networking. Built for AI agents — Python stdlib only, zero dependencies. Use for edge deployment, container management, global distribution, serverless scaling, and infrastructure automation.
homepage
https://www.agxntsix.ai
license
MIT
compatibility
Python 3.10+ (stdlib only — no dependencies)
metadata
{"openclaw":{"emoji":"✈️","requires":{"env":["FLY_API_TOKEN"]},"primaryEnv":"FLY_API_TOKEN","homepage":"https://www.agxntsix.ai"}}

✈️ Fly.io

Fly.io edge deployment platform — manage apps, machines, volumes, secrets, and certificates via the Fly.io Machines API.

Features

  • App management — create, list, configure apps
  • Machine operations — start, stop, restart machines
  • Volume management — persistent storage provisioning
  • Secret management — secure environment secrets
  • Certificate management — SSL/TLS auto-provisioning
  • Scaling — scale machines up/down, auto-stop
  • Region selection — deploy to specific global regions
  • Health checks — monitor machine health
  • Network config — IP allocation, private networking
  • Deployment — rolling deploys with canary support

Requirements

Variable Required Description
FLY_API_TOKEN ✅ API key/token for Fly.io

Quick Start

# List apps
python3 {baseDir}/scripts/flyio.py apps --limit 20
# Get app details
python3 {baseDir}/scripts/flyio.py app-get my-app
# Create an app
python3 {baseDir}/scripts/flyio.py app-create '{"app_name":"my-service","org_slug":"personal"}'
# List machines
python3 {baseDir}/scripts/flyio.py machines --app my-app

Commands

apps

List apps.

python3 {baseDir}/scripts/flyio.py apps --limit 20

app-get

Get app details.

python3 {baseDir}/scripts/flyio.py app-get my-app

app-create

Create an app.

python3 {baseDir}/scripts/flyio.py app-create '{"app_name":"my-service","org_slug":"personal"}'

machines

List machines.

python3 {baseDir}/scripts/flyio.py machines --app my-app

machine-get

Get machine details.

python3 {baseDir}/scripts/flyio.py machine-get --app my-app mach_abc123

machine-start

Start a machine.

python3 {baseDir}/scripts/flyio.py machine-start --app my-app mach_abc123

machine-stop

Stop a machine.

python3 {baseDir}/scripts/flyio.py machine-stop --app my-app mach_abc123

machine-create

Create a machine.

python3 {baseDir}/scripts/flyio.py machine-create --app my-app '{"config":{"image":"nginx:latest","guest":{"cpus":1,"memory_mb":256}}}'

volumes

List volumes.

python3 {baseDir}/scripts/flyio.py volumes --app my-app

volume-create

Create a volume.

python3 {baseDir}/scripts/flyio.py volume-create --app my-app '{"name":"data","size_gb":10,"region":"ord"}'

secrets

List secrets.

python3 {baseDir}/scripts/flyio.py secrets --app my-app

secret-set

Set a secret.

python3 {baseDir}/scripts/flyio.py secret-set --app my-app "DATABASE_URL" "postgres://..."

certs

List certificates.

python3 {baseDir}/scripts/flyio.py certs --app my-app

regions

List available regions.

python3 {baseDir}/scripts/flyio.py regions

status

App status overview.

python3 {baseDir}/scripts/flyio.py status --app my-app

Output Format

All commands output JSON by default. Add --human for readable formatted output.

# JSON (default, for programmatic use)
python3 {baseDir}/scripts/flyio.py apps --limit 5

# Human-readable
python3 {baseDir}/scripts/flyio.py apps --limit 5 --human

Script Reference

Script Description
{baseDir}/scripts/flyio.py Main CLI — all Fly.io operations

Data Policy

This skill never stores data locally. All requests go directly to the Fly.io API and results are returned to stdout. Your data stays on Fly.io servers.

Credits


Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.

📅 Need help setting up OpenClaw for your business? Book a free consultation