Skip to main content
Use metadata.astrolabe.stack to select a stack for one request. The value is a stack slug, such as code-agent, customer-data, or a custom stack slug from your workspace.

Selection precedence

Astrolabe resolves stacks in this order:
  1. metadata.astrolabe.stack
  2. API-key assignment
  3. Workspace assignment
  4. Managed default
The request override wins only for that request.

Supported request metadata

Astrolabe reads these fields from metadata.astrolabe:

Responses example

Chat Completions example

Error behavior

If the stack slug is unknown, inactive, or not available to the workspace, Astrolabe returns a stack resolution error before provider execution. If the stack exists but policy boundaries reject every candidate, Astrolabe returns:
Use the request id and route trace to inspect rejected candidates.