Are you happy with your logging solution? Would you help us out by taking a 30-second survey? Click here


Best Free Clash of Clans Bot - Brokenbot

Star full 4f7b624809470f25b6493d5a7b30d9b9cb905931146e785d67c86ef0c205a402Star full 4f7b624809470f25b6493d5a7b30d9b9cb905931146e785d67c86ef0c205a402Star full 4f7b624809470f25b6493d5a7b30d9b9cb905931146e785d67c86ef0c205a402Star blank 374f33e4d622a2930833db3cbea26b5d03dc44961a6ecab0b9e13276d97d6682Star blank 374f33e4d622a2930833db3cbea26b5d03dc44961a6ecab0b9e13276d97d6682 (1 ratings)
Rated 3.0 out of 5
Subscribe to updates I use BrokenBot

Statistics on BrokenBot

Number of watchers on Github 73
Number of open issues 23
Average time to close an issue 4 days
Main language AutoIt
Average time to merge a PR about 3 hours
Open pull requests 3+
Closed pull requests 6+
Last commit over 2 years ago
Repo Created over 4 years ago
Repo Last Updated over 1 year ago
Size 23.7 MB
Homepage https://brokenbot...
Organization / Authorcodebroken
Latest Release3.1.0
Page Updated
Do you use BrokenBot? Leave a review!
View open issues (23)
View BrokenBot activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating BrokenBot for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?) - Clash of Clans Bot

Best Free Clash of Clans Bot - Brokenbot


CoC Bot Forums -

Repo status

This repository is no longer maintained. Please visit the links above for current versions.


Much thanks to: the original creators of this bot at,, cool7su, maxcom, msh2050, usabug, cmestres, samkhowaja and anyone else who I missed but has contributed to this great project!

Original source from which this is modified (project originally started at Modification of v5.8 of bot originally available from


This project is under GPLv3 licensing - BUT- due to the convoluted nature of the origin of this code, a separate license specific to changes made by the team is available in the directory and applies only to that sub-directory (recursively).

Clash of Clans is a Registered Trademark of SuperCell. This project is not affiliated with SuperCell or any of its affiliates in any way. Project is available without warranty express or implied.

BrokenBot open issues Ask a question     (View All Issues)
  • almost 3 years Waiting for main screen
  • almost 4 years Search base speed doesn't work correctly
  • about 4 years forum and website not accesible
  • about 4 years [BUG] Incorrect recognition of number 5
  • about 4 years [BUG] Donate and Train only, killing program
  • about 4 years [BUG] Incorrect Troop Locating When Using Laboratory Upgrade
  • about 4 years [BUG] keystrokes interrupt normal pc usage during base search
  • about 4 years [BUG] Icorrectly Detecting Townhall Level
  • about 4 years [BUG] Upgrade Wall Detection Issues
  • about 4 years New resource collecting script is not working as it should
  • about 4 years Wall upgrapde
  • about 4 years Pushbullet
  • about 4 years We appear to be stuck. Resetting troop counts.
  • over 4 years Double resource checking same happening after battle
  • over 4 years Loop training of troops
  • over 4 years Upgrade Laboratory can't lacate - Building location not set, skipping upgrade...
  • over 4 years Problem with walls upgrade
  • over 4 years Townhall Level , Gold Cost Per Search: 0
  • over 4 years Some view problems with STRATEGIES pop-up and GENERAL
  • over 4 years Can't recognize the letter "k" (
BrokenBot open pull requests (View All Pulls)
  • Update
  • Updated to 3.2.0
  • Bug fixing
BrokenBot list of languages used
BrokenBot latest release notes
3.1.0 BrokenBot 3.1.0

Change Log:


  • Custom troops fixed, you no longer just have to use barracks training
  • Modified sniping - improved, but still occasionally having a few issues with attacking wrong side of base, please continue bringing incorrect behaviour to our attention
  • Longer time available to click Attack Now button
  • King/Queen activation modified
  • Better stopping attack during snipe if you have gained a star
  • More text reading improvements
  • Fixed behaviour when using donate/train only mode
  • More non English languages now supported - if you find issues, please report them and use English
  • Various crashes fixed

v3.0.5 BETA

  • Fixed early return home
  • Sniping: Now leaves after one star is achieved
  • CC troops can now be deployed
  • Zapping will now zap DE pumps of dead bases
  • Multi-language support is hopefully restored

v3.0.0 BETA

  • Compatible with Clash of Clans July 2015 Update - but not yet optimized in order to get you up and getting loot faster as we continue development.
  • My Stats submission. Results of your earnings can now be submitted and viewed online. This will allow you to monitor and trend your income over time, in 15min increments. Click My Stats in the forum navigation to view.
  • - On Services tab enter username and password for forums and click on the validate button. If your settings are correct then it will change to say VALID. Don't worry about password field being empty after clicking the button, it is now stored encrypted on your computer away from all other BrokenBot files.
  • - BrokenBot will attempt to submit after every attack but will only succeed every 15min to limit the load on the server. Do not worry if you see it fail submitting as long as your username and password are verified in the Services tab. It will re-attempt.
  • Stats tab. The stats are now correctly read and summarized in this tab of the bot.
  • New donation text and resource reading. We have implemented our brand new text and number reading functionality. No more will the bot stop reading after not knowing a letter or a symbol! Finally perfect donations for all.
  • Town Hall sniping. Now if the bot attacks a Town Hall by sniping, either based on search conditions page or the Snipe if trophies below setting, it will send out a trickle attack. BrokenBot sends progressively larger waves if it does not recognize a loot change or there has been a long delay. The bot stops deploying more troops once you have earned one star. The order of troops is hardcoded, but it starts with barbarians and archers and progressively adds stronger troops including heroes and your clan castle if things get really bad if selected/available.
  • New UI option on General tab: Snipe if trophies below. Enter a number here and if you have fewer trophies than this value, it will snipe both live and dead outside Town Halls to bring your trophy count up. Will continue using normal search conditions and attacks at the same time if a target is found.
  • Collector attacking. You can now focus attacks on the resource collectors. There are 2 options available described below. They can be chosen on the attack methods tab. Both methods must temporarily activate red-line mode if you don't have it already active. They will only focus attacks on those collectors near the outer edges of the base (existence of walls does not mean the collector is inside).
  • - Attack collectors - deploy all troops: This method will deploy all the troops you have, spread out among all the collectors.
  • - Attack collectors - troop saver: This method deploys a few troops on some of the collectors. Once the income has stopped it checks to see what collectors are still left standing and if you haven't already sent troops there it does another round of attacking.
  • Clear the Field. Checking Clear the Field on the Misc tab will have the bot remove obstacles that it finds if you have a free builder. It will only remove up to 5 obstacles with each loop. Also it will not touch your holiday themed obstacles so those are safe.
  • BrokenBot attack visualization / Debug Mode. If you have debug mode checked then you can actually see what the bot is trying to attack and where it is dropping troops as it works. Works best with background mode activated but will try to show you its actions even if you don't have it on. If you do have background mode on and BlueStacks isn't hidden then it will pop up on top of any other work you may be doing.
  • Dark Elixir Zapping - BrokenBot will now zap DE Drills due to the Clash of Clans July 2015 update. We are aware that it will zap regardless of the base being dead or alive and will resolve shortly.
  • Modified decision to return home. Will now return home quicker if the battle is completely ended, and will start the delay again if it senses a change in loot. Previously if your loot stopped changing then it would return home after a set time even if you starting gaining loot again.
  • Changed the way attack delays are processed. You now get more accurate and consistent (but still randomized) delays between dropping troops and waves of troops. Also modified available choices for troop delay for those that want an even longer delay between deploying troops.
  • Cost per search. This is now implemented fully automatically.
  • Average hourly income stats. These are only shown in the log (GUI is crowded enough) and are shown after each attack. Stat submission must be enabled to view this information.
  • Lower CPU utilization. Changed bot to use less CPU when idling. Thanks w0lv3r1nixclash
  • PushBullet tab renamed to Services.
2.8.0 BrokenBot 2.8.0

Change Log:


  • Major stability enhancements
  • Speed optimization - we cut the time it takes to find a well hidden TH by 60% from our previous release. It now takes 1.2sec on average vs never finding it or taking 20 seconds like our competitors. **speedBoost must be enabled.
  • Precision enhancements - We have reduced our image recognition error rate from 4% down to 2.4% - Nearly 10 times better than other bots!
  • Resource collection - we had to lower the thresholds to make sure we collect some of your harder to detect resources. The side-effect is you will see it clicking walls sometimes for a fraction of a second. This is expected and controlled, it will not perform an erroneous action.
  • Implemented speedBoost - found on the config tab. Check this to locate DE and TH faster at the cost of more CPU load during searching.
  • Fixed PushBullet. We now check the server for up to 3 new commands once every minute. Bot may respond to commands slightly slower but this will prevent us from being blocked from using their servers.
  • Various bug fixes related to searching.
2.7.1 BrokenBot 2.7.1

Change Log:


  • Improved townhall recognition. No, seriously. It is so much better than it was before! No more trying to attack outside townhalls that don't exist or skipping over perfectly good bases with tons of loot just because the bot can't recognize the townhall.
  • Some more dark elixir storage tweaks. We are trying to make sure you don't waste those zaps.
  • Moved resource collection to our improved image recognition system.
Other projects in AutoIt