hangar DOCS
Get started

Launch your first agent.

From an API key to a live conversation in four requests.

1. Create an API key

Create a project API key in the Hangar console and store it outside your source code.

export HANGAR_API_KEY=hangar_live_…

2. Create an instance

Ask the control plane for a managed OpenClaw runtime in the EU region.

curl -X POST https://api.hangar.dev/v1/instances \
  -H "Authorization: Bearer $HANGAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Support concierge","agent":"openclaw","tier":"plus","region":"eu"}'
import requests

response = requests.request(
  "POST", "https://api.hangar.dev/v1/instances",
  headers={"Authorization": "Bearer " + api_key},
  json={"name":"Support concierge","agent":"openclaw","tier":"plus","region":"eu"},
)
print(response.json())
const response = await fetch("https://api.hangar.dev/v1/instances", {
  method: "POST",
  headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json"},
  body: JSON.stringify({"name":"Support concierge","agent":"openclaw","tier":"plus","region":"eu"})
});
console.log(await response.json());

3. Send a message

Wait until the instance status becomes running, then send a turn to its instance URL.

curl https://ins_7b3p.hangar.app/v1/responses \
  -H "Authorization: Bearer $HANGAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":"Summarise today’s inbound requests."}'

4. Delete the instance

Delete development instances when you are finished. Billing stops when deletion completes.

curl -X DELETE https://api.hangar.dev/v1/instances/ins_7b3p \
  -H "Authorization: Bearer $HANGAR_API_KEY"