Need help with poketrainer?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

123 Stars 60 Forks Other 672 Commits 55 Opened issues


The original Pokemon Go bot

Services available


Need anything else?

Contributors list

Post-Unknown6 changes:

The current version of the bot currently requires the encrypt library. Hop on the #poketrainer slack to find out more.

Long story short, you need to make
by finding the
folder of one of the
repositories and running
make clean; make
. You then put the built files into the same folder as and run it with:


Please do not sell the bot, or use it to sell accounts/power leveling or what have you. If you really can't help yourself from trying to make money on it, please donate a portion of your profits to Kiva.

To the people that have done so already (heard from quite a few already), thank you for making the world a better place.

DISCLAIMER: this is super sketch and just a proof of concept It's not that bad any more, but still, use at your own risk and I claim no credit or responsibility or what have you for parts of it.

For Contributions: Please open pull request to develop branch not master Thank you!

Don't be a dumbass too, Let's not ruin a good thing...

Build Status

#### Rename

``` usage: [-h] [-i CONFIG_INDEX] [-l LOCATION] [-e ENCRYPT_LIB] [-d]

optional arguments: -h, --help show this help message and exit -i CONFIGINDEX, --configindex CONFIGINDEX Index of account in config.json -l LOCATION, --location LOCATION Location -e ENCRYPTLIB, --encrypt-lib ENCRYPT_LIB encrypt lib, -d, --debug Debug Mode ```

Web UI

  • Run python to get a webservice to show you player information, this can be seen at:
    • Only 1 needs to run regardless of how many bots you are running


Copy config.json.example to config.json and change your account information. Below the accounts you can change options in the

section. If you need to change some options for an individual account, you can copy them to the account section and modify as needed.

Configuration options (non-exhaustive)

      will enable google walking directions for navigation
      • You will probably need to provide an api key in
        to avoid rate limits
      corresponds to how many meters you want to move at most between server calls, set this around 4-6 for walking or 100-200 for really, really fast driving
      will set the distance a pokestop can be away before and still allow us to wander off the walk path. This allows you to get pokestops that aren't close to the sidewalk/road. If you don't set it we won't wander off the path.
      will set the flag to use exeperimental features
      [Experimental] Avoid a fort for a given number of seconds
      • Setting this to 500 means avoid a fort for 500 seconds before returning, (Should be higher than 300 to have any effect). This will let the bot explore a bigger area.
      [Experimental] will try to route using google maps(must have key) to all visible forts, if
      is set high enough, you may roam around forever.
      Allows you to disabling catching pokemon if you just want to mine for the forts for pokeballs
      minimum number of failed capture attempts before trying to use a Razz Berry (default: 3)
      As long as using a pokeball would result in at least this percent of a chance to capture, use it (default: 50)
      If using a pokeball wouldn't result in at least the above percent, use a greatball if the capture rate is above this percent (default: 50)
      If using a greatball wouldn't result in at least the above percent, use an ultraball if the capture rate is above this percent (default: 50)
      Using a masterball should in theory automatically result in a capture. If set to true, attempt to use a masterball if none of the above percentages are met. If this is set to false and none of the above percentages are met, default back to an ultraball (default: false)
    • ENABLE
      enables automatic use of incubators (default: true)
      enables use of disposable (3-times use) incubators (default: false)
      incubate big eggs (most km) first (default: true)
      Set this to true if you want to see what pokemon the configured release method would keep or release (no pokemon are harmed when this is on)
      Names of pokemon you want the bot to hold regardless of IV/CP
      Names of pokemon you want the bot to throw away regardless of IV/CP
      • Note:
        will still be kept for all pokemon types
      default 9999. If you want to keep a certain type of pokemon but you accidently run into a nest? Don't worry this will make sure you only keep X amount of pokemon specified in
      = "CLASSIC", if you are unsure about the other methods you should stick to this one!
      • KEEP_CP_OVER
        Never transfer any pokemon above this CP, Setting this to 0 will never transfer anything
      • KEEP_IV_OVER
        Never transfer any pokemon above this C IV, Setting this to 0 will never transfer anything
      = "DUPLICATES"
      • The bot will collect all pokemon it encounters , thus collecting a ton of bad ones and filling up space. Enabling this feature (disabled by default) will have the bot automatically transfer pokemon that are duplicates. To determine which pokemon to transfer when duplicates exist, the pokemons are compared according to the
        setting. The bot will transfer the lowest scoring pokemon, maintaining
        of each type. To be completely confident that the bot will not transfer your high lvl pokemon, when this feature is enabled only pokemon with a score below
        are released. If you have multiple pokemon that are close to the same lvl the bot can be configured to not transfer them by using
        . The value of this config is multiplied by the highest scoring pokemon of a type and only those pokemon that are less than the scaled score are transfered.
      • EXAMPlES: If you set
        to "IV" while having two Snorlaxs, one with stats CP:14 IV:95 and the other with CP:1800 IV:30 the bot will transfer the Snorlax with CP of 1800 and keep the CP 14 Snorlax because you have indicated you only care about a pokemon's IV. It must be fully understood why this happens to avoid unwanted transfer of pokemon. If not used correctly this feature can very easily transfer a large ammount of your pokemon so please make sure you fully understand it's mechanics before attempting use!
      = "ADVANCED", this method allows you to keep a minimum amount of pokemon basen on their CP or IV
        This will release all pokemon below a specified level, ignoring all below options. A pokemon level can range from 1-40 for all pokemon types. For reference you can check this table to see how much CP each pokemon will have on different levels. Using Level provides an easy way to filter bad pokemons across all pokemon types.
      • KEEP_CP_OVER
        Don't transfer any pokemon above this CP (this will apply no matter what you set in
      • KEEP_IV_OVER
        Don't transfer any pokemon above this IV (this will apply no matter what you set in
      • BEST_CP
        Additional options for keeping pokemon based on their CP
      • MIN_AMOUNT
        Minimum amount of pokemon to keep by CP
        The value of this config is multiplied by the highest CP pokemon of a type and only those pokemon that are less than the scaled score are transfered.
      • MAX_AMOUNT
        Maximum amount of pokemon to keep by CP
      • BEST_IV
        Additional options for keeping pokemon based on their IV
      • MIN_AMOUNT
        Minimum amount of pokemon to keep by IV
        The value of this config is multiplied by the highest IV pokemon of a type and only those pokemon that are less than the scaled score are transfered.
      • MAX_AMOUNT
        Maximum amount of pokemon to keep by IV
        Pokemon with lover IV than this will be ignored by
      = "MULTI", this method allows you to define different RELEASE_METHODs and configs for on a per pokemon basis
        this is the default RELEASE_METHOD that will be used for pokemon that don't have an explicit override
        configuration blocks can be provided here to override the values that come from
        as the default values for the specific pokemon release method configurations
        this is a mapping of pokemon name to configuration overrides for that pokemon
      • pokemon name
        this is a pokemon name in the set of valid names for
          this is required if the release method should be different from
          otherwise it will use default
        • RELEASE_METHOD_*
          settings in these configuration blocks will override defaults for the this specific
          pokemon name
      • A pokemon's score is an arbitrary and configurable parameter defines how to sort pokemon by best > worst to decide which one to keep first. Possible values are "CP", "IV", "CPxIV", or "CP+IV" or the special "FANCY" method.
      • The "FANCY" method uses the options a
        which give the ability to specifically set more weight on Lvl or IV. The formula is as follows:
        (iv / 100.0 * SCORE_WEIGHT_IV) + level / (player_level+1.5) * SCORE_WEIGHT_LVL
        where player_level+1.5 is the max level that pokemon can reach when fully powered up.
    [Experimental] will cease trying to catch pokemon and roam around to collect more pokeballs when inventory is low
    • ENABLE
      , whether or not this feature is enabled
      , when the observed pokeball count drops on or below this number, skip catching pokemon and begin collecting.
      , when the observed pokeball count reaches this amount, stop farming and go back to catching pokemon.
      , Whether to include this ball in counting. Same goes for
      , and
      . Masterball is ignored by default.
      , When it goes into farming mode, the bot assumes this step size to potentially speed up resource gathering. This might lead to softbans. Setting to
      disables this feature. Disabled by default for safety.
    • If
      are false, this configuration will disable itself.
    Options for configuring logging messages
      A dictionary for the various modules that support colored logging. Currently this is implemented in the following modules:
      poketrainer, fort_walker, poke_catcher, release, evolve, and inventory
      . Use of red is discouraged since this is reserved for
      and error logging. Valid color options are as follows, shamelessly copied from the from

    The following escape codes are made available for use in the format string: -

    : Foreground and background colors. -
    : Bold/bright colors. -
    : Clear all formatting (both foreground and background colors). - The availible color names are
    . Multiple escape codes can be used at once by joining them with commas. (ex.

There are more options, check the current config.json.example, many are self-explanatory.

Find out Item ID's

For Chosing what Items to keep, get the names here, AeonLucidProtos_ItemID For Choosing what pokemon to keep get the names here,AeonLucidProtos_Pokemon

Put them in config. Type exactly as the name appears


Python 2 vs 3

Although this project was originally built for Python 2.7, we have recently added support for Python 3.5. However, our tools that allow
to talk with
currently require them to run on the same version of Python. So, if you choose to use Python 3 for one of them, you must use it for both of them (and vice versa for Python 2).

keeping the code clean

If you make changes to the Python code, please use tox to run flake8 and isort checks against the code. If you see any errors, please fix them before opening a pull request.

To run tox, just install the package and run the

command from the root directory of the project. tox will automatically install
packages into a virtual environment as needed when it runs.
pip install tox

If you are not updating the Python code, you do not need to install or use tox.

pokecli with Docker (optional)

Build and run container:

cd poketrainer/
docker build -t pokecli .
docker run -ti --name poketrainer -v /path/to/poketrainer/config.json:/config.json -p 5000:5000 pokecli -i 0
The name option, poketrainer in the example, is arbirary. Multilple containers can be made using different names. -v maps the config file into the container. You can modify config.json and it will be reread when the container is started, no need to recreate the container or rebuild the image. -p maps the web interface to the external network, so you can check on the status of your training from a different machine. If you choose not to map the port, the ip address of the container can be found using
docker inspect poketrainer

The container is now running in the foregorund, and can be stopped by using

. The container can be detached using the sequence
Ctrl+p Ctrl+q
. To stop a container running in the background, run
docker stop poketrainer
and restart it using
docker start poketrainer
. This will start the docker container in the background, attach to it using 'docker attach poketrainer`.

You can create an alias for this by adding

alias pokecli='docker start poketrainer && docker attach poketrainer'
to ~/.bashrc.

What's working:

What's working: * A lot of things. Check out the example config to see some of the features. Catching Lured pokemon, sniping, regular pokemon, multiple kinds of navigation (google maps, walking, driving, customized speed), a web ui, auto transfers, auto evolves, auto power ups, auto egg incubation, inventory managament, multiple account botting. And much more, README to be updated soon.

Join slack channel:

To ask question related to api and general help, join Pokemon Go Reverse Engineering Slack team. * To join, get a invite from here , join team via the email you recieve and then signin here.


  • [keyphact/UK6 team] for the unknown6 fix
  • tejado for the base of this
  • elliottcarlson for the Google Auth PR
  • AeonLucid for improved protos
  • AHAAAAAAA for parts of the s2sphere stuff
  • beeedy for ability to transfer duplicate pokemon
  • infinitewarp for introducing tox and cleaning up the code
  • And to anyone on the pokemongodev slack channel <3

super sketch but yolo

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.