07 · CLI, SDK, MCP & AUTOMATION
Operate from terminal,
code, or AI coding agents.
Every interface calls the same /v1 REST and SSE control-plane API—complete with OAuth 2.1 MCP permissions, UTC cron jobs, live log streaming, and signed webhooks.
# Authenticate via browser device-code flow (90-day revocable token)
$ neatploy login
$ neatploy link
# Upload current directory (respects .dockerignore, up to 500 MB)
$ neatploy up
✓ Built with Railpack · pushed to registry.internal/acme/api:dep_01j...
✓ Zero-downtime swap complete → api-production-acme-k3x9.up.neatploy.com
# Stream live logs, connect to Postgres, or roll back instantly
$ neatploy logs -f --level error
$ neatploy db connect
$ neatploy rollback dep_01j9x7... Single Go binary for macOS, Linux, and Windows
Uses the exact same `/v1` API and RBAC rules as the dashboard. Staging variables with `vars set` confirms before triggering a deploy,
and destructive project/service deletes stay out of the CLI by design.
- CI auth
NEATPLOY_TOKEN - Local env injection
neatploy run -- npm dev - GPU inventory
neatploy gpus
import { Neatploy } from "@neatploy/sdk";
const dp = new Neatploy({ token: process.env.NEATPLOY_TOKEN });
// Create an isolated gVisor sandbox inside your environment
const box = await dp.sandboxes.create({
project: "agent-runner",
environment: "production",
image: "sandbox-base",
idleTimeoutMinutes: 15,
});
const res = await box.exec("pytest -q");
const preview = await box.openPort(3000); // generated HTTPS URL
await box.checkpoint(); // same-node snapshot for forking TypeScript SDK — built sandboxes-first
Designed for coding agents, evaluation runners, and automated workflows. Sandboxes run under gVisor, reach databases over `<service>.internal`,
and enforce the same egress rules as production apps.
- Base images
sandbox-base / sandbox-cuda - Interactive shell
WebSocket PTY - Idle timeout
15m default · 24h max
{
"mcpServers": {
"neatploy": {
"url": "https://mcp.neatploy.com",
"auth": "oauth2.1-dynamic-client-registration"
}
}
}
// Exposed tool surface (audited with client name):
read: list_projects, get_service, get_logs, get_metrics, list_deployments
write: deploy_service, redeploy, rollback, set_variables, create_database,
create_sandbox, exec_sandbox
blocked: zero delete tools · secret values are never returned Safe by construction for AI agents
Agents authenticate via OAuth 2.1 with dynamic client registration (30-day org-scoped grants). Every tool call is recorded in your
organisation audit log with the client name, and destructive deletions are intentionally excluded.
- Endpoint
mcp.neatploy.com - Secret exposure
Redacted on read - Revocation
Org → Connected apps
UTC CRON JOBS
5-minute minimum cadence
Any app service can run on a 5-field UTC schedule (15m default timeout, 1h max). Overlapping runs skip cleanly and you can
trigger runs immediately via neatploy cron run.
NOTIFICATIONS
5 channels + HMAC webhooks
Deliver deploy, cron, backup, volume (>90%), and balance alerts to Email, Slack, Discord, Telegram, or HMAC-SHA256 webhooks.
MCP ENDPOINT
https://mcp.neatploy.com
OAuth 2.1 with dynamic client registration (30-day org grants). Audited per call with zero delete tools and redacted secrets.
GET STARTED
Plan less infrastructure.
Ship more software.
Start with $5 in monthly free credit on your first verified organisation. Connect a GitHub repo or add a database in minutes.
Runtime gVisor (runsc)
Free credit $5.00 / month
Managed backups Every 6h → R2
Traffic swap Zero-downtime