smithery.ai

autumn-create-customer

Skill for setting up Autumn billing integration and creating customers.

First seen Mar 22, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,787 B
  • docs SUMMARY.md 101 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Autumn Customer Setup

Always consult docs.useautumn.com for code examples and latest API.


Quick Reference

Environment Variables

Installation

npm install autumn-js    # Node.js
pip install autumn-py    # Python

Integration Paths

Stack Path
React + Node.js Mount handler + AutumnProvider
Backend only Initialize client + call API

Path A: React + Node.js

Handler Setup

Framework File Import
Next.js App Router app/api/autumn/[...all]/route.ts autumn-js/next
React Router app/routes/api.autumn.tsx autumn-js/react-router
Hono Any file autumn-js/hono
Express Any file autumn-js/express
Fastify Any file autumn-js/fastify
import { autumnHandler } from "autumn-js/next";

export const { GET, POST } = autumnHandler({
  identify: async (request) => {
    const session = await getSession(request);
    return {
      customerId: session.user.id,  // or session.org.id for B2B
      customerData: { name: session.user.name, email: session.user.email },
    };
  },
});

Client Setup

import { AutumnProvider } from "autumn-js/react";

<AutumnProvider>{children}</AutumnProvider>

// Different backend URL:
<AutumnProvider backendUrl={process.env.NEXT_PUBLIC_API_URL} />

Verify

import { useCustomer } from "autumn-js/react";

const { customer } = useCustomer();
console.log("Autumn customer:", customer);

Path B: Backend Only

Initialize

import { Autumn } from "autumn-js";

const autumn = new Autumn({ secretKey: process.env.AUTUMN_SECRET_KEY });
from autumn import Autumn

autumn = Autumn('am_sk_test_xxx')

Create Customer

const { data } = await autumn.customers.create({
  id: "user_id_from_auth",
  name: "Test User",
  email: "[email protected]",
});

Common Gotchas

  1. B2C vs B2B - Decide if customerId is user ID or org ID before integrating
  2. Idempotent - customers.create returns existing customer if ID exists
  3. Backend URL - Pass backendUrl to provider if API is on different domain
  4. Secret key - Keep AUTUMNSECRETKEY server-side only

Resources