A client device identifies a current context of an application and sends that context to a command component on a server. The client device receives a set of commands that are valid for that context and displays the commands on the client device. When a user input is received changing the context, a new command set can be locally computed based on the set of commands received from the server, or the new context can be sent to the server to receive the new command set.