Skip to main content

Use Landbase CLI in Claude Code and Codex

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 — 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?.

Installation

1. Install the CLI

On macOS or Linux, run:
On Windows (PowerShell):

2. Authenticate with Landbase

Run:
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 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

4. Use with Claude Code / Codex

Prompt the agent to use the CLI. For example:
To stay current, run landbase-cli update.

Claude Code Tips

  1. Stop Claude from asking you for permissions to run the landbase-cli.
  2. Build your own visualisation and 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

Using the landbase-cli to build a TAM Map.More coming soon.