No articles match “”. Try a broader term like token, yaml, or 429.
Getting started

Quickstart

Avyron Space provisions ephemeral, container-isolated development workspaces on demand. This guide takes you from zero to a running workspace in three commands. You will need an Avyron account and an organization seat — create one at account.avyron.space.

terminal
# 1. install the CLI (no global install required)
npx @avyron/cli@latest init --region eu-west

# 2. authenticate against your organization
avyron login --org acme

# 3. boot a workspace from your committed .avyron.yaml
avyron up

The first boot in a new region warms a kernel pool for your org. Subsequent avyron up calls resume from snapshot in ~1.9 seconds.

CLI

CLI installation & commands

The @avyron/cli package is distributed on npm and ships a single self-updating binary. Pin a version in CI, or track latest locally.

Core commands

  • avyron up — boot or resume the workspace defined in .avyron.yaml.
  • avyron code <ws-id> — attach your local VS Code over a secure tunnel.
  • avyron ports expose <port> --share team — publish an org-scoped preview URL.
  • avyron down — suspend the workspace; pinned volumes are retained.
Workspaces

.avyron.yaml workspace reference

Commit a .avyron.yaml file to the root of your repository. It declares the runtime image, resources, feature flags, and the volumes that persist across ephemeral boots.

.avyron.yaml
version: 1
runtime: container
image: ghcr.io/acme/base:node20
region: eu-west-ams1

resources:
  cpu: 8            # vCPU, burstable to 16
  memory: 16Gi
  storage: 40Gi

features:
  docker: true      # rootless Docker-in-Docker
  dotfiles: github.com/acme/dotfiles

volumes:
  - path: /workspace/.cache
    persist: true

env:
  NODE_ENV: development

idle_timeout: 20m  # auto-suspend after inactivity

Field summary

  • runtime — currently container; microvm is in private beta.
  • resources.cpu — baseline vCPU; workspaces burst to 2× under load.
  • volumes[].persist — when true, the path survives suspend/teardown and is snapshot-eligible.
  • idle_timeout — duration string (10m, 1h) before auto-suspend.
Workspaces

Workspace lifecycle

A workspace moves through four states. Transitions are event-sourced and streamed to your audit log.

  • provisioning — kernel pulled from warm pool, volumes mounted, dotfiles applied.
  • running — interactive; metered per compute-second.
  • suspended — idle past idle_timeout; CPU released, pinned volumes retained.
  • terminated — ephemeral state discarded; snapshots (if any) retained per policy.
REST API

POST /api/v1/auth/verify

Validates a workspace provisioning token against the organization ACL and returns the granted scopes. Called by the CLI and the account portal before establishing a session. Requests must be made from a source IP registered in your organization’s allowlist.

POST/api/v1/auth/verify
# request
curl -X POST https://api.avyron.space/api/v1/auth/verify \
  -H "Content-Type: application/json" \
  -d '{
    "workspace_id": "ws-ams1-b7c",
    "token": "avy_tok_8f2c…",
    "source_ip": "203.0.113.24"
  }'

# 200 OK
{
  "valid": true,
  "workspace_id": "ws-ams1-b7c",
  "scopes": ["workspace.exec", "workspace.read"],
  "expires_in": 900,
  "trace_id": "req_a91f3c7e42b8d510f6c29ab4"
}

A 401 with “source IP not registered in organization ACL” means the request originated outside your allowlist. Add the egress range under account.avyron.space → Security.

REST API

GET /api/v1/subscriptions/manifest

Returns the seat-license manifest for the authenticated organization — the authoritative source for seat counts, included compute, and renewal dates. Poll this endpoint to synchronize seat state into your own systems; it is also surfaced at sub.avyron.space.

GET/api/v1/subscriptions/manifest
# request
curl https://api.avyron.space/api/v1/subscriptions/manifest \
  -H "Authorization: Bearer avy_key_•••"

# 200 OK
{
  "organization": "acme",
  "plan": "team-cloud",
  "seats_total": 50,
  "seats_active": 42,
  "compute_hours_included": 8000,
  "compute_hours_used": 3120,
  "billing_cycle": "annual",
  "renews_at": "2026-12-01T00:00:00Z"
}
REST API

Standard response codes

All endpoints return conventional HTTP status codes. Error bodies carry a machine-readable error, a human message, and a trace_id you can quote to support.

CodeMeaningWhen you’ll see it
200OKToken valid; manifest returned successfully.
401UnauthorizedWorkspace token invalid, expired, or source IP not in the organization ACL.
403ForbiddenSeat suspended, or the role lacks the required scope (e.g. iam:workspace.read).
422Unprocessable EntityPayload failed validation — malformed Workspace ID or subscription key checksum.
429Too Many RequestsVerification rate limit exceeded; honor the Retry-After header.
REST API

Response headers

Every API response includes observability and rate-limit headers. Log the X-Avyron-Trace-Id alongside your own request IDs to correlate with Avyron support.

HeaderExampleDescription
X-Avyron-Trace-Idreq_a91f3c7e42b8Correlation ID for the request; echoed on errors.
X-RateLimit-Limit600Requests permitted per rolling minute.
X-RateLimit-Remaining588Requests remaining in the current window.
Retry-After30Seconds to wait after a 429.
X-Avyron-Regioneu-west-ams1Region that served the request.