Retrieving a license key

Once a license is visible under the Current tab, clicking on the License ID will produce a page like the following:

Image license
The next step is to associate this license with your machine by obtaining a License Key.

To obtain a Gurobi license key for your machine, you'll need to run the grbgetkey command on the machine on which you would like to run the Gurobi Optimizer. Note that the machine must be connected to the Internet in order to run this command. If you are using a free academic license, your machine must be connected from a recognized academic domain. Note that an Internet connection is not required once you have obtained your license key.

The exact command to run for a specific license is indicated at the bottom of the license page (e.g., grbgetkey 253e22f3-...). We recommend that you use copy-paste to grab the entire grbgetkey command from our website. On a Windows system, you can paste the command directly into the Windows Run box. Press the Start key and the letter R simultaneously to open this box. On Windows Vista and Windows 7, you can also paste the command into the Search box (available under the Start button). This is demonstrated in the Windows 7 example shown here:

Image startrun
Paste the command into this box and then hit Enter to run the command. On a Linux machine, you would paste this command into a shell window. On a Mac system, you would paste the command into a Terminal window.

The grbgetkey program passes identifying information about your machine back to our website, and the website responds with your license key. Once this exchange has occured, grbgetkey will ask you for the name of the directory in which to store your license key file. You should see a prompt that looks like the following

---------------------
Saving license key...
---------------------

In which directory would you like to store the Gurobi license key file?
[hit Enter to store it in c:/Users/Jones]:
You can store the license file anywhere, but we recommend that you accept the default location (by hitting Enter). You can learn more about using a non-default license file location.

If you are installing a paid license and your computer isn't connected to the Internet, we also offer a manual installation process. You'll find manual installation instructions at the bottom of the license page (by following the link labeled click here for additional instructions).

If you are using a free academic license, grbgetkey will try to validate your academic license.

Next steps

If you are using one of our floating license types (including a single-use license), you'll also need to set up the token server.

If you are setting up a Gurobi compute server, you'll need set up the compute server.

Once you have followed the steps above and have obtained a license key file, your next step is to test your license.



Subsections

Try Gurobi for Free

Choose the evaluation license that fits you best, and start working with our Expert Team for technical guidance and support.

Evaluation License
Get a free, full-featured license of the Gurobi Optimizer to experience the performance, support, benchmarking and tuning services we provide as part of our product offering.
Academic License
Gurobi supports the teaching and use of optimization within academic institutions. We offer free, full-featured copies of Gurobi for use in class, and for research.
Cloud Trial

Request free trial hours, so you can see how quickly and easily a model can be solved on the cloud.

Search