Skip to main content
CI pipelines (such as GitHub Actions or GitLab CI) run commands with nobody at the keyboard and usually have no keychain. So in CI, rivvr reads everything from environment variables. Store the values in your CI system’s secret storage. Never write them in the pipeline file itself.

Signing in

Tell rivvr where to connect:
Then add one of these two ways to sign in:
  • RIVVR_ACCESS_TOKEN: a short-lived access token.
  • RIVVR_USERNAME and RIVVR_PASSWORD: always set both.
If more than one is set, rivvr uses the access token first, then the username and password, then a login saved on the machine. Values from environment variables are never saved to disk. Example:
Each run of deploy creates a new model, so give each pipeline run a different --name. Keep --max-cost-per-hour within the budget you’ve been given.

Sending prompts in CI

Set the inference key with two variables, always together:
  • RIVVR_INFERENCE_KEY_ID: the key ID
  • RIVVR_INFERENCE_KEY: the key secret
These variables win over any key saved on the machine. The ID in --key-id must match RIVVR_INFERENCE_KEY_ID. If the key is wrong or not allowed, the request fails. rivvr won’t try a saved key instead. The inference key only works for sending prompts. To look up the model, rivvr still needs the sign-in variables above. For JSON output and exit codes, see scripting.