Skip to main content

Global flags (all commands)

Environment variables

Configuration

The CLI uses a TOML config file at ~/.rime/rime.toml. You can define multiple named environments for different API endpoints.
Select an environment with the --env flag. This request goes to the staging URL and uses the top-level api_key, because staging doesn’t set its own:
Resolution order: Environment variables override config file values, which override defaults. Within the config file, named environment values override top-level values. A command’s --api-url flag overrides the URL from all of these.

Audio formats

Metadata embedding

Audio files saved by the CLI include embedded metadata (voice, model, text). This metadata is visible in rime play waveform output and in media players like Finder or Preview.
  • WAV files: LIST/INFO chunk (IART, INAM, ICMT)
  • MP3 files: ID3v2.3 tags (TPE1, TIT2, COMM)