Skip to contents

Shows every registered provider record: its wire api, where its credential comes from (as NAME #fingerprint, never the value), the registry source of the record, its status, default model, egress acknowledgment and, for subscription command-line tools, their version.

Usage

gptr_providers(check = FALSE, check_login = FALSE)

Arguments

check

FALSE (default) performs no network or process input/output unless check_login = TRUE. TRUE also probes each HTTP provider's models endpoint once without credentials (2 s timeout; skipped under R CMD check) and lets command-line providers check their tool; it never sends a paid request.

check_login

Also check Codex and Claude Code's CLI-reported login status using their supported status commands (3 s timeout per subprocess, no model request). Adds a login column: signed in, not signed in, or unknown. Unsupported CLI versions, missing tools and failed checks report unknown; other providers report not applicable. A supported API-key login can count as signed in; this does not verify credentials online or establish subscription billing. Defaults to FALSE.

Value

A gptr_providers data frame with columns id, type, api, credential, source, status, default_model, egress (ack or needed) and version, plus login when check_login = TRUE.

Details

status is ready, no key, no base url or invalid base url (HTTP providers), disabled (the settings say providers.<id>.enabled: false), error (the provider's settings or its credential lookup failed) or what a command-line provider reports; with check = TRUE the ready or no key of an HTTP provider becomes reachable (HTTP <code>) for a reachable endpoint (a 401 without a key still proves reachability), otherwise unreachable, or not checked under R CMD check. egress is ack when no acknowledgment is needed (offline providers, local servers at a loopback address) or the user has given it. Listing reads credentials only: it never registers an environment variable or binds it to a provider.

ready means the required configuration is present; it does not validate the credential, account quota or access to a specific model. check = TRUE tests reachability, not login. See vignette("language-models", package = "gptr") for API, command-line and local setup.

Examples

gptr_providers()
#> # Columns 1/2
#>    id              source             status       type        api
#>  1 anthropic       builtin:providers  no key       chat        anthropic-mess...
#>  2 azure           builtin:providers  no base url  chat        openai-complet...
#>  3 bedrock         builtin:providers  no key       chat        openai-complet...
#>  4 cerebras        builtin:providers  no key       chat        openai-complet...
#>  5 claude-cli      builtin:cli        not found    cli         cli-claude
#>  6 codex           builtin:cli        not found    cli         cli-codex
#>  7 deepseek        builtin:providers  no key       chat        openai-complet...
#>  8 fireworks       builtin:providers  no key       chat        openai-complet...
#>  9 google          builtin:providers  no key       chat        google-generat...
#> 10 groq            builtin:providers  no key       chat        openai-complet...
#> 11 llamacpp        builtin:providers  ready        chat        openai-complet...
#> 12 lmstudio        builtin:providers  ready        chat        openai-complet...
#> 13 mistral         builtin:providers  no key       chat        openai-complet...
#> 14 ollama          builtin:providers  ready        chat        openai-complet...
#> 15 openai          builtin:providers  no key       chat        openai-responses
#> 16 openrouter      builtin:providers  no key       chat        openai-complet...
#> 17 openrouter-jev  builtin:system1    no key       classifier  typesafe-syste...
#> 18 together        builtin:providers  no key       chat        openai-complet...
#> 19 typesafe        builtin:system1    ready        classifier  typesafe-syste...
#> 20 vercel-jev      builtin:system1    no key       classifier  typesafe-syste...
#> # Columns 2/2
#>    credential                default_model             egress  version
#>  1 NA                        anthropic/claude-sonn...  needed  NA
#>  2 NA                        NA                        needed  NA
#>  3 NA                        NA                        needed  NA
#>  4 NA                        NA                        needed  NA
#>  5 NA                        claude-cli/default        needed  NA
#>  6 NA                        codex/default             needed  NA
#>  7 NA                        NA                        needed  NA
#>  8 NA                        NA                        needed  NA
#>  9 NA                        google/gemini-3.8-flash   needed  NA
#> 10 NA                        NA                        needed  NA
#> 11 NA                        NA                        ack     NA
#> 12 NA                        NA                        ack     NA
#> 13 NA                        NA                        needed  NA
#> 14 NA                        NA                        ack     NA
#> 15 NA                        openai/gpt-6-sol          needed  NA
#> 16 NA                        NA                        needed  NA
#> 17 NA                        openrouter-jev/typesa...  needed  NA
#> 18 NA                        NA                        needed  NA
#> 19 TYPESAFE_API_KEY #97c871  typesafe/jev-latest       needed  NA
#> 20 NA                        vercel-jev/typesafe-a...  needed  NA
#> 
#> # 20 of 23 rows shown
#> Credentials show variable names and fingerprints only.