firecrawl-install-auth
Handles Firecrawl SDK installation and API authentication setup for Node.js and Python projects.
Install
mkdir -p .claude/skills/firecrawl-install-auth && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/7721" && unzip -o skill.zip -d .claude/skills/firecrawl-install-auth && rm skill.zipInstalls to .claude/skills/firecrawl-install-auth
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Install and configure Firecrawl SDK authentication for web scraping.Key capabilities
- →Install Firecrawl SDK for Node.js and Python
- →Configure API key authentication via environment variables
- →Verify API connectivity with a test scrape
- →Configure self-hosted Firecrawl instances
- →Update .gitignore to protect environment files
How it works
The SDK initializes with an API key, which is then used to authenticate requests to the Firecrawl service for scraping or crawling tasks.
Inputs & outputs
When to use firecrawl-install-auth
- →Initialize Firecrawl in project
- →Configure API authentication
- →Install Firecrawl SDK
- →Verify scrapability of websites
About this skill
Firecrawl Install & Auth
Overview
Install the Firecrawl SDK and configure API key authentication. Firecrawl turns any website into LLM-ready markdown or structured data. The SDK is published as @mendable/firecrawl-js on npm and firecrawl-py on PyPI.
Prerequisites
- Node.js 18+ or Python 3.10+
- Package manager (npm, pnpm, yarn, or pip)
- Firecrawl API key from firecrawl.dev/app (free tier available)
Instructions
Step 1: Install the SDK
set -euo pipefail
# Node.js (official npm package)
npm install @mendable/firecrawl-js
# Python
pip install firecrawl-py
Step 2: Configure Your API Key
# Set the environment variable (SDK reads FIRECRAWL_API_KEY automatically)
export FIRECRAWL_API_KEY="fc-YOUR_API_KEY"
# Or add to .env file (use dotenv in your app)
echo 'FIRECRAWL_API_KEY=fc-YOUR_API_KEY' >> .env
All Firecrawl API keys start with fc-. Get yours at firecrawl.dev/app.
Step 3: Verify Connection — TypeScript
import FirecrawlApp from "@mendable/firecrawl-js";
const firecrawl = new FirecrawlApp({
apiKey: process.env.FIRECRAWL_API_KEY!,
});
// Quick connection test: scrape a simple page
const result = await firecrawl.scrapeUrl("https://example.com", {
formats: ["markdown"],
});
if (result.success) {
console.log("Firecrawl connected. Page title:", result.metadata?.title);
console.log("Content length:", result.markdown?.length, "chars");
} else {
console.error("Firecrawl error:", result.error);
}
Step 4: Verify Connection — Python
from firecrawl import FirecrawlApp
firecrawl = FirecrawlApp(api_key="fc-YOUR_API_KEY")
# Quick connection test
result = firecrawl.scrape_url("https://example.com", params={
"formats": ["markdown"]
})
print(f"Title: {result.get('metadata', {}).get('title')}")
print(f"Content: {len(result.get('markdown', ''))} chars")
Step 5: Self-Hosted Setup (Optional)
// Point to your own Firecrawl instance instead of api.firecrawl.dev
const firecrawl = new FirecrawlApp({
apiKey: "any-key", // required even for self-hosted
apiUrl: "http://localhost:3002", // self-hosted Firecrawl URL
});
Output
@mendable/firecrawl-jsinstalled innode_modules/FIRECRAWL_API_KEYenvironment variable configured- Successful scrape confirming API connectivity
Error Handling
| Error | Cause | Solution |
|---|---|---|
401 Unauthorized | Invalid or missing API key | Verify key starts with fc- and is set in env |
402 Payment Required | Credits exhausted | Check balance at firecrawl.dev/app |
MODULE_NOT_FOUND | Wrong package name | Use @mendable/firecrawl-js not firecrawl-js |
ECONNREFUSED | Wrong API URL for self-hosted | Verify apiUrl and Docker container is running |
429 Too Many Requests | Rate limit exceeded | Wait for Retry-After header duration |
Examples
TypeScript with dotenv
import "dotenv/config";
import FirecrawlApp from "@mendable/firecrawl-js";
const firecrawl = new FirecrawlApp({
apiKey: process.env.FIRECRAWL_API_KEY!,
});
Python with Environment Variable
import os
from firecrawl import FirecrawlApp
firecrawl = FirecrawlApp(api_key=os.environ["FIRECRAWL_API_KEY"])
Verify .gitignore Protects Secrets
set -euo pipefail
# Ensure .env files are gitignored
grep -q "^\.env" .gitignore 2>/dev/null || echo -e "\n.env\n.env.local\n.env.*.local" >> .gitignore
Resources
Next Steps
After successful auth, proceed to firecrawl-hello-world for your first real scrape.
When not to use it
- →When using an API key that does not start with fc-
- →When the environment lacks Node.js 18+ or Python 3.10+
Prerequisites
Limitations
- →Requires specific package names like @mendable/firecrawl-js
- →Self-hosted instances require a specific apiUrl configuration
How it compares
This workflow automates the SDK installation and environment variable configuration compared to manual setup.
Compared to similar skills
firecrawl-install-auth side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| firecrawl-install-auth (this skill) | 1 | 26d | Review | Beginner |
| mcp-builder | 136 | 3mo | Review | Advanced |
| telegram-bot-builder | 106 | 6mo | Review | Intermediate |
| stripe-integration | 48 | 2mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
mcp-builder
anthropics
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
telegram-bot-builder
davila7
Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.
stripe-integration
wshobson
Implement Stripe payment processing for robust, PCI-compliant payment flows including checkout, subscriptions, and webhooks. Use when integrating Stripe payments, building subscription systems, or implementing secure checkout flows.
langchain-architecture
wshobson
Design LLM applications using the LangChain framework with agents, memory, and tool integration patterns. Use when building LangChain applications, implementing AI agents, or creating complex LLM workflows.
copilot-sdk
github
Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent.
voice-ai-development
davila7
Expert in building voice AI applications - from real-time voice agents to voice-enabled apps. Covers OpenAI Realtime API, Vapi for voice agents, Deepgram for transcription, ElevenLabs for synthesis, LiveKit for real-time infrastructure, and WebRTC fundamentals. Knows how to build low-latency, production-ready voice experiences. Use when: voice ai, voice agent, speech to text, text to speech, realtime voice.