Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.stellartools.dev/llms.txt

Use this file to discover all available pages before exploring further.

StellarTools is a payments platform built on Stellar. You can use it to accept crypto payments, run subscriptions, charge by usage, and pay out to local currencies. Payments settle in a few seconds for fractions of a cent. What you can build with it:
  • One-time and recurring checkout pages
  • Subscription billing with pause, resume, and cancellation
  • Metered billing for AI apps, file uploads, or any usage-based product
  • Customer portals where users manage their own subscriptions and invoices
  • Global payouts to local currencies (NGN, KES, GHS, and more)

Get your API key

Go to dashboard.stellartools.dev/api-keys and create a new key. The key encodes your environment (testnet or mainnet), so you do not need to set any base URLs or environment flags.
Use testnet keys while building. Switch to a mainnet key when you are ready to go live.

Install the SDK

npm install @stellartools/core
import { StellarTools } from "@stellartools/core";

const st = new StellarTools({
  api_key: process.env.STELLAR_TOOLS_API_KEY!,
});
That is all the setup you need. From here, st.customers, st.checkout, st.subscriptions, and the rest are ready to use.

Explore

TypeScript SDK

Core SDK for customers, checkouts, products, subscriptions, and more.

Integrations

Adapters for AI SDK, LangChain, MedusaJS, Better Auth, and Uploadthing.

Webhooks

Listen to payment, subscription, and customer events in real time.

API Reference

Full REST API reference for all resources.