PixelCloud CLI & API
Manage game servers from your terminal, automation, or AI coding agent.
Install
Requires Node.js >= 18
Quick Start
pixel auth loginAuthenticate via device code flow (opens browser)
pixel search image "minecraft"Search for available game server images
pixel create --image-id 1 --plan 1Create a new game server
pixel statusList all your servers
pixel prompt "create a minecraft server"Let AI handle it with natural language
HTTP API
Control selected servers from scripts and integrations with a versioned JSON API and a server-scoped key.
Base URL
https://api.edgerunners.cn/v1Authentication
Authorization: Bearer egrs_sk_… Your first request
curl https://api.edgerunners.cn/v1/servers \
-H "Authorization: Bearer $PIXELCLOUD_API_KEY"/serversList servers this key can access
/servers/:idRead one permitted server
/servers/:id/startStart a stopped server
/servers/:id/stopStop a running server
/servers/:id/restartGracefully restart a server
/servers/:id/force-restartForce a stuck server pod to restart
Agent Skill
Teach your AI coding agent how to manage game servers with the PixelCloud CLI or scoped HTTP API.
Install via Skills CLI
Works with Claude Code, Copilot, Cursor, Codex, and 40+ other AI coding agents via the open skills ecosystem.
Manual Copy
Or copy this snippet into your agent's system prompt or skill configuration.
You can manage PixelCloud game servers with the `pixel` CLI or its scoped HTTP API. When PIXELCLOUD_API_KEY is available, use https://api.edgerunners.cn/v1 for existing server status and lifecycle actions. Send the key only as an Authorization: Bearer header. The key can access only the servers selected in the dashboard. Available commands: pixel auth login # authenticate (opens browser) pixel create --image-id <id> --plan <id> [--name <n>] [--env K=V...] pixel start --server-id <id> pixel stop --server-id <id> pixel restart --server-id <id> pixel force-restart --server-id <id> pixel delete --server-id <id> [--yes] pixel search image [keywords] # search game images pixel prompt <message> # AI assistant pixel status # list all servers pixel status --server-id <id> # details of one server Add --json to any command for machine-readable output. Environment variables: PIXELCLOUD_TOKEN, PIXELCLOUD_API_KEY, PIXELCLOUD_API_URL, PIXELCLOUD_WEB_URL