puruto-gateway
What is puruto-gateway?
puruto-gateway is a local REST API (FastAPI scaffold) for discovering ecosystem Purutos and exposing base commands over HTTP. It lets you integrate Purutos with scripts, dashboards or external tools without going through the agent.
When to use it
- Integrate Purutos with shell or Python scripts
- Build a simple web dashboard over ecosystem status
- Expose ecosystem status to monitoring tools
- Automate flows that don’t require the agent interface
Generate it
python3 .claude/skills/puruto-generator/scripts/generate.py --name puruto-gatewayEndpoints (MVP)
GET /healthGET /purutosGET /purutos/{name}POST /purutos/{name}/{command} # command ∈ {init, help, list, status}Typical discovery response:
{ "status": "ok", "count": 1, "items": [ { "name": "puruto-data", "path": "/path/to/puruto-data", "kind": "puruto-data", "commands": ["init", "help", "list", "status"] } ]}Architecture
puruto-gateway uses invoker.py (shared ecosystem scaffold) to build invocations. The gateway acts as HTTP -> local invoker (stub in the MVP).
HTTP Client ↓puruto-gateway (FastAPI) ↓invoker.py ↓puruto-finance / puruto-data / ...Auth (MVP)
Endpoints under /purutos* require:
X-API-KeyheaderPURUTO_GATEWAY_API_KEYconfigured
See also
Included skills
/init— starts the local REST server/help— documents available endpoints/list— lists which Purutos are registered in the gateway/status— shows server state and registered Purutos