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-authInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
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.
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.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| apify-install-auth (this skill)by jeremylongshore | 87 | 2.8k | 6d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 86.3k | 14d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.1k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.6k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 84.6k | today | MCP 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.
Skill content
View source on GitHubname: 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 withnpm ls apify-client). APIFY_TOKENavailable to the process — via a Write to.env, an exported shell var, orapify logincredentials in~/.apify/auth.json.- The Step 3 snippet printing
Authenticated. You have N Actors.— proof the token reaches the API. apify infoshowing 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
Agent-Reach
86.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.1kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.6k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Scrapling
84.6k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
