Skip to content

Persistent hosting

Deploy a Docker image as a persistent service with a live HTTPS URL — for the apps and APIs your agents build that need to stay up (unlike ephemeral preview URLs, which live and die with a sandbox).

Deploy

From the dashboard: Deploy → Deploy a service. Give it a name, a Docker image, and the port it listens on.

Over the REST API:

bash
curl -X POST https://api.ai2in.dev/v1/hosting/services \
  -H "Authorization: Bearer ai2in_live_…" \
  -H "Content-Type: application/json" \
  -d '{"name": "hello", "image": "nginxdemos/hello", "internal_port": 80}'

Response:

json
{ "subdomain": "hello", "url": "https://hello.up.ai2in.dev", "status": "live" }

Manage

ActionEndpoint
LogsPOST /v1/hosting/services/:id/logs
RedeployPOST /v1/hosting/services/:id/redeploy
StopPOST /v1/hosting/services/:id/stop
DeleteDELETE /v1/hosting/services/:id

How it differs from sandboxes

SandboxHosted service
Lifetimeephemeral, idle-reapedpersistent, restarts on crash
URLper-port previewstable <name>.up.ai2in.dev
Userun agent codeship the result

Environment variables and a custom start command are supported via env and start_cmd in the deploy body.

Sovereign compute for Indian AI — hosted in Mumbai (ap-south-1).