OpenProgram Docs

providers#

Manage LLM providers / stored credentials (login, list, status, doctor, ...). secrets is an alias.

usage: openprogram providers [-h] verb ...

providers keys#

A provider's keys and sign-ins form one ordered list. Name one by its name, its id, or its number in list.

Option Description
provider Provider id (e.g. openai, anthropic, deepseek)

providers keys list#

Show the provider's keys and sign-ins in order

Option Description
--json Output the same JSON as the web API

providers keys add#

Add a key or sign in

Option Description
--name NAME A name to tell this key or sign-in apart
--method METHOD Way to connect (api_key, import_from_cli); omit it to use the recommended one
--api-key API_KEY The API key, without a prompt. It stays in shell history; prefer --api-key-stdin
--api-key-stdin Read the API key from stdin, e.g. printf %s "$KEY" | openprogram providers keys deepseek add --api-key-stdin
--no-check Save the key without checking it with the provider first

providers keys replace#

Put a new key in a stored key's place

Option Description
name The key's name, id or number
--api-key API_KEY The new key, without a prompt; prefer --api-key-stdin
--api-key-stdin Read the new key from stdin

providers keys rename#

Give a key or sign-in another name

Option Description
name The key's name, id or number
new_name The new name (empty to show the account or key ending)

providers keys move#

Change where a key sits in the order

Option Description
name The key's name, id or number
--up One place earlier
--down One place later
--to N To place N (1 is first)

providers keys enable#

Use this key again

Option Description
name The key's name, id or number

providers keys disable#

Stop using this key, keeping it

Option Description
name The key's name, id or number

providers keys check#

Check keys with the provider now

Option Description
name The key to check (omit for all)

providers keys remove#

Remove a key or sign-in

Option Description
name The key's name, id or number
--yes Remove without asking

providers keys strategy#

Set how the keys take turns

Option Description
strategy in-order: the first usable one; evenly: each in turn; least-used: the one used least

providers login#

Add a key or sign in to a provider (same as keys PROVIDER add)

Option Description
provider Provider id (e.g. anthropic, deepseek)
--name NAME A name to tell this key or sign-in apart
--method METHOD Way to connect (api_key, import_from_cli); omit it to use the recommended one
--api-key API_KEY The API key, without a prompt. It stays in shell history; prefer --api-key-stdin
--api-key-stdin Read the API key from stdin, e.g. printf %s "$KEY" | openprogram providers keys deepseek add --api-key-stdin
--no-check Save the key without checking it with the provider first

providers list#

List every provider's keys and sign-ins

Option Description
--json Output JSON

providers available#

Show all providers OpenProgram knows about — the built-in ones plus the community catalogue (models.dev). This is the list you pick an id from for openprogram providers login <id>. Pass a QUERY to filter by id or label (case-insensitive substring), e.g. providers available minimax.

Option Description
query Filter to providers whose id or label contains this text.
--json Output JSON (for scripts / agents).
--configured Only show providers that already have a key / credential.

Show all providers OpenProgram knows about — the built-in ones plus the community catalogue (models.dev). This is the list you pick an id from for openprogram providers login <id>. Pass a QUERY to filter by id or label (case-insensitive substring), e.g. providers available minimax.

Option Description
query Filter to providers whose id or label contains this text.
--json Output JSON (for scripts / agents).
--configured Only show providers that already have a key / credential.

providers catalog#

Show all providers OpenProgram knows about — the built-in ones plus the community catalogue (models.dev). This is the list you pick an id from for openprogram providers login <id>. Pass a QUERY to filter by id or label (case-insensitive substring), e.g. providers available minimax.

Option Description
query Filter to providers whose id or label contains this text.
--json Output JSON (for scripts / agents).
--configured Only show providers that already have a key / credential.

providers discover#

Scan external sources

Option Description
--json Output JSON

providers adopt#

Adopt a discovered credential into the store

Option Description
source_id Source id from discover output (qwen_cli, gh_cli). Omit when using --all.
--all Adopt every sign-in discover finds; ones already added are skipped

providers logout#

Remove every stored key and sign-in of a provider

Option Description
provider Provider id to log out of
--yes Skip confirmation

providers status#

Every connected provider's health, quota and 30-day spend; with PROVIDER, that provider's keys and sign-ins

Option Description
provider Provider id to show one provider (omit for every provider)
--refresh Read each provider's quota endpoint now instead of using values under ten minutes old
--json Output the same JSON as GET /api/providers/status

providers doctor#

Diagnose credentials (expiry, refresh, cooldown, conflicts)

Option Description
--json Output JSON

providers setup#

Interactive first-time setup

providers aliases#

List provider short-name aliases

Option Description
--json Output JSON

providers local-server#

With autostart on, a call to this local provider whose server is not running starts it with the start command first. Off by default.

Option Description
provider Local provider id (ollama, lmstudio, vllm, llamacpp, local, or a custom local provider)
--autostart AUTOSTART Start the server on demand (on) or never (off)
--command CMD The command that starts the server, e.g. "vllm serve Qwen/Qwen3-8B"; an empty string goes back to the default