SkillAgentSearch skills...

apify-install-auth

'Install and configure Apify SDK, CLI, and API client authentication.

Install / Use

npx skills add jeremylongshore/tons-of-skills-marketplace --skill apify-install-auth

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

87/100

Category

Automation

Supported Platforms

Claude Code

Our assessment of apify-install-auth

apify-install-auth scores 87/100 on our quality scale, 1346th of 2,607 Automation skills we index.

Its SKILL.md is 5.0 KB long, well organised into 21 sections with 5 code examples: a solid amount of guidance for an agent.

With 2,785 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
26/30
Structure
20/20
Description
12/15
Adoption
15/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 6 days ago, so apify-install-auth is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

apify-install-auth compared with similar skills

All 4 of these similar skills score higher than apify-install-auth; compare them before choosing.

SkillScoreStarsUpdatedFormat
apify-install-auth (this skill)by jeremylongshore872.8k6d agoSKILL.md
Agent-Reachby Panniantong10086.3k14d agoCLAUDE.md
headroomby headroomlabs-ai10074.1ktodayCLAUDE.md
rufloby ruvnet10073.6ktodayCLAUDE.md
Scraplingby D4Vinci10084.6ktodayMCP Server

Frequently asked questions

How do I install apify-install-auth?
Run npx skills add jeremylongshore/tons-of-skills-marketplace --skill apify-install-auth. The install tabs above show the steps for each supported agent.
Which AI agents does apify-install-auth work with?
It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
Is apify-install-auth safe to use?
It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is apify-install-auth still maintained?
The repository was last updated 6 days ago, so apify-install-auth is actively maintained.

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

# For CALLING existing Actors from your app:
npm install apify-client

# For BUILDING your own Actors:
npm install apify crawlee

# For CLI deployment:
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.

# Option A: Environment variable (recommended for apps)
export APIFY_TOKEN="apif…[redacted]"

# Option B: .env file (add .env to .gitignore)
echo 'APIFY_TOKEN=apif…[redacted]' >> .env

# Option C: CLI login (for interactive development)
apify login
# Paste your token when prompted

The APIFY_TOKEN env var is auto-detected by both apify-client and the apify SDK. For every place a token can be supplied (constructor option, header, precedence) plus the full platform env-var list, see authentication reference.

Step 3: Verify Connection

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

// List your Actors to confirm auth works
const { items } = await client.actors().list();
console.log(`Authenticated. You have ${items.length} Actors.`);

Step 4: Verify CLI (if installed)

apify login --token YOUR_TOKEN
apify info  # Shows your account info

Output

A working, authenticated Apify setup:

  • The needed packages installed in node_modules (verify with npm ls apify-client).
  • APIFY_TOKEN available to the process — via a Write to .env, an exported shell var, or apify login credentials in ~/.apify/auth.json.
  • The Step 3 snippet printing Authenticated. You have N Actors. — proof the token reaches the API.
  • apify info showing your account (only when the CLI was installed in Step 1).

If the verify snippet throws instead of printing the count, jump to Error Handling below.

Error Handling

| Error | Cause | Solution | |-------|-------|----------| | 401 Unauthorized | Invalid or expired token | Regenerate token in Console > Settings > Integrations | | Cannot find module 'apify-client' | Package not installed | npm install apify-client | | APIFY_TOKEN is not set | Missing env var | Export APIFY_TOKEN or pass token to constructor | | apify: command not found | CLI not installed globally | npm install -g apify-cli |

Examples

The essential singleton-client skeleton:

// src/apify/client.ts
import { ApifyClient } from 'apify-client';
import 'dotenv/config';

let client: ApifyClient | null = null;

export function getClient(): ApifyClient {
  if (!client) {
    if (!process.env.APIFY_TOKEN) {
      throw new Error('APIFY_TOKEN environment variable is required');
    }
    client = new ApifyClient({ token: process.env.APIFY_TOKEN });
  }
  return client;
}

For the full worked set — the .env.example template, the verify snippet, and CLI verification — see worked examples.

Resources

Next Steps

With the client authenticated, proceed to apify-hello-world to make your first Actor call and push results to a dataset. If you are building your own Actor instead of calling one, the apify SDK and Crawlee installed above are your starting point — deploy with apify push.

Related Skills

View on GitHub
GitHub Stars2.8k
CategoryAutomation
Updated6d ago
Forks404

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions