Credentials Management
Securely store and reuse API keys, tokens, and authentication credentials
Credentials Management
The Loopi Credentials Management system provides a secure way to store and reuse API keys, secrets, and authentication tokens across your automations.
Overview
Instead of entering API credentials manually for each automation step, you can save them once in the Credentials Manager and reference them across multiple steps and automations.
Features
- Encrypted Storage: All credentials are encrypted using AES-256-CBC encryption before being saved to disk
- Multiple Credential Types: Support for Twitter, OAuth 2.0, API Keys, Basic Auth, and Custom credentials
- Reusable: Use the same credential across multiple automation steps
- Secure: Credentials are never exposed in logs or UI (shown as ••••••••)
- Easy Management: Add, edit, and delete credentials from the Settings page
Credential Types
Twitter/X
Store Twitter API v2 credentials for posting tweets, sending DMs, searching, etc.
Required fields:
- API Key
- API Secret
- Access Token
- Access Token Secret
OAuth 2.0
Generic OAuth 2.0 credentials for third-party services.
Required fields:
- Client ID
- Client Secret
- Redirect URI
API Key
Simple API key authentication.
Required fields:
- API Key
- API URL (optional)
Basic Auth
Username and password authentication.
Required fields:
- Username
- Password
Custom
For custom authentication schemes not covered by the above types.
Using Credentials
Adding a Credential
- Go to Settings → Credentials tab
- Click "Add Credential"
- Enter a descriptive name (e.g., "My Twitter Account")
- Select the credential type
- Fill in the required fields
- Click "Add Credential"
Using in Automation Steps
- When configuring a Twitter step (or other step that supports credentials)
- You'll see an "Authentication" section
- By default, you can select from your saved credentials
- Click "Enter Manually" to switch to direct input if needed
- Select your saved credential from the dropdown
- The step will automatically use those credentials during execution
Editing Credentials
- Go to Settings → Credentials
- Click "Edit" on the credential you want to modify
- Update the fields (all fields are shown, even if stored as •••••••)
- Click "Save Changes"
Deleting Credentials
- Go to Settings → Credentials
- Click the trash icon on the credential you want to remove
- Confirm deletion
⚠️ Warning: Deleting a credential will cause any automation steps using it to fail. Make sure to update those steps first.
Security
Encryption
Credentials are encrypted using:
- Algorithm: AES-256-CBC
- Key Derivation: PBKDF2 with 100,000 iterations
- Random IV for each encryption operation
Storage Location
Encrypted credentials are stored in:
<userData>/credentials.json.encUser Data Locations:
- Linux:
~/.config/loopi/credentials.json.enc - macOS:
~/Library/Application Support/loopi/credentials.json.enc - Windows:
%APPDATA%\loopi\credentials.json.enc
Best Practices
- Use descriptive names: Name credentials clearly (e.g., "Production Twitter API" vs "Test Account")
- Rotate credentials regularly: Update API keys and tokens periodically for security
- Don't share automations with embedded credentials: Use credential references instead
- Backup carefully: If backing up automations, be aware that credentials are stored separately
- Revoke unused credentials: Remove old or unused credentials from both Loopi and the API provider
Integration Examples
Twitter Automation
-
Add Twitter credential:
- Name: "My Twitter Account"
- Type: Twitter/X
- Fill in API keys from Twitter Developer Portal
-
In automation, add Twitter step:
- Step: "Create Tweet"
- Authentication: Select "My Twitter Account"
- Tweet text: "Hello from Loopi!"
-
Run automation - credentials are used automatically
API Integration
-
Add API Key credential:
- Name: "OpenWeather API"
- Type: API Key
- API Key: Your key
- API URL:
https://api.openweathermap.org/data/2.5/
-
In automation, use API Call step:
- Method: GET
- URL:
{{credentials.apiUrl}}weather?q=London&appid={{credentials.apiKey}} - Store in:
weatherData
Troubleshooting
Credential not appearing in dropdown
- Make sure you've saved the credential successfully
- Check that the credential type matches the step (e.g., Twitter credentials for Twitter steps)
- Try restarting the application
Authentication fails
- Verify credentials are still valid at the API provider
- Check that all required fields are filled
- Ensure API permissions are correctly set
- Test credentials manually first
Can't edit or delete credential
- Close any automations currently using the credential
- Try restarting the application
- Check file permissions on the credentials file
API Provider Setup Guides
Twitter API Credentials
- Go to Twitter Developer Portal
- Create a new app or select an existing one
- Navigate to "Keys and tokens" tab
- Generate/copy:
- API Key (Consumer Key)
- API Secret (Consumer Secret)
- Access Token
- Access Token Secret
- Ensure app has Read, Write, and Direct Messages permissions
- Add credentials to Loopi
GitHub Personal Access Token
- Go to GitHub → Settings → Developer settings → Personal access tokens
- Click "Generate new token"
- Select required scopes (e.g.,
repo,user) - Generate and copy the token
- Add as "API Key" type credential in Loopi
Generic OAuth 2.0
- Register your application with the API provider
- Obtain Client ID and Client Secret
- Configure redirect URI (typically
http://localhost:3000/callback) - Add as "OAuth 2.0" credential in Loopi
- Follow provider's authentication flow
Related Documentation
- Twitter Integration - Learn how to use Twitter steps
- API Reference - All step types and their credential requirements
- Getting Started - Basic setup and configuration