Agent skill

Klaviyo Install Auth

by jeremylongshore in jeremylongshore/tons-of-skills-marketplace

Install and configure Klaviyo Node.js SDK with API key authentication.

MITAuto-check: notesMarketing & SEO

Install Klaviyo Install Auth

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

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

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace klaviyo-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/klaviyo-install-auth .claude/skills/klaviyo-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
klaviyo-install-auth
GitHub stars
2.8k
Token cost
~1.3k tokens
SKILL.md length
451 words
Files
3 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Install and configure Klaviyo Node.js SDK with API key authentication.

  • Works in 3 steps: Install the Official SDK → Configure Authentication → Initialize the SDK
  • Setting up a new Klaviyo integration
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 4 more sections
  • Calls npm and curl; reaches a.klaviyo.com; needs KLAVIYO_PRIVATE_KEY

What it does

Klaviyo Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace. Install and configure Klaviyo Node.js SDK with API key authentication. Use when setting up a new Klaviyo integration, configuring API keys, or initializing the klaviyo-api package in your project. Trigger with phrases like "install klaviyo", "setup klaviyo", "klaviyo auth", "configure klaviyo API key", "klaviyo SDK setup".

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/examples.md` and `references/implementation.md`). Compatibility notes: Designed for Claude Code

It sits in Marketing & SEO, covering Email marketing. It works with Node.js and Python. 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 Klaviyo integration
  • Configuring API keys
  • Initializing the klaviyo-api package in your project
  • With phrases like install klaviyo

Example prompts

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

Requirements

  • Python 3
  • Node.js
  • A credential in KLAVIYO_PRIVATE_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Read, Write, Edit, Bash(npm:*), Bash(pnpm:*), Bash(pip:*), Grep

Workflow steps

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

  1. Install the Official SDK
  2. Configure Authentication
  3. Initialize the SDK

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
    • Edit
    • Bash(npm:*)
    • Bash(pnpm:*)
    • Bash(pip:*)
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • curl

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • a.klaviyo.com

    Also links to:

    • developers.klaviyo.com
    • klaviyo.com
    • npmjs.com
    • github.com
    • status.klaviyo.com

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

  • Credentials

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

    • KLAVIYO_PRIVATE_KEY

    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

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

Always · name and description, kept in context so the agent knows when to use it
~86
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
~3k

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:55
    Store the private key in `.env` and confirm it is gitignored. Klaviyo uses two key types:
  • NoteMentions a .env fileSKILL.md:85
    - `.env` file with `KLAVIYO_PRIVATE_KEY` set

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). 451 words, ~1,307 tokens.

Download SKILL.mdSave it as .claude/skills/klaviyo-install-auth/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
klaviyo-install-auth
description
Install and configure Klaviyo Node.js SDK with API key authentication. Use when setting up a new Klaviyo integration, configuring API keys, or initializing the klaviyo-api package in your project. Trigger with phrases like "install klaviyo", "setup klaviyo", "klaviyo auth", "configure klaviyo API key", "klaviyo SDK setup".
allowed-tools
Read, Write, Edit, Bash(npm:*), Bash(pnpm:*), Bash(pip:*), Grep
compatibility
Designed for Claude Code
version
1.7.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, klaviyo, email-marketing, cdp

Klaviyo Install & Auth

Overview

Set up the official klaviyo-api Node.js SDK and configure private API key authentication against Klaviyo's REST API (revision 2024-10-15). The workflow below is the high-level path; the verbatim code for every step lives in the full implementation walkthrough, and copy-paste sequences live in worked examples.

Prerequisites

  • Node.js 18+ (or Python 3.10+ for Python SDK)
  • Klaviyo account at https://www.klaviyo.com/
  • Private API key from Settings > API Keys in Klaviyo dashboard
  • Public API key (for client-side only -- never use in server code)

Instructions

The full sequence is five steps. The essentials are below; drill into references/implementation.md for the complete code of each step (verify script, revision header, Python setup, scope table).

Step 1: Install the Official SDK
bash
# Node.js (official SDK -- NOT @klaviyo/sdk, that's deprecated)
npm install klaviyo-api

Important: The npm package is klaviyo-api, not @klaviyo/sdk. The SDK exports per-resource API classes (ProfilesApi, EventsApi, etc.) that each take an ApiKeySession.

Step 2: Configure Authentication

Store the private key in .env and confirm it is gitignored. Klaviyo uses two key types:

Key TypePrefixUse CaseHeader
Private API Keypk_Server-side REST APIAuthorization: Klaviyo-API-Key pk_***
Public API Key6-charClient-side Track/IdentifyQuery param company_id
Step 3: Initialize the SDK
typescript
// src/klaviyo/client.ts
import { ApiKeySession, ProfilesApi, EventsApi, ListsApi } from 'klaviyo-api';

const session = new ApiKeySession(process.env.KLAVIYO_PRIVATE_KEY!);

export const profilesApi = new ProfilesApi(session);
export const eventsApi = new EventsApi(session);
export const listsApi = new ListsApi(session);
Steps 4-5: Verify & set the revision header

Run a one-time verification against AccountsApi.getAccounts() to prove the key works, and remember every request needs a revision: 2024-10-15 header (the SDK adds it automatically; raw HTTP does not). Full verify script + cURL smoke test: references/implementation.md.

Output

  • klaviyo-api package installed in node_modules
  • .env file with KLAVIYO_PRIVATE_KEY set
  • Verified API connection with account name printed
  • Per-resource API clients ready for import
Show full SKILL.md (194 more words)Show less

Error Handling

ErrorStatusCauseSolution
Authentication failed401Invalid or expired private keyRegenerate key at Settings > API Keys
Forbidden403Key missing required scopesCreate key with appropriate scopes (e.g., profiles:read)
Rate limited429Exceeded 75 req/s burst or 700 req/min steadyHonor Retry-After header; see klaviyo-rate-limits
MODULE_NOT_FOUNDN/AWrong package nameUse klaviyo-api, not @klaviyo/sdk
ENOTFOUND a.klaviyo.comN/ADNS/network failureCheck internet connectivity, firewall rules

Examples

Four copy-paste sequences (fresh Node project, key verification, Python with retry tuning, raw-HTTP smoke test) are in references/examples.md. The fastest sanity check — confirm a key from a shell before writing any code:

bash
curl -X GET "https://a.klaviyo.com/api/profiles/" \
  -H "Authorization: Klaviyo-API-Key pk_***" \
  -H "revision: 2024-10-15" \
  -H "Accept: application/vnd.api+json"

A 200 with a JSON data array means the key and revision header are valid; a 401 means the key is wrong; a 403 means it lacks the profiles:read scope.

Resources

Next Steps

After successful auth, proceed to the klaviyo-hello-world skill for your first profile + event API call, then klaviyo-rate-limits to harden request handling against the 75 req/s burst ceiling.

© 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/klaviyo-install-auth of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/examples.md
  • references/implementation.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Klaviyo 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.

Klaviyo Install Auth compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Klaviyo Install Auth this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.3kAutomated safety check: NotesMIT
Send Email Campaignindranilbanerjee/digital-marketing-pro8621 repos~3.2kAutomated safety check: PassMIT
Dep Auditthatrebeccarae/claude-marketing161—~2kAutomated safety check: PassMIT
Email Sequencefreekmurze/dotfiles1k19 repos~2kAutomated safety check: PassNone
Emailscoreyhaines31/marketingskills54k1 repos~2.8kAutomated safety check: PassMIT
Release Skillsnexmoe/eve4213 repos~3.3kAutomated safety check: PassNone

Similar skills

  • Send Email Campaign

    indranilbanerjee/digital-marketing-pro

    Send an email campaign via a connected ESP with spam and compliance checks, approval-gated.

    862 GitHub starsUsed in 1 repo~3.2k tokens
    Marketing & SEOAuto-check passed
  • Dep Audit

    thatrebeccarae/claude-marketing

    Cross-repository dependency audit. An agent skill from thatrebeccarae/claude-marketing.

    161 GitHub stars~2k tokensUpdated 4 mo ago
    Marketing & SEOAuto-check passed
  • Email Sequence

    freekmurze/dotfiles

    When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program.

    1k GitHub starsUsed in 19 repos~2k tokens
    Marketing & SEOAuto-check passed
  • Emails

    coreyhaines31/marketingskills

    When the user wants to create or optimize an email sequence, drip campaign, automated email flow, or lifecycle email program.

    54k GitHub starsUsed in 1 repo~2.8k tokens
    Marketing & SEOAuto-check passed
  • Release Skills

    nexmoe/eve

    Universal release workflow. An agent skill from nexmoe/eve.

    421 GitHub starsUsed in 3 repos~3.3k tokens
    DevelopmentAuto-check passed
  • Open Kimi Ppt

    jinwyp/open-ppt-skill

    Create, edit, replicate, read, and export presentations. An agent skill from jinwyp/open-ppt-skill.

    161 GitHub starsUsed in 2 repos~5.1k tokens
    Documents & OfficeAuto-check passed

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

Categories

Questions about Klaviyo Install Auth

What does Klaviyo Install Auth do?

Install and configure Klaviyo Node.js SDK with API key authentication. Klaviyo Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace.js SDK with API key authentication.

When should I use Klaviyo Install Auth?

Klaviyo Install Auth fits situations like: setting up a new Klaviyo integration; configuring API keys; initializing the klaviyo-api package in your project; with phrases like install klaviyo.

How do I install Klaviyo Install Auth in Claude Code?

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

How do I install Klaviyo Install Auth in Codex?

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

Can I use Klaviyo 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 klaviyo-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/klaviyo-install-auth, .gemini/skills/klaviyo-install-auth, .github/skills/klaviyo-install-auth and .opencode/skills/klaviyo-install-auth in your project.

What does Klaviyo Install Auth need to run?

Going by SKILL.md and its folder, Klaviyo Install Auth needs the command-line tools its instructions call (npm and curl) and credentials named KLAVIYO_PRIVATE_KEY. Our summary lists: Python 3; Node.js; A credential in KLAVIYO_PRIVATE_KEY. Its frontmatter pre-approves these tools: Read, Write, Edit, Bash(npm:*), Bash(pnpm:*), Bash(pip:*), Grep. Compatibility (from SKILL.md): Designed for Claude Code.

Does Klaviyo Install Auth access the network?

SKILL.md names 6 domains. In commands or code: a.klaviyo.com; the agent is likely to contact it when it follows the instructions. As links in the text: developers.klaviyo.com, klaviyo.com, npmjs.com, github.com and status.klaviyo.com. This is read from the text; nothing was executed.

Is Klaviyo 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 Klaviyo Install Auth use?

Klaviyo 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 Klaviyo Install Auth use?

About 1.3k tokens (SKILL.md is roughly 5.2k 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 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Klaviyo Install Auth?

Skills that share tags, products or a category with Klaviyo Install Auth: Send Email Campaign (indranilbanerjee/digital-marketing-pro, 862 stars), Dep Audit (thatrebeccarae/claude-marketing, 161 stars), Email Sequence (freekmurze/dotfiles, 1k stars) and Emails (coreyhaines31/marketingskills, 54k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Klaviyo 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.