Create or join a Libretto Cloud organization, store a local session, and issue API keys for cloud runs.This page is about authenticating the CLI and API client to Libretto Cloud. For signing your workflows into target websites, see Website authentication.
Before you start
The examples below assume Libretto is installed in your project and runnable withnpx libretto.
Create a new user account and organization
Useauth signup when you are creating a brand new Libretto Cloud organization:
~/.libretto/auth.json.
A Libretto user can only belong to one organization at a time. If your team already has an organization, use an invite instead of creating a second account.
Log in to an existing account
Useauth login when the account already exists:
~/.libretto/auth.json.
Reset a forgotten password
Open the Libretto Cloud login page and use the forgot-password action to request a password reset email. After you choose a new password from the reset link, runauth login again to save a fresh local session.
To clear local credentials:
Check the active identity
Useauth whoami to confirm which Libretto Cloud account the CLI is using:
LIBRETTO_API_KEY is set, the CLI prefers that key over the stored session cookie.
Invite a teammate
Useauth invite from an account that can manage members in the active organization:
Accept an invite
Open the invitation link from the email. The website guides you through signing in or creating the invited account, then accepts the invitation. If you create the invited account with email and password, verify email from the same browser; after verification, the website returns to the invite and accepts it. If you are already signed in, invite acceptance only works when that account is not already a member of another organization.Issue an API key
Use API keys for project.env files, CI, or other non-interactive Libretto Cloud runs:
.env file:
Troubleshooting
- If signup fails because the email already exists, log in to that account or delete the existing Libretto Cloud account before retrying.
- If an invite fails for a logged-in user, make sure that user is not already a member of another Libretto organization.
Deployments
Deploy workflows to Libretto Cloud and investigate cloud runs.
Billing
Open the plans page and manage your subscription.