Skip to main content
Manage CLI configuration. The config file is TOML-based and lives at ~/.rime/rime.toml.

rime config init

Create a new config file. Prompts for an API key interactively.
The generated file looks like:
rime config init pre-configures both standard Rime endpoints as named environments. The default_env field names the active one.
Older config files without default_env continue to work: the top-level api_url and api_key fields are still respected as the fallback default.

rime config list

List all configured environments. The currently active default environment is marked with a * in the NAME column.

rime config default

Get or set the default environment.
With no arguments, prints the name of the current default environment:
With a name argument, updates default_env in ~/.rime/rime.toml and confirms:
No flags.

rime config show

Show the fully resolved configuration for a given environment, including where the API key comes from (config file vs. environment variable).
Example output:

rime config add

Add a named environment to ~/.rime/rime.toml. Prompts interactively for API URL, API key (input hidden), and an optional auth prefix. You cannot add an environment named default. Use rime config default to change which environment is the default.
Examples:

rime config rm

Remove a named environment from ~/.rime/rime.toml. Prompts for confirmation unless --yes is passed.

rime config edit

Open ~/.rime/rime.toml in your default editor ($VISUAL or $EDITOR, falling back to nano or vi).
No flags. Requires the config file to exist. Run rime config init first if needed.