Skip to main content
Inference means sending a model a prompt and getting an answer back. For that you need an inference key. Your normal Rivvr login can create and delete models, but it can’t send prompts. Your platform team creates the key and gives you two things: a key ID and a secret. The ID is safe to share. Treat the secret like a password.

Save the key on your computer

Do this once on each computer you use:
Paste the secret when asked; it won’t show on screen. rivvr saves it in your system’s password store (the keychain). The saved key only works with this Rivvr URL and this project. Don’t type the secret as part of a command. Your terminal remembers every command you type, so the secret would end up in that history. To see which keys exist in the project (secrets are never shown):
Automated pipelines (CI) usually have no keychain. There, use environment variables.

Send a prompt

The model must be running (DEPLOY_READY). You always choose which saved key to use with --key-id. If Rivvr rejects that key, the command fails. It won’t try a different key. Text you pass with --prompt also ends up in your terminal history. For private text, put it in a file and pass the file in instead:
To see the address prompts are sent to:
rivvr always sends prompts to that address. You can’t change it.

Limits

The whole answer arrives at once when it’s finished. It doesn’t appear word by word. rivvr doesn’t retry a failed request. If your connection drops while waiting, the model may still have processed the prompt. If something goes wrong, see inference troubleshooting.