Install the Hamster CLI on its own and connect it to your account through browser sign-in, with a callback URL fallback when a local browser cannot open.
Most people install the Hamster plugin instead: it installs the hamster binary for you. Install the CLI on its own when you want that binary in your terminal. Start at Install Hamster for the plugin path.
The Hamster CLI is a command-line tool called hamster. It connects to your Hamster account and lets you sync the plan to disk, 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. If the terminal cannot open a local browser, you can finish sign-in in any browser and paste the full callback URL into the terminal.
Install the CLI:
curl -fsSL https://tryhamster.com/cli/install | bash
The installer puts the hamster binary in $HOME/.hamster/bin and adds that directory to PATH. It does not open a browser or sign you in.
Run hamster auth login. The CLI 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.
After you sign in, Hamster creates an independent CLI session — separate from your browser session — and sends it back to the terminal. If you have multi-factor authentication enabled on your account, you will be prompted to complete that step before the session is issued.
Inside the repository you want to connect, run hamster init. The CLI creates .hamster/, lets you select a team, runs the first sync, and generates the agent skill file. Run hamster sync --watch to keep that context up to date as your team works.
Use the callback URL flow when a local browser cannot open:
hamster auth login --no-browser
Open the printed authorization URL in any browser and finish signing in. When the browser returns a callback URL, paste the full URL into the terminal to complete sign-in.
hamster auth login cannot open a local browser, copy the authorization URL into any browser and finish signing in. When the browser returns a callback URL, paste the full URL into the terminal to complete sign-in.~/.hamster/auth.json with user-only permissions on machines without one, so you only need to sign in again if you sign out or the session expires.HAMSTER_ACCESS_TOKEN — Provide a valid access token directlyHAMSTER_REFRESH_TOKEN — Provide a refresh token; the CLI exchanges it for an access token automaticallyhamster team list to see available teams, hamster team switch to select the active team, and hamster team members to inspect its membership.hamster auth login at any time to re-authenticate or switch accounts.hamster team switch to select the active team when you belong to multiple workspaces.hamster auth login cannot open a local browser, copy the authorization URL into any browser, finish signing in, and paste the full callback URL into the terminal.hamster sync <brief-id-or-url>.HAMSTER_ACCESS_TOKEN in your CI/CD environment to use the CLI in automated pipelines without interactive login.