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

MITAuto-check: notesData & Analytics

Install Apify Install Auth

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill apify-install-auth -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace apify-install-auth --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/apify-install-auth .claude/skills/apify-install-auth && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
apify-install-auth
GitHub stars
2.8k
Token cost
~1.3k tokens
SKILL.md length
409 words
Files
3 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 4 steps: Install Packages → Configure Authentication → Verify Connection → …
  • Setting up a new Apify project
  • SKILL.md covers Overview, Package Map, Prerequisites and Instructions, plus 5 more sections
  • Calls npm; needs APIFY_TOKEN

What it does

Apify Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace. 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".

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/authentication.md` and `references/examples.md`). Compatibility notes: Designed for Claude Code

It sits in Data & Analytics, covering Web scraping. It works with Apify and npm. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Setting up a new Apify project
  • Configuring API tokens
  • Initializing apify-client / Apify SDK in your codebase
  • With install apify

Example prompts

  • “install apify”
  • “setup apify”
  • “apify auth”
  • “/apify-install-auth”

Requirements

  • Node.js
  • A credential in APIFY_TOKEN
  • A credential in YOUR_TOKEN
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Bash(npm:*), Bash(npx:*), Bash(apify:*)

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Install Packages
  2. Configure Authentication
  3. Verify Connection
  4. Verify CLI (if installed)

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Bash(npm:*)
    • Bash(npx:*)
    • Bash(apify:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.apify.com
    • console.apify.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • APIFY_TOKEN

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Apify Install Auth loads about 1.3k tokens when it runs, and up to ~2.2k if it reads all its reference files. Until then it costs about 74 tokens; SKILL.md has 409 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:61
    Pick one. Read any existing `.env` first so you do not clobber it, then Write the token in.
  • NoteMentions a .env fileSKILL.md:67
    # Option B: .env file (add .env to .gitignore)
  • NoteMentions a .env fileSKILL.md:68
    PIFY_TOKEN=apify_api_YOUR_TOKEN_HERE' >> .env
  • NoteMentions a .env fileSKILL.md:101
    ailable to the process — via a Write to `.env`, an exported shell var, or `apify login` credentials in `~/.apify/auth.js

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 409 words, ~1,285 tokens.

Download SKILL.mdSave it as .claude/skills/apify-install-auth/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
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:*)
compatibility
Designed for Claude Code
version
1.5.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, scraping, automation, apify

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

PackagenpmPurpose
apify-clientnpm i apify-clientCall Actors, manage datasets/KV stores from external apps
apifynpm i apifyBuild Actors (includes Actor.init(), Actor.pushData())
crawleenpm i crawleeCrawler framework (Cheerio, Playwright, Puppeteer crawlers)
apify-clinpm i -g apify-cliCLI 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
bash
# 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.

bash
# Option A: Environment variable (recommended for apps)
export APIFY_TOKEN="apify_api_YOUR_TOKEN_HERE"

# Option B: .env file (add .env to .gitignore)
echo 'APIFY_TOKEN=apify_api_YOUR_TOKEN_HERE' >> .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
typescript
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)
bash
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.

Show full SKILL.md (137 more words)Show less

Error Handling

ErrorCauseSolution
401 UnauthorizedInvalid or expired tokenRegenerate token in Console > Settings > Integrations
Cannot find module 'apify-client'Package not installednpm install apify-client
APIFY_TOKEN is not setMissing env varExport APIFY_TOKEN or pass token to constructor
apify: command not foundCLI not installed globallynpm install -g apify-cli

Examples

The essential singleton-client skeleton:

typescript
// 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.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/.curated/apify-install-auth of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/authentication.md
  • references/examples.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Apify Install Auth next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Apify Install Auth compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Apify Install Auth this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.3kAutomated safety check: NotesMIT
Chrome Devtoolseinverne/dotfiles1211 repos~1.6kAutomated safety check: NotesApache-2.0
Reddit Post Findergooseworks-ai/goose-skills1.2k1 repos~1.2kAutomated safety check: PassMIT
Apify CLIapify/apify-cli256—~1.5kAutomated safety check: PassApache-2.0
Apify Collectextrasmall0/dear-hiring-manager111—~1.1kAutomated safety check: NotesMIT
Apify Lead Scoring Enrichmentapify/awesome-skills266—~4.4kAutomated safety check: NotesApache-2.0

Similar skills

  • Chrome Devtools

    einverne/dotfiles

    Browser automation, debugging, and performance analysis using Puppeteer CLI scripts.

    121 GitHub starsUsed in 1 repo~1.6k tokens
    Data & AnalyticsAuto-check: notes
  • Reddit Post Finder

    gooseworks-ai/goose-skills

    Scrape and search Reddit posts using Apify. An agent skill from gooseworks-ai/goose-skills.

    1.2k GitHub starsUsed in 1 repo~1.2k tokens
    Data & AnalyticsAuto-check passed
  • Apify CLI

    apify/apify-cli

    Official

    Patterns for invoking the Apify CLI (apify) from agents. An agent skill from apify/apify-cli.

    256 GitHub stars~1.5k tokensUpdated today
    Data & AnalyticsAuto-check passed
  • Apify Collect

    extrasmall0/dear-hiring-manager

    Collect fresh job-posting URLs into ~/.dear-hiring-manager/urls.txt by running an Apify job scraper — the discovery source for /batch.

    111 GitHub stars~1.1k tokensUpdated 2 mo ago
    Data & AnalyticsAuto-check: notes
  • Apify Lead Scoring Enrichment

    apify/awesome-skills

    Official

    Score and enrich a CSV of B2B leads using Apify Actors. An agent skill from apify/awesome-skills.

    266 GitHub stars~4.4k tokensUpdated 17 days ago
    Data & AnalyticsAuto-check: notes
  • Carousel Benchmark

    nestyme/awesome-prompts

    Find the TikTok photo-mode carousels (slideshows) that actually go viral in a niche and the accounts behind them, rank them by organic quality (save-rate, like-rate, boost detection) instead of raw…

    151 GitHub stars~2.6k tokensUpdated 10 days ago
    Data & AnalyticsAuto-check: notes

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Questions about Apify Install Auth

What does Apify Install Auth do?

Install and configure Apify SDK, CLI, and API client authentication. Apify Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace. Install and configure Apify SDK, CLI, and API client authentication.

When should I use Apify Install Auth?

Apify Install Auth fits situations like: setting up a new Apify project; configuring API tokens; initializing apify-client / Apify SDK in your codebase; with install apify.

How do I install Apify Install Auth in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill apify-install-auth -a claude-code`. Or copy the skill folder (skills/.curated/apify-install-auth in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/apify-install-auth in your project. Claude Code loads it when a task matches its description.

How do I install Apify Install Auth in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill apify-install-auth -a codex`. Or copy the skill folder (skills/.curated/apify-install-auth in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/apify-install-auth in your project. Codex loads it when a task matches its description.

Can I use Apify Install Auth in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill apify-install-auth -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/apify-install-auth, .gemini/skills/apify-install-auth, .github/skills/apify-install-auth and .opencode/skills/apify-install-auth in your project.

What does Apify Install Auth need to run?

Going by SKILL.md and its folder, Apify Install Auth needs the command-line tools its instructions call (npm) and credentials named APIFY_TOKEN. Our summary lists: Node.js; A credential in APIFY_TOKEN; A credential in YOUR_TOKEN. Its frontmatter pre-approves these tools: Read, Write, Bash(npm:*), Bash(npx:*), Bash(apify:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Apify Install Auth access the network?

SKILL.md names 2 domains. As links in the text: docs.apify.com and console.apify.com. This is read from the text; nothing was executed.

Is Apify Install Auth safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Apify Install Auth use?

Apify Install Auth is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Apify Install Auth use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 900 tokens, read only when the agent opens those files.

What are the alternatives to Apify Install Auth?

Skills that share tags, products or a category with Apify Install Auth: Chrome Devtools (einverne/dotfiles, 121 stars), Reddit Post Finder (gooseworks-ai/goose-skills, 1.2k stars), Apify CLI (apify/apify-cli, 256 stars) and Apify Collect (extrasmall0/dear-hiring-manager, 111 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Apify Install Auth?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.