rf login. Browser logins store your tokens (refreshed automatically); API-key logins store the key.
Why Use Profiles?
Profiles are perfect for:- Agencies managing multiple client accounts
- Developers working across dev, staging, and production
- Teams switching between different projects
- Consultants handling multiple customer environments
Commands Overview
Creating Profiles
There’s no separate “create profile” command — a profile is created (and activated) when you log in:Non-Interactive Profile Creation (API Key)
For CI/CD and scripts, create profiles with API keys directly:Switching: Tenants vs. Profiles
rf switch behaves according to how the active profile was created:
- Browser (OIDC) login —
rf switchmoves between the tenants of the active account. No new login needed. - API-key login —
rf switch <name>moves between your saved local profiles.
rf login --profile <name> both creates and activates that profile. See Self-Hosted & Multiple Environments.
Interactive Switch
Direct Switch
Listing Profiles
Show Current Profile
Deleting Profiles
Multi-Tenant Workflow Example
Agency Managing Multiple Clients
If your RunFlow account has access to each client’s tenant, one login is enough:Developer: Dev, Staging, Production
Separate environments (different API URLs) live in separate profiles:Configuration File
Profiles are stored in~/.runflowrc (YAML):
The config file is automatically managed by the CLI. You typically don’t need to edit it manually.
Profile Aliases
You can use profile names in any command that requires authentication:Best Practices
1. Use Descriptive Names
The default name (the tenant name) is usually fine. When naming manually:2. Separate Environments
3. Client Naming Convention
For agencies managing multiple clients across environments:Security Considerations
Best Practices:
- Don’t share your
~/.runflowrcfile - Prefer browser login for humans; reserve API keys for automation
- Use environment-specific API keys
- Rotate keys regularly
- Delete unused profiles
- Never commit
.runflowrcto git
Troubleshooting
Profile Not Found
rf profiles and use an existing one. Remember: with a browser login, rf switch expects a tenant name, not a profile name.
Cannot Delete Current Profile
Expired Session
If a browser-login session can no longer refresh (long inactivity, revoked access), just log in again — the profile keeps its API URL and provider:Lost API Key
If you lose access to a profile’s API key:Next Steps
Login
Learn more about authentication
Self-Hosted
Multiple environments and custom APIs
Create Agent
Create agents with your profile
Agents
Manage agents across profiles