rime config subcommands manage ~/.rime/rime.toml, the TOML file that holds your API key and named environments.
rime config init
Create a new config file. In a terminal, the command prompts for an API key. You can press Enter to skip it and add the key later.
The generated file names both standard Rime endpoints as environments and makes
users the default:
api_key. To find out which endpoint responds faster from your network, run rime speedtest. It also offers to switch default_env to the faster 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.
default_env in ~/.rime/rime.toml and confirms:
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).
rime config init first if needed.
