Overview
Some Refactron features require authentication with cloud services:- Repository management
- Cloud-based AI features
- Collaborative pattern learning
- Usage analytics
Login
Authenticate using the CLI:Local analysis and refactoring features work without authentication
Check Authentication Status
Verify your authentication status:Logout
To log out from your account:API Keys
For CI/CD environments, use API keys instead of interactive login:Generate API Key
- Log in via the CLI:
refactron login - Visit your dashboard
- Navigate to Settings → API Keys
- Click Generate New Key
Use API Key
Set the API key as an environment variable:Authenticated Features
Features that require authentication:Repository Management
Repository Management
Cloud AI Features
Cloud AI Features
Enhanced AI-powered refactoring with cloud LLM models
Usage Analytics
Usage Analytics
Team Pattern Sharing
Team Pattern Sharing
Share learned patterns across your team
Offline Mode
Refactron works offline for core features:- Local code analysis
- Refactoring suggestions
- Auto-fix operations
- Report generation
Troubleshooting
Browser doesn't open
Browser doesn't open
If the browser doesn’t open automatically:
- Copy the URL from the terminal
- Paste it into your browser manually
- Complete the authentication
Token expired
Token expired
If you see “Token expired” errors:
API key not working
API key not working
Verify the API key is set correctly:Ensure it’s exported in your shell profile.
Security
Refactron follows security best practices:
- Tokens are stored securely in your system keychain
- API keys are never logged or displayed
- All communication uses HTTPS
- Authentication tokens expire after 30 days
Next Steps
Code Analysis Guide
Start analyzing your code with Refactron
