61 5
Contact Author Sign in to rate

Anki Habitica for 2.1

0.08MB. Updated 2022-02-09.


Anki 2.1 add-on for use with Habitica. Anki Habitica for 2.0 is on https://ankiweb.net/shared/info/954979168. Update 2019-05-24: Github user 71e6fd52 has converted this for use with Anki 2.1 Update 2018-05-30: Habitica has not fixed their avatar export feature. This is a known bug that has been around for a long time; the problem is not with the addon. Because of this, I have added support for using a static image instead. Update 2017-08-13: Problems with new Habitica API should be fixed. (Problem was we couldn't score habit) Update 2017-02-15: Code changed to avoid slowdowns encountered by users with large numbers of decks. New in Version 2.0: Anki Habitica now supports reviews done on any device! Ankiweb, ankimobile, ankidroid, another computer... Anki Habitica will find those points. This addon creates a progress bar on the bottom of the review screen. As you answer questions, reach timeboxes, and clear decks, the progress bar advances. When it gets all the way, it scores an Anki Points habit at Habitica.com (which it will create). When the addon scores your habit on Habitica, a pop-up box tells you how many XP, HP, Mana, and Gold points you have/earned. It also tells you when you've leveled up and if you've received any items. Notice: There's are some weird text in the notes of the Habit, you must keep them. For use with Habitica (formerly HabitRPG): http://habitica.com Inspired by: https://github.com/Pherr/HabitRPG-Anki-Addon Special thanks to Tim Wilson for the database code. See https://github.com/eshapard/AnkiHabitica/blob/master/README.md for a more detailed description. Please don't post bug reports here. I can't reply to you in this forum, I don't get messages when you've posted here, and I don't check this page. If you're having trouble with this add-on, post an issue on GitHub.


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author


on 1670880539
Yay! Super fun :)
on 1669623177
thank you so much!!! works well :)
on 1666611397
Works smoothly! Really well done and useful! Thanks dev!
on 1661256757
Very good for motivation, but still needs alot of improvement to make it engaging.
on 1660793232
Great! Works well with Habitica
on 1660057778
Overall it works. Thank you. This is motivating.
on 1658766455
I really liked a lot!!!
on 1655475723
One of the top must-have addon.
on 1643707642
This soooo GOOD
on 1643126660
thank you for this
on 1638217832
good idea
on 1634555716
on 1633487827
could no retrieve api
on 1632689455
Awesome for motivating me to get more cards done. I hope the icon feature gets fixed soon, that would be awesome.
on 1624442198
I think it is a fun way to incentivize reviews. :)
on 1623080019
on 1622706943
thanks guys!
on 1621614966
Great add-on to gamify your anki sessions!
on 1621104647
The new update (5/15/2021) is unable to be installed, and for some reason, I can't delete the addon from Anki either

edit: After disabling the addon, exiting Anki, starting Anki, and enabling it again I was able to update it!
on 1618362444
I actually love you
on 1616832194
It didn't seem to work for me at first after I upgraded to Anki ⁨2.1.42. However, after I tried re-entering my API Username and Token / password, it works now. Anki Habitica is great motivation / positive reinforcement to keep up with my Anki cards. It keeps me accountable and makes Anki more fun! Thanks for the add-on and for keeping it current!!
on 1616182889
on 1615056618
Works great. Definitely extra incentive to keep going and rack up XP.
on 1614121793
on 1613302449
on 1609741456
Not working for Anki 21.38
on 1608641559
It works!
on 1605806589
It doesnt work. When I restart anki after installing it tells me it couldn succesfully load the add on.

Update: I have deleted Anki and downloaded the most recent version from november 2020 and also installed the habitica add on again and set it up again and now everything works perfectly. Very excited to try it out
on 1605447365
Works perfectly: if you recently updated and it's coming up with an error code when you start Anki try deleting the Task in Habitica that's linked to Anki. Then opening Anki should work and then just link yout Habitica account to Anki again using Tools>AnkiHabitica>Setup Anki Habitica a new Task is created in habitica to score your Anki points and now it should work without a problem. :) Hope it helps
on 1605404517
Not working as of 11/13/2020
on 1602255746
so much fun for my 考试之路。。。thanks
on 1600220676
Great!! Studying can be rewarded immediately!
on 1600080456
does this work on ankidroid too?
on 1599623326
Good app overall. However, can you add an option to disable the notification? kinda distracting and break the flow if the notification pops up about every 10 cards
on 1597092758
on 1596000252
I'm a rookm a rookie,don't know how to do,would you tell me,thank you!
当你已经发现是因为插件引起的问题,请在我们的支持网站上 add-ons section 上报告问题。
Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-07-29 12:33:12

Caught exception:
Traceback (most recent call last):
File "C:\Users\ChanHong\AppData\Roaming\Anki2\addons21\1758045507\__init__.py", line 611, in score_backlog
File "C:\Users\ChanHong\AppData\Roaming\Anki2\addons21\1758045507\habitica_class.py", line 364, in grab_scorecounter
response = self.api.task(self.habit_id)
File "C:\Users\ChanHong\AppData\Roaming\Anki2\addons21\1758045507\habitica_api.py", line 106, in task
out = self.v3_request("get", "/tasks/%s" % str(task_id))
File "C:\Users\ChanHong\AppData\Roaming\Anki2\addons21\1758045507\habitica_api.py", line 75, in v3_request
response = json.load(opener.open(req, timeout=timeout))
File "urllib\request.py", line 531, in open
File "urllib\request.py", line 640, in http_response
File "urllib\request.py", line 569, in error
File "urllib\request.py", line 502, in _call_chain
File "urllib\request.py", line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 401: Unauthorized
on 1595958205
NOT working. I installed Payton 3.6 and created a task called Anki Points on Habitca. Not working. Time wasted.
Anki 2.1.26 (70784154) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.15.5
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-07-29 01:12:15
Anki Habitica for 21⁩

Caught exception:
Traceback (most recent call last):
File "/Users/yujie/Library/Application Support/Anki2/addons21/1758045507/__init__.py", line 611, in score_backlog
File "/Users/yujie/Library/Application Support/Anki2/addons21/1758045507/habitica_class.py", line 364, in grab_scorecounter
response = self.api.task(self.habit_id)
File "/Users/yujie/Library/Application Support/Anki2/addons21/1758045507/habitica_api.py", line 106, in task
out = self.v3_request("get", "/tasks/%s" % str(task_id))
File "/Users/yujie/Library/Application Support/Anki2/addons21/1758045507/habitica_api.py", line 75, in v3_request
response = json.load(opener.open(req, timeout=timeout))
File "urllib/request.py", line 531, in open
File "urllib/request.py", line 640, in http_response
File "urllib/request.py", line 569, in error
File "urllib/request.py", line 502, in _call_chain
File "urllib/request.py", line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 401: Unauthorized
on 1595163837
Amazing way to make Anki more addicting and rewarding! :D
on 1594551521
I love you, seriously! When I get rich, will buy you a lambo!
on 1594357905
forbidden in Syria
on 1591205793
on 1591023165
I didn´t even know Habitica before. Besides the great addon, it is a great Website!
on 1590875584
on 1589053364
thank you
on 1588296394
Love it so far, is there a way to turn off the notification each time you cycle through the cards?
on 1587002540
on 1586079017
Excellent gamification!
on 1584548016
Does what it should.
on 1584154963
I'm lovin' it!
on 1584039767
on 1583557876
Works great! I'm still trying it out, but initially I'm feeling that it breaks the flow of my studying nothing against the add-on itself though.
on 1582946998
on 1580665044
Amazing add on!
on 1580664220
Really cool addon, there is certainly a lot to unpack. You can change the font colors in habitica_class.py under the "Compact Habitica Stats for Progress Bar" for better viewing in night mode.
on 1578347448
it's more than I expected!
on 1574021232
Thanks a lot!
on 1573507948
Loving it, combining Habitica with my other apps is awesome!
on 1570639715
Amazing, really helps me stay motivated. Thank you for making this available for everyone!
on 1567951324
Thanks! It works great :)
on 1567619907
Omg!!! Up Up Up rate this Add on plz :D
on 1565184681
on 1564208930
loved it !!
on 1563000779
Awesome, thanks.
on 1562634984
on 1562211890
Works perfectly. Exactly what I was looking for. Thank you for taking the time to write this!
on 1560016570
Works well. Thanks.