Desktop reference · Local API

Models and providers

The models on offer, provider keys and addresses, OpenRouter sign-in, and the web search source. 31 operations of the TALOS Desktop local API.

Reference for TALOS Desktop 0.2.4 generated from the source of the release · released

The models on offer, provider keys and addresses, OpenRouter sign-in, and the web search source. Paths are relative to /api/v1.

The models a provider offers, asked of the provider itself (or, for a local one such as LM Studio, of the runtime that probes it), with the capabilities it declares.

Only the providers whose catalog appears in the window have this route. A capability the provider does not declare is reported as unknown, never as false.

Path

providerId
The provider (see Providers). Valuesesternoopenaichatgptdeepseekkimiminimaxqwenzaianthropicgeminilmstudiogroqcerebrasmistraltogetherfireworksdeepinfranovitanebiusxaiollama-cloudhuggingfacezai-anthropicminimax-anthropicazurebedrockvertex

Answers The JSON envelope.

Errors3
CodeStatusMeaning
CHATGPT_NON_DISPONIBILE 503 A ChatGPT account cannot be connected on this computer: the system keyring is not available.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.
REPORT_UNAVAILABLE 404 The report or service asked for is not available on this server yet.

Any operation can also answer the common errors.

The model providers and whether each one is configured (never the keys).

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Save the OpenRouter providers that requests skip: the whole list, and the default exclusions you changed, all or nothing.

Only from the TALOS window (or with the token from a client that is not a browser): it changes where every future request goes.

Body

esclusi
The providers excluded for every model: OpenRouter short names (slugs), the whole list.
diSerie
Default exclusions to change, up to 64: [{ modello, slug, attivo }], attivo: false to allow that provider again for that model.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

POST /providers/openrouter/esclusi/dalla-risposta

Section titled “POST /providers/openrouter/esclusi/dalla-risposta”

Exclude the provider that served an answer (“Exclude” in the answer’s menu): its slug is found from the name the answer declared.

Same defense as the whole list. OPENROUTER_PROVIDER_NOT_FOUND when no provider of the model has that name.

Body

fornitorerequired
The provider’s name, as the answer showed it.
modellorequired
The OpenRouter model id.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

POST /providers/openrouter/esclusi/di-serie

Section titled “POST /providers/openrouter/esclusi/di-serie”

Remove or put back one default exclusion of a model; answers the default exclusions and their state.

Same defense as the whole list.

Body

modellorequired
The OpenRouter model id.
slugrequired
The provider’s short name.
attivorequired
true to exclude it again, false to allow it.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

The catalog of models, from every configured provider and the local engine.

Query

forza
1 to refresh the catalog now instead of using the cached one.

Answers The JSON envelope.

Errors1
CodeStatusMeaning
REPORT_UNAVAILABLE 404 The report or service asked for is not available on this server yet.

Any operation can also answer the common errors.

The web search sources and which one is active (never the keys).

Answers The JSON envelope.

Errors2
CodeStatusMeaning
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.
SEARCH_STORE_UNAVAILABLE 503 The search key store is not available.

Any operation can also answer the common errors.

The runtime settings of one provider: its address and limits.

Path

providerId
The provider (see Providers).

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Choose the web search source.

Body

sourcerequired
The source.
endpoint
Its address, for a source you host.

Answers The JSON envelope.

Errors3
CodeStatusMeaning
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.
SEARCH_NOT_READY 409 The search source is not ready.
SEARCH_STORE_UNAVAILABLE 503 The search key store is not available.

Any operation can also answer the common errors.

Save the key of a search source.

Body

sourcerequired
The source.
keyrequired
The key.

Answers The JSON envelope.

Errors3
CodeStatusMeaning
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.
SEARCH_NOT_READY 409 The search source is not ready.
SEARCH_STORE_UNAVAILABLE 503 The search key store is not available.

Any operation can also answer the common errors.

Remove the key of a search source.

Body

sourcerequired
The source.

Answers The JSON envelope.

Errors3
CodeStatusMeaning
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.
SEARCH_NOT_READY 409 The search source is not ready.
SEARCH_STORE_UNAVAILABLE 503 The search key store is not available.

Any operation can also answer the common errors.

Try the active search source with a query (it must be ready).

Body

query
What to search for (a default query otherwise).

Answers The JSON envelope.

Errors3
CodeStatusMeaning
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.
SEARCH_NOT_READY 409 The search source is not ready.
SEARCH_STORE_UNAVAILABLE 503 The search key store is not available.

Any operation can also answer the common errors.

Test a provider: whether it answers with the key and address configured.

Path

providerId
The provider (see Providers).

Body

None: the body is empty.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Save the key of a provider (the single key).

Path

providerId
The provider (see Providers).

Body

keyrequired
The key.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Add a key to the provider’s pool of keys.

Path

providerId
The provider (see Providers).

Body

keyrequired
The key.
priorita
Its priority in the pool.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Remove the single key of a provider (the body must be empty).

Path

providerId
The provider (see Providers).

Body

None: the body is empty.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Remove a key from the pool, by its fingerprint.

Path

providerId
The provider (see Providers).

Body

improntarequired
The SHA-256 fingerprint of the key (64 hexadecimal digits).

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Set a provider’s address, timeout and, for cloud providers, its list of models.

For a local provider endpoint and timeoutSeconds are required; for a cloud provider every field is optional; for the external agent (esterno) the body is { agente }.

Path

providerId
The provider (see Providers).

Body

endpoint
The address of the provider.
timeoutSeconds
The timeout, in seconds.
modelli
Cloud providers: the models to offer.
agente
The external agent only: its command and settings.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

POST /providers/{providerId}/runtime/reset

Section titled “POST /providers/{providerId}/runtime/reset”

Put a provider’s address back to its default (the body must be empty).

Path

providerId
The provider (see Providers).

Body

None: the body is empty.

Answers The JSON envelope.

Errors2
CodeStatusMeaning
PROVIDER_STORE_UNAVAILABLE 503 The computer’s key store is not available: check the Doctor.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

“Continue with ChatGPT”: whether an account is connected and with which e-mail, whether using its plan in TALOS is allowed, when the access expires, whether a sign-in is in progress, and how the last one ended. Never a token.

While connected it also says what this TALOS sent with the plan and the limits the service declared. 503 CHATGPT_NON_DISPONIBILE when the server has no system keyring to keep the sign-in in.

Answers The JSON envelope.

Start signing in with ChatGPT: answers the address to open in the system browser and how long the attempt stays open. You sign in in the browser; no route finishes it for you.

A new attempt replaces one in progress. Its outcome is read with GET /api/v1/auth/chatgpt/stato. Using the plan needs ChatGPT Plus or Pro.

Body

consenso
true to ask again to use the plan, after a sign-in that did not allow it.

Answers The JSON envelope.

Cancel the ChatGPT sign-in in progress.

Body

None: the body is empty.

Answers The JSON envelope.

Sign out of ChatGPT: TALOS asks OpenAI to revoke its access and removes the sign-in from the keyring.

Answers { revocaConfermata }: false when OpenAI did not confirm the revocation, so TALOS can also be removed in the ChatGPT settings.

Body

None: the body is empty.

Answers The JSON envelope.

Only on a server hosted by an app that keeps the ChatGPT sign-in itself (the TALOS for Android app): the app hands the server a short-lived access token before each turn. The server keeps it in memory only.

Any other server answers 409 CHATGPT_CUSTODE_NON_APP: TALOS Desktop keeps its own sign-in.

Body

accessTokenrequired
The access token.
scadeAllerequired
When it expires.
accountId
The ChatGPT account it belongs to.

Answers The JSON envelope.

Only on a server hosted by such an app: forget the access token it handed over.

Body

None: the body is empty.

Answers The JSON envelope.

Only on a server hosted by the TALOS for Android app: the app hands the server the local model it has open on the device, so the server’s conversations can use it (models locale-ospite:<name>).

The app serves the model on a private socket inside its own folder, with a key that changes at every start; the server keeps them in memory and never shows the key. TALOS Desktop answers 404 LOCAL_GUEST_DISABLED.

Body

socketPathrequired
The absolute path of the socket, inside the app’s folder.
chiaverequired
The key for that socket.
modellorequired
The model’s name.
nCtxrequired
Its context window in tokens, at least 4,096.
capacita
What it can do: { tools, reasoning }.

Answers The JSON envelope.

POST /providers/locale-ospite/access/remove

Section titled “POST /providers/locale-ospite/access/remove”

Only on a server hosted by the TALOS for Android app: forget the local model it handed over.

Body

None: the body is empty.

Answers The JSON envelope.

Start signing in to OpenRouter: answers the address to open. The key that comes back is kept by the key store and never returned.

Body

senzaRitorno
true for the “code on screen” way (from another machine); otherwise the browser comes back to TALOS by itself, when the window is on this computer.

Answers The JSON envelope.

Errors4
CodeStatusMeaning
OAUTH_CODICE_MANCANTE 400 The confirmation code is missing: start again.
OAUTH_CUSTODIA_FALLITA 500 The sign-in succeeded, but the key could not be stored safely: open the Doctor.
OAUTH_NON_CONFIGURATO 503 Signing in with an account is not possible on this server: paste a key in Settings.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Finish signing in to OpenRouter with the code shown on screen.

Body

stato
The state of the sign-in started.
codice
The code OpenRouter showed.

Answers The JSON envelope.

Errors4
CodeStatusMeaning
OAUTH_CODICE_MANCANTE 400 The confirmation code is missing: start again.
OAUTH_CUSTODIA_FALLITA 500 The sign-in succeeded, but the key could not be stored safely: open the Doctor.
OAUTH_NON_CONFIGURATO 503 Signing in with an account is not possible on this server: paste a key in Settings.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Where OpenRouter sends the browser back after sign-in (the state in state or stato). No cookie needed.

Query

code
The code OpenRouter returns.
state
The state of the sign-in.
stato
The same, under its Italian name.

Answers The JSON envelope.

Errors4
CodeStatusMeaning
OAUTH_CODICE_MANCANTE 400 The confirmation code is missing: start again.
OAUTH_CUSTODIA_FALLITA 500 The sign-in succeeded, but the key could not be stored safely: open the Doctor.
OAUTH_NON_CONFIGURATO 503 Signing in with an account is not possible on this server: paste a key in Settings.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

The same return, with the state in the path (the form OpenRouter documents).

Path

state
The state of the sign-in.

Query

code
The code OpenRouter returns.

Answers The JSON envelope.

Errors4
CodeStatusMeaning
OAUTH_CODICE_MANCANTE 400 The confirmation code is missing: start again.
OAUTH_CUSTODIA_FALLITA 500 The sign-in succeeded, but the key could not be stored safely: open the Doctor.
OAUTH_NON_CONFIGURATO 503 Signing in with an account is not possible on this server: paste a key in Settings.
QUERY_INVALID 400 The request is not valid: a query parameter or a body field is missing, unknown or malformed.

Any operation can also answer the common errors.

Type to search the guides.

    Ask the docs

    Ask in plain words. A small model finds the passage of the guides that answers it, on this device: the question never leaves it.

    all-MiniLM-L6-v2 (Apache-2.0) and the ONNX runtime, served by talos-code.com and kept in your browser’s cache. It finds passages; it does not write answers.

    Loading the model