Skip to main content

Ahrefs

Ahrefs from the command line

Backlinks, keywords, rankings and site audits.

Get Tools, $19 a month

One price for one person, for every application you connect. Cancel any time.

Ahrefs in the terminal

Ahrefs is SEO research: who links to a site, what it ranks for, and what’s broken on it. Connected to a workspace, GBrain can answer “which pages lost rankings this month?” or compare a competitor’s backlinks against the team’s own.

Ahrefs’ connection only reads.

  • Look up backlinks and referring domains
  • Research keywords and search volume
  • Check rank tracking results
  • Read site audit findings

Install the CLI, then connect Ahrefs

Ahrefs is connected on its own sign-in page, in the browser. A key or a sign-in never passes through the terminal.

# Install the CLI
curl -sSL https://gbrainio.terminalwire.sh | bash

# Set the terminal up and connect it
gbrainio terminal connect

# What Ahrefs is, and each of its commands once it is connected
gbrainio tool help ahrefs

The installer is a shell script for macOS and Linux. Read it before you run it.

Ahrefs's commands come from Ahrefs's own server once it is connected, so none are listed here.

Same tools, any AI

Claude Code, Cursor and Codex reach the same Ahrefs through MCP, on the same permission and the same record.

GBrain over MCP

How the whole thing fits

One level per application, one daily limit, one record, across every AI and terminal that asks.

Tools

Ahrefs from a terminal, with GBrain Tools

Tools is $19 a month for one person. Get Tools, connect Ahrefs in the browser, and say how far each terminal and each AI may go with it. Change any of it, or take all of it back, whenever you want.