Expand AI logo
DocsDocs
Login

Documentation

Introduction

WelcomeQuickstartConcepts

Product

FetchMCPCLI

SDKs

SDKsTypeScript SDKPython SDK

Product

CLI

Command-line interface for expand.ai

Installation

Install the expand.ai CLI to fetch and process web content from your terminal.

npm install -g expandai
pnpm 
add
-g
expandai
bun add -g expandai
npx expandai fetch https://example.com

Commands

fetch

Fetch and display markdown content from any URL.

# Display as markdown (default)
expandai fetch https://example.com

# Get full JSON response with metadata
expandai fetch https://example.com --format json

login

Authenticate with expand.ai. The command prompts for an API key and stores it in ~/.expandai/config.json.

expandai login

whoami

Display your current authentication status.

expandai whoami

mcp install

Install the expand.ai MCP server in your AI coding assistant.

expandai mcp install
PreviousMCP
NextSDKs

On This Page

InstallationCommandsfetchloginwhoamimcp install