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

Add as provider — a model-provider plugin becomes the caller's own local server provider

POST
/v1/studio/admin/plugins/{plugin}/provider
curl --request POST \
--url http://localhost:8300/v1/studio/admin/plugins/example/provider \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '{ "key": "example", "title": "example", "default_model": "example", "host": "example" }'

Admin only (403). The plugin must be a model-provider and on (409 turn <title> on first; 409 <title> is not a model provider). Studio asks pipelines.providers.key.write to check key on the plugin’s <url><provider.path>/models and write it to the key file plugin-<plugin>-<8 hex of the caller's id> (as PUT /admin/provider-keys does), then creates or replaces the provider <plugin>-<8 hex>: kind server, base_url <url><provider.path>, the manifest’s models, timeout and memory, host host (absent: the first host by name). A personal plugin’s provider is Only you (owner_id the caller): no other account sees or uses it. for it, then checks and writes it the same way; the key is never in a response, an event or a log. Its errors: 409 No runner is up on <host>: start helmstudio there, <title> is not running: turn it on first, <title> makes its key on first start: turn it on, then Try again (no key yet), <title> refused its own key: turn it off and on, then Try again (the check was refused), the runner on <host> can't read <title>'s key: see its log (refused or not found by the runner); 503 the runner on <host> did not answer; try again. <title> did not answer: start it, then Try again (unreachable: nothing saved), a default_model not in its models, an unknown host; 409 keys are set in files on this deployment; 503 no answer from pipelines.

plugin
required
string

A plugin’s name (its folder; unknown or malformed = 404)

Media typeapplication/json

Add as provider

object
key

The plugin’s key (its key_hint); checked, then written as ProviderKeySave’s; never returned, logged or stored outside the key file. Required (422 key must be 1-1024 characters) unless the plugin is key_from_host

string
>= 1 characters <= 1024 characters /^\s*[!-~]+\s*$/
title

Owner, 2026-11-25)

string
>= 1 characters <= 60 characters
default_model

Absent: the first of its models

string
/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,127}$/
host

The host whose memory it shares; absent: the first host by name

string
/^[a-z0-9]{1,32}$/

Example generated

{
"key": "example",
"title": "example",
"default_model": "example",
"host": "example"
}

The provider

Media typeapplication/json

One model provider as the admin sees it.

object
name
required
string
/^[a-z][a-z0-9-]{0,31}$/
kind
required

Server: a local server you run (loopback or private address, or the Docker host: what host.docker.internal resolves to); remote: outside the machine (https; only when the deployment has remote models on); only with remote models on; never a model source)

string
Allowed values: server remote search
api
required

Openai: OpenAI-compatible /v1/chat/completions (ChatOpenAI(base_url=…))

string
Allowed values: openai brave
title

What users see (Ollama on the Mac); absent = name

string
<= 60 characters
base_url
required
string
<= 300 characters
models
required

The models pipelines may name

Array<string>
>= 1 items <= 16 items unique items
default_model
required

One of models (server:<name> without a model)

string
enabled
required
boolean
timeout_s
required
integer
>= 5 <= 600
host

Server: the GPU host whose memory it shares

string
memory_gb

Server: declared; the host reserves it while enabled

number
>= 0.5 <= 1024
key_secret

Remote: the secret file’s name

string
max_in_flight

Remote: calls in flight at once (default 2)

integer
>= 1 <= 8
compat

What a provider’s OpenAI layer refuses of what pipelines sends (messages defs providerCompat; from a preset, Anthropic’s). temperature false: none sent; strict_schema true: json_schema with strict true, never retried as json_object; Absent = the usual calls

object
temperature
boolean
strict_schema
boolean
headers

Fixed extra headers sent on every call to the provider (chat, Test, Fetch, the key check); only allow-listed safe names (never authorization, x-api-key, cookie, host): anthropic-version (Anthropic’s preset: 2023-06-01)

object
>= 1 properties <= 4 properties
key
additional properties
string
/^[\x21-\x7e][\x20-\x7e]{0,99}$/
preset

The preset it was filled from

string
/^[a-z][a-z0-9-]{0,31}$/
thinking

: a thinking level per model. Each key is one of models, each level one its rule allows (else 422 naming the model; a model no rule covers is 422 too). Absent or {} = nothing sent: the provider’s own default. Studio resolves it into the batch snapshot (messages defs providerThinking)

object
<= 16 properties
key
additional properties

Off + on, or some of off, low, medium, high (our high is the provider’s high, never max)

string
Allowed values: off on low medium high
thinking_levels

(read only): what each saved model offers, for the models its preset’s rules cover (absent: no control). The form and the AI agents tab need no copy of the rules

object
<= 16 properties
key
additional properties

What one model offers: its levels (empty when it always thinks), always (thinks and cannot be set), default (what the provider uses when nothing is sent)

object
levels
required
Array<string>
<= 4 items unique items
Allowed values: off on low medium high
always
boolean
default

Off + on, or some of off, low, medium, high (our high is the provider’s high, never max)

string
Allowed values: off on low medium high
owner_id

(read only): an Only-you provider’s owner, the admin who added it from a personal plugin. Only that account sees or uses it (every list, the AI agents picker, pipeline rules, the assistant); absent = everyone’s

string format: uuid
plugin

(read only): the plugin it was made from (Add as provider)

string
/^[a-z][a-z0-9-]{0,22}$/
created_at
required
string format: date-time
updated_at
required
string format: date-time

Example

{
"kind": "server",
"api": "openai",
"base_url": "http://host.docker.internal:11434/v1",
"thinking": {
"additionalProperty": "off"
},
"thinking_levels": {
"additionalProperty": {
"levels": [
"off"
],
"default": "off"
}
}
}

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"
}

The resource’s state forbids this

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"
}