apify-install-auth

Install and configure Apify SDK/CLI authentication. Use when setting up a new Apify integration, configuring API keys, or initializing Apify in your project. Trigger with phrases like "install apify", "setup apify", "apify auth", "configure apify API key".

claude-code
6 Tools
apify-pack Plugin
saas packs Category

Allowed Tools

ReadWriteEditBash(npm:*)Bash(pip:*)Grep

Provided by Plugin

apify-pack

Claude Code skill pack for Apify (18 skills)

saas packs v1.0.0
View Plugin

Installation

This skill is included in the apify-pack plugin:

/plugin install apify-pack@claude-code-plugins-plus

Click to copy

Instructions

Apify Install & Auth

Overview

Set up Apify SDK/CLI and configure authentication credentials.

Prerequisites

  • Node.js 18+ or Python 3.10+
  • Package manager (npm, pnpm, or pip)
  • Apify account with API access
  • API key from Apify dashboard

Instructions

Step 1: Install SDK


# Node.js
npm install @apify/sdk

# Python
pip install apify

Step 2: Configure Authentication


# Set environment variable
export APIFY_API_KEY="your-api-key"

# Or create .env file
echo 'APIFY_API_KEY=your-api-key' >> .env

Step 3: Verify Connection


// Test connection code here

Output

  • Installed SDK package in node_modules or site-packages
  • Environment variable or .env file with API key
  • Successful connection verification output

Error Handling

Error Cause Solution
Invalid API Key Incorrect or expired key Verify key in Apify dashboard
Rate Limited Exceeded quota Check quota at https://docs.apify.com
Network Error Firewall blocking Ensure outbound HTTPS allowed
Module Not Found Installation failed Run npm install or pip install again

Examples

TypeScript Setup


import { ApifyClient } from '@apify/sdk';

const client = new ApifyClient({
  apiKey: process.env.APIFY_API_KEY,
});

Python Setup


from apify import ApifyClient

client = ApifyClient(
    api_key=os.environ.get('APIFY_API_KEY')
)

Resources

Next Steps

After successful auth, proceed to apify-hello-world for your first API call.

Ready to use apify-pack?