Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Replace the host's model folders (priority order) and the folder downloads go to

PUT
/v1/studio/admin/hosts/{host}/folders
curl --request PUT \
--url http://localhost:8300/v1/studio/admin/hosts/example/folders \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "folders": [ { "path": "~/GenAI/models" } ], "downloads": 1 }'

. Admin only (403). Replaces the list, version + 1, published like the settings. A model folder is loaded from the first connected folder of the list that has a complete copy. Paths are absolute or ~/…, no .., no duplicates. Studio first asks the host’s supervising runner (req.runner.folders.check, 5 s): 422 <path> is not a folder on <host> (not a directory now and not under /Volumes: a drive’s folder may be listed while unplugged), <path> is not writable on <host> (the downloads folder only; a read-only folder may be listed), downloads must be a connected folder; 422 paths must be absolute or start with ~/, <path> is listed twice, downloads must be an index of folders; 503 <host> is offline (no runner answered). A first PUT creates the row with the other settings copied from the freshest key’s policy. 404 for a host with no present hosts key.

host
required
string

Unknown or malformed = 404)

Media typeapplication/json

The whole list, first = loaded first

object
folders
required
Array<object>
>= 1 items <= 8 items
object
path
required
string
>= 1 characters <= 400 characters /^(/|~/)/
downloads
required

The index in folders of the folder downloads go to

integer
<= 7

The settings

Media typeapplication/json
object
host
required
string
version
required
integer
>= 1
after_run
required

What stays loaded once a run ends: unload = nothing (the board’s Unload everything); keep_warm = everything until memory is needed or the idle timeout passes (the default); keep_pinned = only the pins

string
Allowed values: unload keep_warm keep_pinned
idle_unload_min
required
integer
<= 1440
reserve_gb
required
number
reserve_mode
required

Auto = the macOS GPU limit when set (at most RAM − 4 GB), else device memory − RUNNER_RESERVE_GB; custom = device memory − reserve_gb (the default). Absent = custom (a PUT: unchanged)

string
Allowed values: auto custom
pins
required
Array<object>

One resident entry’s identity (registry $defs/pin): what a resident component of GET /v1/studio/hosts shows, with its entry’s env

object
env
required
string
/^[a-z0-9]{1,32}$/
component
required
string
/^[a-z][a-z0-9_]{0,63}$/
model
required
string
/^[a-z0-9][a-z0-9_.-]{0,63}$/
variant
required
string
/^[a-z0-9][a-z0-9_-]{0,63}$/
precision
required
string
Allowed values: bf16 fp16 int8 int4 fp8 fp32
compute

The entry’s compute as GET /v1/studio/hosts shows it; absent = float32

string
Allowed values: float32 float16
loras

A baked set, in order (lora_id and strength as the admin’s hosts view shows them); absent or empty = the plain component

Array<object>
<= 32 items
object
lora_id
required
string
/^([0-9a-f]{64}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$/
strength
required
number
folders
required
One of:
Array<object>
>= 1 items <= 8 items
object
id
required

A model folder’s id, the first 12 hex of the SHA-256 of its path as stored

string
/^[0-9a-f]{12}$/
path
required
string
downloads
required
One of:

A model folder’s id, the first 12 hex of the SHA-256 of its path as stored

string
/^[0-9a-f]{12}$/
applied
required

Every fresh hosts key of the host (but a local server’s server env, which holds no weights) reports policy.settings_version = version

boolean
updated_at
required
string format: date-time

Example

{
"after_run": "unload",
"reserve_mode": "auto",
"pins": [
{
"precision": "bf16",
"compute": "float32"
}
]
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Valid token without the admin role: “admin role required”

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Invalid input

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}