Skip to content
Go package and CLI tool for the Chamberlain / LiftMaster MyQ API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.



myq is a Go package and command-line tool providing access to the Liftmaster / Chamberlain MyQ API.

With the MyQ API you can get a list of devices and open and close garage doors and gates.

Command-line tool

The myq tool can be installed with:

go get

Run myq by itself to see full usage information.

To list devices:

myq -username <username> -password <password> devices

To open a door:

myq -username <username> -password <password> open <device ID>

To close a door:

myq -username <username> -password <password> open <device ID>

Usernames and passwords can also be provided through the environment variables MYQ_USERNAME and MYQ_PASSWORD.

MyQ protocol

David Pfeffer's MyQ API reference on Apiary was a helpful reference.

David also has an implementation in Ruby:

ArrayLab has a Python implementation:

J. Nunn has a Python implementation that ties in with Amazon Alexa:


Issues and pull requests are welcome. When filing a PR, please make sure the code has been run through gofmt.


Copyright 2018 Joe Shaw

myq is licensed under the MIT License. See the LICENSE file for details.

You can’t perform that action at this time.