exa-install-auth
Handles installation of Exa SDKs and API key authentication setup for Node.js and Python.
Install
mkdir -p .claude/skills/exa-install-auth && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8032" && unzip -o skill.zip -d .claude/skills/exa-install-auth && rm skill.zipInstalls to .claude/skills/exa-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 the exa-js SDK and configure API key authentication.Key capabilities
- →Install exa-js SDK via npm or pnpm
- →Install exa-py SDK via pip
- →Configure EXA_API_KEY environment variables
- →Initialize Exa client for TypeScript or Python
- →Verify API connectivity with search requests
How it works
The skill installs the official Exa SDK and provides scripts to set the EXA_API_KEY environment variable, followed by client initialization and a connectivity test.
Inputs & outputs
When to use exa-install-auth
- →Initialize Exa SDK in project
- →Configure API authentication
- →Manage environment variables for search
- →Verify installation success
About this skill
Exa Install & Auth
Overview
Install the official Exa SDK and configure API key authentication. Exa is a neural search API at api.exa.ai that retrieves web content using semantic similarity. Authentication uses the x-api-key header. The SDK is exa-js on npm or exa-py on PyPI.
Prerequisites
- Node.js 18+ or Python 3.10+
- Package manager (npm, pnpm, yarn, or pip)
- Exa account at dashboard.exa.ai
- API key from the Exa dashboard
Instructions
Step 1: Install the SDK
Node.js (exa-js)
set -euo pipefail
npm install exa-js
# or
pnpm add exa-js
Python (exa-py)
pip install exa-py
Step 2: Configure the API Key
# Set environment variable
export EXA_API_KEY="your-api-key-here"
# Or create .env file (add .env to .gitignore first)
echo 'EXA_API_KEY=your-api-key-here' >> .env
Add to .gitignore:
.env
.env.local
.env.*.local
Step 3: Initialize the Client
TypeScript
import Exa from "exa-js";
const exa = new Exa(process.env.EXA_API_KEY);
Python
from exa_py import Exa
import os
exa = Exa(api_key=os.environ["EXA_API_KEY"])
Step 4: Verify Connection
import Exa from "exa-js";
const exa = new Exa(process.env.EXA_API_KEY);
async function verifyConnection() {
try {
const result = await exa.search("test connectivity", { numResults: 1 });
console.log("Connected. Results:", result.results.length);
console.log("First result:", result.results[0]?.title);
} catch (err: any) {
if (err.status === 401) {
console.error("Invalid API key. Check EXA_API_KEY.");
} else if (err.status === 402) {
console.error("No credits remaining. Top up at dashboard.exa.ai.");
} else {
console.error("Connection failed:", err.message);
}
}
}
verifyConnection();
Output
exa-jsorexa-pyinstalled in project dependenciesEXA_API_KEYenvironment variable configured.envadded to.gitignore- Successful search result confirming connectivity
Error Handling
| Error | HTTP Code | Cause | Solution |
|---|---|---|---|
INVALID_API_KEY | 401 | Missing or invalid API key | Verify key at dashboard.exa.ai |
NO_MORE_CREDITS | 402 | Account balance exhausted | Top up credits in dashboard |
MODULE_NOT_FOUND | N/A | SDK not installed | Run npm install exa-js |
ENOTFOUND | N/A | Network unreachable | Check internet connectivity |
API_KEY_BUDGET_EXCEEDED | 402 | Spending limit reached | Increase budget in dashboard |
Examples
With dotenv (Node.js)
import "dotenv/config";
import Exa from "exa-js";
const exa = new Exa(process.env.EXA_API_KEY);
With Validation
function createExaClient(): Exa {
const apiKey = process.env.EXA_API_KEY;
if (!apiKey) {
throw new Error(
"EXA_API_KEY not set. Get one at https://dashboard.exa.ai"
);
}
return new Exa(apiKey);
}
Resources
Next Steps
After successful auth, proceed to exa-hello-world for your first search.
When not to use it
- →When the environment lacks Node.js 18+ or Python 3.10+
- →When the user does not have an Exa account or API key
Prerequisites
Limitations
- →Requires internet connectivity for SDK installation and API verification
- →Requires valid credits in the Exa account
How it compares
This workflow automates the specific SDK installation and environment variable configuration required for Exa compared to manual setup.
Compared to similar skills
exa-install-auth side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| exa-install-auth (this skill) | 0 | 27d | 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.