CLI reference · Commands
talos provider
The model providers: keys, sign-in, endpoints and health. How to run talos provider, read from the TALOS CLI release itself.
Reference for TALOS CLI 0.6.18
Keys are stored in the system credential store (or in memory for the session, if you choose so). A key is never printed. Choosing a model chooses its provider: see `talos model`. Every provider is in Providers.
| Operation | What it does |
|---|---|
listdefault | Lists the providers with the state of their key and the environment variable that can supply one. |
login | Signs in in the browser: to OpenRouter, saving the key it returns after testing it, or to ChatGPT, so that its models are paid by your plan. |
logout | Signs out of ChatGPT: requests stop using your plan, and TALOS asks OpenAI to revoke its access. |
status | Says whether a ChatGPT account is connected and its plan allowed, what this TALOS sent with it in the last 5 hours and 7 days (requests and tokens), and where to see your account's usage and limits. |
set-key | Asks for a key without echoing it, tests it with a one-token request and saves it if it works. |
env-key | Says whether a key for the provider was found in the environment, and whether TALOS uses it. |
remove-key | Deletes the saved key of a provider. |
configure | Sets the endpoint and/or the request timeout of a provider. |
test | Checks that the provider answers, without generating tokens; prints its state, latency and what to do. |
exclusions | Lists the providers OpenRouter must not use, for every model or for one. |
exclude | Tells OpenRouter not to route your requests to a provider, for every model or for one model only. |
allow | Lets OpenRouter use an excluded provider again, for every model or for one. |
Without an operation, talos provider runs list.
Lists the providers with the state of their key and the environment variable that can supply one.
talos provider listSigns in in the browser: to OpenRouter, saving the key it returns after testing it, or to ChatGPT, so that its models are paid by your plan.
talos provider login <provider> [--paste]Arguments
provideropenrouterorchatgpt; no other provider supports sign-in.
Options
-
--paste - OpenRouter only: paste the code OpenRouter shows instead of waiting for the browser (for remote sessions).
- Needs an interactive terminal.
- ChatGPT: needs a ChatGPT Plus or Pro plan. With keys kept in memory (
credentials.storeset tomemory) the command refuses, since the sign-in would be lost when it ends; sign in from/providerin the interactive screen instead (it lasts until TALOS closes). The browser must run on the computer where TALOS runs: in a remote session TALOS says so and prints the address to open there. If you sign in without allowing TALOS to use the plan, nothing can be sent with it until you sign in again and allow it.
Exit codes and errors6
| Code | Exit | Meaning |
|---|---|---|
| exit | 11 | Sign-in failed or was not completed, the OpenRouter key did not pass the test and was not saved, or the ChatGPT plan was not allowed. |
PROVIDER_REQUIRED | 12 | This command needs the id of a provider. Name it after the operation, for example talos provider login openai; the ids are in talos provider list. |
PROVIDER_LOGIN_UNSUPPORTED | 12 | Only OpenRouter and the ChatGPT plan offer a sign-in; other providers use a key. Save a key with talos provider set-key <provider>. |
PROVIDER_LOGIN_UNAVAILABLE | 12 | This sign-in is not available in this installation. Use a provider with a key: talos provider set-key <provider>. |
LOGIN_REQUIRES_TTY | 70 | Signing in needs an interactive terminal. Run talos provider login <provider> in a terminal; a provider with a key can take one with talos provider set-key <provider>. |
SECRET_INPUT_REQUIRES_TTY | 70 | TALOS could not finish this action. Try again; if it happens again, keep the log for a report. |
logout
Section titled “logout”Signs out of ChatGPT: requests stop using your plan, and TALOS asks OpenAI to revoke its access.
talos provider logout chatgptArguments
provider- Only
chatgpt.
- If OpenAI does not confirm the revocation, TALOS says so: you can also remove TALOS in the ChatGPT settings.
Exit codes and errors2
| Code | Exit | Meaning |
|---|---|---|
PROVIDER_REQUIRED | 12 | This command needs the id of a provider. Name it after the operation, for example talos provider login openai; the ids are in talos provider list. |
PROVIDER_LOGOUT_UNSUPPORTED | 12 | Only the ChatGPT plan has a sign-in to show or leave; other providers hold a key. See them with talos provider list; remove a key with talos provider remove-key <provider>. |
status
Section titled “status”Says whether a ChatGPT account is connected and its plan allowed, what this TALOS sent with it in the last 5 hours and 7 days (requests and tokens), and where to see your account's usage and limits.
talos provider status chatgptArguments
provider- Only
chatgpt.
Exit codes and errors2
| Code | Exit | Meaning |
|---|---|---|
PROVIDER_REQUIRED | 12 | This command needs the id of a provider. Name it after the operation, for example talos provider login openai; the ids are in talos provider list. |
PROVIDER_LOGOUT_UNSUPPORTED | 12 | Only the ChatGPT plan has a sign-in to show or leave; other providers hold a key. See them with talos provider list; remove a key with talos provider remove-key <provider>. |
set-key
Section titled “set-key”Asks for a key without echoing it, tests it with a one-token request and saves it if it works.
talos provider set-key <provider> [--address <address>]Arguments
provider- Provider id, as
talos provider listshows it. Notchatgpt, which signs in instead.
Options
-
--address <value> - Z.AI only: where the key is sent,
plan(GLM Coding Plan),balance(pay-as-you-go),plan-chinaorbalance-china. Without it, and with none chosen yet, TALOS asks before reading the key. Valuesplanbalanceplan-chinabalance-china
- Needs an interactive terminal. The test is announced before the key is read.
- Z.AI bills the GLM Coding Plan and the pay-as-you-go balance apart, so its key is sent only to the address you choose.
Exit codes and errors6
| Code | Exit | Meaning |
|---|---|---|
| exit | 11 | The key did not pass the test and was not saved. |
PROVIDER_REQUIRED | 12 | This command needs the id of a provider. Name it after the operation, for example talos provider login openai; the ids are in talos provider list. |
PROVIDER_SIGN_IN_ONLY | 12 | The ChatGPT plan has no key: you sign in to it. Sign in with talos provider login chatgpt; an OpenAI API key belongs to the provider openai. |
PROVIDER_ADDRESS_INVALID | 12 | That is not one of the Z.AI addresses. Use plan, balance, plan-china or balance-china (--address is only for Z.AI). |
SECRET_INPUT_REQUIRES_TTY | 70 | TALOS could not finish this action. Try again; if it happens again, keep the log for a report. |
PROVIDER_KEY_TEST_UNAVAILABLE | 11 | The provider key could not be used. Check the key saved for this provider. |
env-key
Section titled “env-key”Says whether a key for the provider was found in the environment, and whether TALOS uses it.
talos provider env-key <provider> [--use | --decline]Arguments
provider- Provider id.
Options
-
--use - Approve using the key found in the environment.
-
--decline - Decline it: TALOS will not use it.
- A key found in the environment is not used until you approve it.
--useand--declinecannot be combined.
Exit codes and errors4
| Code | Exit | Meaning |
|---|---|---|
| exit | 2 | --use or --decline was given but no key is in the environment. |
PROVIDER_REQUIRED | 12 | This command needs the id of a provider. Name it after the operation, for example talos provider login openai; the ids are in talos provider list. |
PROVIDER_SIGN_IN_ONLY | 12 | The ChatGPT plan has no key: you sign in to it. Sign in with talos provider login chatgpt; an OpenAI API key belongs to the provider openai. |
PROVIDER_INVALID | 12 | The model provider returned an error. Try again in a moment, or pick another model with /model. |
remove-key
Section titled “remove-key”Deletes the saved key of a provider.
talos provider remove-key <provider>Arguments
provider- Provider id.
Exit codes and errors2
| Code | Exit | Meaning |
|---|---|---|
PROVIDER_REQUIRED | 12 | This command needs the id of a provider. Name it after the operation, for example talos provider login openai; the ids are in talos provider list. |
PROVIDER_SIGN_IN_ONLY | 12 | The ChatGPT plan has no key: you sign in to it. Sign in with talos provider login chatgpt; an OpenAI API key belongs to the provider openai. |
configure
Section titled “configure”Sets the endpoint and/or the request timeout of a provider.
talos provider configure <provider> [--endpoint <url> | --address <address>] [--timeout <seconds>]Arguments
provider- Provider id.
Options
-
--address <value> - Z.AI only, instead of
--endpoint: the address its key is sent to,plan(GLM Coding Plan),balance(pay-as-you-go),plan-chinaorbalance-china. Valuesplanbalanceplan-chinabalance-china -
--endpoint <value> - Base URL of the provider API (e.g. a local server or a proxy).
-
--timeout <value> - Request timeout in seconds, 5 to 1800.
- At least one of
--endpointand--timeoutis required, unless--addressis given. - Until a Z.AI address is chosen, nothing is sent to Z.AI.
Exit codes and errors4
| Code | Exit | Meaning |
|---|---|---|
PROVIDER_REQUIRED | 12 | This command needs the id of a provider. Name it after the operation, for example talos provider login openai; the ids are in talos provider list. |
PROVIDER_ADDRESS_INVALID | 12 | That is not one of the Z.AI addresses. Use plan, balance, plan-china or balance-china (--address is only for Z.AI). |
PROVIDER_TIMEOUT_INVALID | 12 | The model provider returned an error. Try again in a moment, or pick another model with /model. |
PROVIDER_CONFIG_REQUIRED | 12 | The model provider returned an error. Try again in a moment, or pick another model with /model. |
Checks that the provider answers, without generating tokens; prints its state, latency and what to do.
talos provider test <provider>Arguments
provider- Provider id.
Exit codes and errors2
| Code | Exit | Meaning |
|---|---|---|
| exit | 11 | The provider is not available (for example, no key). |
PROVIDER_REQUIRED | 12 | This command needs the id of a provider. Name it after the operation, for example talos provider login openai; the ids are in talos provider list. |
exclusions
Section titled “exclusions”Lists the providers OpenRouter must not use, for every model or for one.
talos provider exclusionsExit codes and errors2
| Code | Exit | Meaning |
|---|---|---|
PROVIDER_EXCLUSION_REQUIRES_PROVIDER | 12 | The command needs the name of the provider to exclude or allow. Write it after the command, for example talos provider exclude deepinfra (--model <id> for one model only). |
PROVIDER_EXCLUSIONS_UNAVAILABLE | 12 | The excluded providers cannot be read or changed in this TALOS runtime. Reinstall TALOS with npm install -g talos-code; if it happens again, run talos doctor and keep the log for a report. |
exclude
Section titled “exclude”Tells OpenRouter not to route your requests to a provider, for every model or for one model only.
talos provider exclude <name> [--model <id>]Arguments
name- The provider as OpenRouter names it, e.g.
deepinfraorz-ai.
Options
-
--model <value> - Only for this model.
- The model can ask for the same change in a conversation: TALOS shows what changes, before and after, and waits for your yes. In
-pit can only read the list.
Exit codes and errors2
| Code | Exit | Meaning |
|---|---|---|
PROVIDER_EXCLUSION_REQUIRES_PROVIDER | 12 | The command needs the name of the provider to exclude or allow. Write it after the command, for example talos provider exclude deepinfra (--model <id> for one model only). |
PROVIDER_EXCLUSIONS_UNAVAILABLE | 12 | The excluded providers cannot be read or changed in this TALOS runtime. Reinstall TALOS with npm install -g talos-code; if it happens again, run talos doctor and keep the log for a report. |
Lets OpenRouter use an excluded provider again, for every model or for one.
talos provider allow <name> [--model <id>]Arguments
name- The provider as OpenRouter names it.
Options
-
--model <value> - Only for this model.
Exit codes and errors2
| Code | Exit | Meaning |
|---|---|---|
PROVIDER_EXCLUSION_REQUIRES_PROVIDER | 12 | The command needs the name of the provider to exclude or allow. Write it after the command, for example talos provider exclude deepinfra (--model <id> for one model only). |
PROVIDER_EXCLUSIONS_UNAVAILABLE | 12 | The excluded providers cannot be read or changed in this TALOS runtime. Reinstall TALOS with npm install -g talos-code; if it happens again, run talos doctor and keep the log for a report. |