Install the Hamster CLI and connect it to your account with a single command.
The Hamster CLI is a command-line tool called task-master. It connects to your Hamster account and lets you view tasks, switch brief context, and manage work from the terminal. Authentication uses a browser-based login flow — the CLI opens your browser, you sign in with your existing Hamster credentials, and the session is transferred back to your terminal automatically. For remote or SSH environments where a browser is not available, a one-time code flow is also supported.
Run the setup command — Paste the following into your terminal and press Enter:
curl -s https://tryhamster.com/cli | bash
The script checks for Node.js, installs task-master-ai globally via npm if it is not already present, and adds tm and taskmaster as shell aliases in your ~/.zshrc or ~/.bashrc.
Sign in — The CLI runs task-master auth login, which opens your default browser to a Hamster sign-in page. A banner on the page confirms that you are signing in to authorize your CLI. Sign in with your Hamster email and password, or with any social provider your account already uses.
Authorize the session — After you sign in, the CLI is authorized and ready to use. Signing out of Hamster in the browser does not affect your CLI session. If you have multi-factor authentication enabled on your account, you will be prompted to complete that step before authorization completes.
Select context — If the setup command was not launched from a specific brief, the CLI prompts you to select your organization and then your brief. Once a brief is selected, the CLI lists your current tasks and confirms it is ready to use.
task-master auth login supports a code-based alternative. Follow the prompt displayed in your terminal.tm and taskmaster as aliases for task-master in your shell configuration file, so you can type tm list instead of task-master list.task-master auth login at any time to re-authenticate or switch accounts.task-master context to see which organization and brief are currently active.task-master context brief and choose from the list.