| name | apify-install-auth |
| description | Install and configure Apify SDK, CLI, and API client authentication.
Use when setting up a new Apify project, configuring API tokens,
or initializing apify-client / Apify SDK in your codebase.
Trigger with "install apify", "setup apify", "apify auth", "configure apify token".
|
| allowed-tools | Read, Write, Bash(npm:*), Bash(npx:*), Bash(apify:*) |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","scraping","automation","apify"] |
| compatibility | Designed for Claude Code |
Apify Install & Auth
Overview
Set up the Apify ecosystem: the apify-client JS library (for calling Actors remotely), the apify SDK (for building Actors), the Apify CLI (for deploying), and Crawlee (for crawling). Each package serves a different purpose — install only what the task needs, then wire up a single API token.
Package Map
| Package | npm | Purpose |
|---|
apify-client | npm i apify-client | Call Actors, manage datasets/KV stores from external apps |
apify | npm i apify | Build Actors (includes Actor.init(), Actor.pushData()) |
crawlee | npm i crawlee | Crawler framework (Cheerio, Playwright, Puppeteer crawlers) |
apify-cli | npm i -g apify-cli | CLI for apify login, apify run, apify push |
Prerequisites
- Node.js 18+ (required by SDK v3+)
- Apify account at https://console.apify.com
- API token from Settings > Integrations in Apify Console
Instructions
Step 1: Install Packages
npm install apify-client
npm install apify crawlee
npm install -g apify-cli
Step 2: Configure Authentication
Pick one. Read any existing .env first so you do not clobber it, then Write the token in.
export APIFY_TOKEN="apify_api_YOUR_TOKEN_HERE"
echo 'APIFY_TOKEN=apify_api_YOUR_TOKEN_HERE' >> .
apify login