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
The models on offer, provider keys and addresses, OpenRouter sign-in, and the web search source. Paths are relative to /api/v1.
GET /providers/{providerId}/models
Section titled “GET /providers/{providerId}/models”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). Values
esternoopenaichatgptdeepseekkimiminimaxqwenzaianthropicgeminilmstudiogroqcerebrasmistraltogetherfireworksdeepinfranovitanebiusxaiollama-cloudhuggingfacezai-anthropicminimax-anthropicazurebedrockvertex
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
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.
GET /providers
Section titled “GET /providers”The model providers and whether each one is configured (never the keys).
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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
Section titled “POST /providers/openrouter/esclusi”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: falseto allow that provider again for that model.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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
| Code | Status | Meaning |
|---|---|---|
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.
attivorequiredtrueto exclude it again,falseto allow it.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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.
GET /models
Section titled “GET /models”The catalog of models, from every configured provider and the local engine.
Query
forza1to refresh the catalog now instead of using the cached one.
Answers The JSON envelope.
Errors1
| Code | Status | Meaning |
|---|---|---|
REPORT_UNAVAILABLE | 404 | The report or service asked for is not available on this server yet. |
Any operation can also answer the common errors.
GET /search-source
Section titled “GET /search-source”The web search sources and which one is active (never the keys).
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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.
GET /providers/{providerId}/runtime
Section titled “GET /providers/{providerId}/runtime”The runtime settings of one provider: its address and limits.
Path
providerId- The provider (see Providers).
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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 /search-source
Section titled “POST /search-source”Choose the web search source.
Body
sourcerequired- The source.
endpoint- Its address, for a source you host.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
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.
POST /search-source/key
Section titled “POST /search-source/key”Save the key of a search source.
Body
sourcerequired- The source.
keyrequired- The key.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
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.
POST /search-source/key/remove
Section titled “POST /search-source/key/remove”Remove the key of a search source.
Body
sourcerequired- The source.
Answers The JSON envelope.
Errors3
| Code | Status | Meaning |
|---|---|---|
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.
POST /search-source/test
Section titled “POST /search-source/test”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
| Code | Status | Meaning |
|---|---|---|
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.
POST /providers/{providerId}/test
Section titled “POST /providers/{providerId}/test”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
| Code | Status | Meaning |
|---|---|---|
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}/key
Section titled “POST /providers/{providerId}/key”Save the key of a provider (the single key).
Path
providerId- The provider (see Providers).
Body
keyrequired- The key.
Answers The JSON envelope.
Errors2
| Code | Status | Meaning |
|---|---|---|
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}/keys
Section titled “POST /providers/{providerId}/keys”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
| Code | Status | Meaning |
|---|---|---|
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}/key/remove
Section titled “POST /providers/{providerId}/key/remove”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
| Code | Status | Meaning |
|---|---|---|
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}/keys/remove
Section titled “POST /providers/{providerId}/keys/remove”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
| Code | Status | Meaning |
|---|---|---|
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
Section titled “POST /providers/{providerId}/runtime”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
| Code | Status | Meaning |
|---|---|---|
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
| Code | Status | Meaning |
|---|---|---|
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.
GET /auth/chatgpt/stato
Section titled “GET /auth/chatgpt/stato”“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.
POST /auth/chatgpt/inizia
Section titled “POST /auth/chatgpt/inizia”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
consensotrueto ask again to use the plan, after a sign-in that did not allow it.
Answers The JSON envelope.
POST /auth/chatgpt/annulla
Section titled “POST /auth/chatgpt/annulla”Cancel the ChatGPT sign-in in progress.
Body
None: the body is empty.
Answers The JSON envelope.
POST /auth/chatgpt/esci
Section titled “POST /auth/chatgpt/esci”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.
POST /providers/chatgpt/access
Section titled “POST /providers/chatgpt/access”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.
POST /providers/chatgpt/access/remove
Section titled “POST /providers/chatgpt/access/remove”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.
POST /providers/locale-ospite/access
Section titled “POST /providers/locale-ospite/access”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.
POST /auth/openrouter/inizia
Section titled “POST /auth/openrouter/inizia”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
senzaRitornotruefor 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
| Code | Status | Meaning |
|---|---|---|
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.
POST /auth/openrouter/codice
Section titled “POST /auth/openrouter/codice”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
| Code | Status | Meaning |
|---|---|---|
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.
GET /auth/openrouter/ritorno
Section titled “GET /auth/openrouter/ritorno”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
| Code | Status | Meaning |
|---|---|---|
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.
GET /auth/openrouter/ritorno/{state}
Section titled “GET /auth/openrouter/ritorno/{state}”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
| Code | Status | Meaning |
|---|---|---|
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.