Skip to content

Instantly share code, notes, and snippets.

@m-roberts
Last active December 20, 2022 20:09
Show Gist options
  • Save m-roberts/d7b7f6aa991a42700a17b9b50b279917 to your computer and use it in GitHub Desktop.
Save m-roberts/d7b7f6aa991a42700a17b9b50b279917 to your computer and use it in GitHub Desktop.
Unlock rotki premium features and prevent connections to server API

Unlock rotki premium features and prevent connections to server API

Should work on all recent versions. Make edits to the source files yourself:

# Default state: ACTIVE premium
sed -i 's/self.status = SubscriptionStatus.UNKNOWN/self.status = SubscriptionStatus.ACTIVE/g' rotkehlchen/premium/premium.py

# Remove API routes
sed -i "s/self.uri = .*/self.uri = ''/g" rotkehlchen/premium/premium.py
sed -i "s|https://rotki.com/api/1/usage_analytics||g" rotkehlchen/usage_analytics.py

Possible Improvements

  • Automated patched builds
  • Use a refactoring tool to perform more broad-scale clean up operations (such as not passing around 'premium' everywhere)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment