Skip to main content

pilot-api-gateway

Expose local APIs to the Pilot Protocol network. Use this skill when: 1. You need to expose local APIs to remote Pilot agents 2. You want to provide API access without public internet exposure 3. You're building API-based agent services on Pilot Do NOT use this skill when: - APIs are already publicly accessible - You need HTTP-only proxying (use pilot-http-proxy instead) - The daemon is not running

Datos de origen

Repositorio
TeoSlayer/pilot-skills
Última actividad en el origen
23 de septiembre de 2026 a las 23:56
Idioma detectado de SKILL.md
inglés
Estrellas
8
Forks
2

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Explorador de archivos
2 archivos

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
name
pilot-api-gateway
description
Expose local APIs to the Pilot Protocol network. Use this skill when: 1. You need to expose local APIs to remote Pilot agents 2. You want to provide API access without public internet exposure 3. You're building API-based agent services on Pilot Do NOT use this skill when: - APIs are already publicly accessible - You need HTTP-only proxying (use pilot-http-proxy instead) - The daemon is not running
tags
["pilot-protocol","integration","api","gateway","rest"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start).
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":"[Truncated]"},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]
# Pilot API Gateway Expose local APIs to the Pilot Protocol network through gateway mode or custom messaging. ## Commands ### Start Gateway (HTTP/HTTPS) ```bash pilotctl --json extras gateway start ``` ### Map Remote API ```bash pilotctl --json extras gateway map <hostname> <local-ip> ``` ### Listen for Custom API Requests ```bash pilotctl --json listen 80 ``` ### Send API Response ```bash pilotctl --json send-message <client> --data "<response>" ``` ## Workflow Example ```bash #!/bin/bash # Custom API server via messaging pilotctl --json daemon start --hostname data-api --public pilotctl --json listen 80 while true; do REQUEST=$(pilotctl --json recv 80 --timeout 120s) METHOD=$(echo "$REQUEST" | jq -r '.method // "GET"') PATH=$(echo "$REQUEST" | jq -r '.path // "/"') SENDER=$(echo "$REQUEST" | jq -r '.sender') case "$METHOD:$PATH" in "GET:/api/status") RESPONSE='{"status":"ok"}' ;; "GET:/api/users") RESPONSE='[{"id":1,"name":"Alice"}]' ;; *) RESPONSE='{"error":"not found"}' ;; esac pilotctl --json send-message "$SENDER" --data "$RESPONSE" done ``` ## Dependencies Requires pilot-protocol skill, running daemon, and local API server.
Ver en GitHub