> ## Documentation Index
> Fetch the complete documentation index at: https://www.landbase.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Use Landbase CLI in Claude Code and Codex

> Use landbase-cli in Claude Code, Codex, and other agents after installing and authenticating the Landbase CLI.

<div id="breadcrumb-wrapper" />

<div
  style={{display: 'none'}}
  data-related-resources={JSON.stringify([
{ title: 'Install Landbase CLI', href: '/install' },
{ title: 'Quick Start', href: '/quickstart' },
{ title: 'What can you do with the CLI?', href: '/what-can-you-do-with-the-cli' },
{ title: 'Troubleshooting & Support', href: 'https://support.landbase.com/landbase/directories' }
])}
  id="page-related-resources"
/>

# Use Landbase CLI in Claude Code and Codex

<div className="blog-post-content">
  Use Claude Code and Codex to run parallel requests with Landbase, build dashboards, and integrate with other platforms.

  Need to install first? Start with [Install Landbase CLI](/docs/install) — the install page includes a tab for letting Claude Code or Codex install it for you. Want a tour of the command surface before you start building? Read [What can you do with the CLI?](/docs/what-can-you-do-with-the-cli).

  ## Installation

  ### 1. Install the CLI

  On macOS or Linux, run:

  ```bash theme={null}
  curl -fsSL https://cli.landbase.com/install.sh | bash
  ```

  On Windows (PowerShell):

  ```powershell theme={null}
  $ProgressPreference = 'SilentlyContinue'; irm https://cli.landbase.com/install.ps1 | iex
  ```

  ### 2. Authenticate with Landbase

  Run:

  ```bash theme={null}
  landbase-cli auth
  ```

  The CLI will open a consent page in your browser. If you're not already signed in, you'll be prompted to sign in (or create an account) at [https://gtm.landbase.com](https://gtm.landbase.com) before the consent page loads. Click **Authorize** to grant the CLI access.

  When authorization is complete, return to your terminal. The CLI will confirm sign-in and print the path where it stored the local config.

  If the CLI can't open a browser (for example, over SSH or in a headless environment), it will print a URL to stderr — open that URL manually in any browser to continue.

  If the flow times out or you cancel, just run `landbase-cli auth` again.

  ### 3. Verify the install

  ```bash theme={null}
  landbase-cli --version
  landbase-cli datasets list --limit=1 --no-update-check
  ```

  ### 4. Use with Claude Code / Codex

  Prompt the agent to use the CLI. For example:

  ```text theme={null}
  Using the landbase-cli, run several queries to find the total number of AI startups in London.
  ```

  To stay current, run `landbase-cli update`.

  <iframe src="https://www.loom.com/embed/a92e49680f7d4a848ba97561548d058b" frameBorder="0" allowFullScreen style={{ width: '100%', aspectRatio: '16 / 9', borderRadius: '8px' }} />

  ## Claude Code Tips

  1. **Stop Claude from asking you for permissions to run the landbase-cli.**

     ```text theme={null}
     Can you auto approve landbase-cli* in my user settings
     ```

  2. **Build your own visualisation and table.**

     ```text theme={null}
     Can you show the data in a front-end app using React and a TanStack table.
     ```

  3. **Connect with other services.** To interact with other services, paste a link to their API docs, or if they have a CLI install it the same way you installed the landbase-cli.

  ## Example Use Cases

  <iframe src="https://www.loom.com/embed/efe85ebce77c46c6a36c64d55407b820" frameBorder="0" allowFullScreen title="Using the landbase-cli to build a TAM Map" style={{ width: '100%', aspectRatio: '16 / 9', borderRadius: '8px' }} />

  *Using the landbase-cli to build a TAM Map.*

  More coming soon.
</div>
