OpenProgram Docs

secrets#

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

secrets 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)

secrets keys list#

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

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

secrets 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

secrets 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

secrets 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)

secrets 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)

secrets keys enable#

Use this key again

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

secrets keys disable#

Stop using this key, keeping it

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

secrets keys check#

Check keys with the provider now

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

secrets keys remove#

Remove a key or sign-in

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

secrets 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

secrets 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

secrets list#

List every provider's keys and sign-ins

Option Description
--json Output JSON

secrets 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.

secrets 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.

secrets discover#

Scan external sources

Option Description
--json Output JSON

secrets 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

secrets logout#

Remove every stored key and sign-in of a provider

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

secrets 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

secrets doctor#

Diagnose credentials (expiry, refresh, cooldown, conflicts)

Option Description
--json Output JSON

secrets setup#

Interactive first-time setup

secrets aliases#

List provider short-name aliases

Option Description
--json Output JSON

secrets 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