---
title: "Baz CLI"
description: "Review pull requests from the terminal with a guided walkthrough, using your Baz account or your own keys."
canonical: "https://baz.ai/docs/integrations/developer-tools/cli"
---

# Baz CLI

Review pull requests from the terminal with a guided walkthrough, using your Baz account or your own keys.

The Baz CLI walks you through a pull request in the terminal. It presents the change step by step, answers questions about it, lets you read and post comments, and, when connected to Baz, checks the change against its linked requirements.

## Install

```bash title="Terminal"
npm install -g @baz-scm/cli
```

## Choose a mode

Run `baz` on its own to connect to Baz: you sign in on first run and get the assistant, spec review against linked tickets, repository context, and full code review. To use your own keys instead, set `GH_TOKEN` and `ANTHROPIC_TOKEN` before `baz` to review and comment on any pull request with your GitHub and Anthropic tokens.

<Tabs>
  <Tab title="Connected to Baz">
    ```bash title="Terminal"
    baz
    ```
  </Tab>
  <Tab title="BYOK">
    ```bash title="Terminal"
    GH_TOKEN=your_github_pat ANTHROPIC_TOKEN=your_anthropic_api_key baz
    ```
  </Tab>
</Tabs>

## What you can do

- **Walk through a change.** Move forward and back through a structured view of the pull request and skip low-impact parts.
- **Ask questions.** Pause to ask about the intent of the change or a specific code path.
- **Comment.** Read existing comments and post new ones to the pull request.
- **Verify requirements.** When connected to Baz, see where the implementation meets the linked ticket and where it does not.

## Related

<CardGroup cols={2}>
  <Card title="Planner plugin" href="/docs/integrations/developer-tools/planner-plugin" icon="pencil-line">
    Baz inside your coding agent.
  </Card>
  <Card title="Verification Agent" href="/docs/agents/deploy/verification-agent" icon="check-check">
    How requirements are checked.
  </Card>
</CardGroup>
