Skip to main content
An instance is a running deployment of a registered agent. Each instance receives a permanent endpoint that stays the same across redeployments, so callers never need to update a URL. When you deploy an agent, the platform creates a running instance at a stable URL. That URL stays fixed even when you roll out new code, so downstream callers and integrations never need to update their configuration.

Permanent endpoints

Each unique configuration produces a unique, stable URL:
The endpoint is derived deterministically from the agent identity and its configuration. Same agent + same configuration always produces the same endpoint; different configuration produces a different endpoint. Redeploying with identical settings returns the same endpoint.

Instance states

If the underlying infrastructure fails, the platform recovers the instance automatically. The endpoint stays the same throughout.

SDK methods

There is no client.compute.instance.deploy() in the SDK. Deploy via the REST API or CLI as shown below.

Deploy an instance

Deploying is done via the REST API or CLI:

Deploy request parameters

object
Key-value pairs injected as environment variables. Keep secrets in a secret manager rather than hardcoding them here.
string
Compute tier: micro, standard, large, or gpu. Defaults to standard.

Deploy response

string
Unique instance identifier.
string
Permanent URL: https://agent-<name>-<hash>.compute.hexelstudio.com.
string
Initial state (deploying).
string
The agent this instance belongs to.
string
Compute tier assigned.

Call your agent

Once the instance reaches running:

Manage instances

The platform pulls the latest version of the registered image, restarts the instance, and runs health checks. The permanent endpoint stays the same. Traffic is routed to the new revision once health checks pass.
Yes. Each unique configuration (agent + env) produces its own permanent endpoint and instance.
The image likely doesn’t implement /health correctly. Check that your server starts on AGENT_PORT (default 8080) and returns HTTP 200 from GET /health.
Deployment returns HTTP 503. The platform does not fall back to a different tier. Retry later or choose a different tier.

Limits & quotas

Numeric limits depend on your plan — see the Console.

Errors

Security

Production recommendations

  • Roll out new revisions with redeploy so the permanent endpoint stays stable for callers.
  • Watch instance logs and metrics during and after rollouts.
  • Set alerts on the failed state and on latency regressions.
  • Keep production and development instances in separate environments.

Common mistakes

  • Expecting a new endpoint on every deploy. Identical configuration returns the same endpoint by design.
  • Treating failed as permanent. Fix the image or configuration and redeploy.
  • Baking secrets into configuration. Use a secret manager and reference values at runtime.

Best practices

  • Use redeploy for new revisions so callers keep the same endpoint.
  • Watch logs and metrics during rollouts.
  • Keep production and development instances in separate environments.

Agents

Register images and the agent contract.

Scaling

Adjust capacity under load.

Runtime Lifecycle

Recovery and runtime leases.

First Deployment

The full deploy walkthrough.

Next steps

Continue to Scaling to handle production load.