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

# Introduction

> Payment infrastructure for the Stellar blockchain

StellarTools is a payments platform built on [Stellar](https://stellar.org). 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
* 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](https://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.

<Note>Use testnet keys while building. Switch to a mainnet key when you are ready to go live.</Note>

## Install the SDK

```bash theme={null}
npm install @stellartools/core
```

```ts theme={null}
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

<CardGroup cols={2}>
  <Card title="TypeScript SDK" icon="code" href="/integrations/typescript-sdk">
    Core SDK for customers, checkouts, products, subscriptions, and more.
  </Card>

  <Card title="MCP Server" icon="robot" href="/integrations/mcp">
    Let Cursor and other agents manage customers, payments, and subscriptions.
  </Card>

  <Card title="Integrations" icon="puzzle-piece" href="/integrations/aisdk">
    Adapters for AI SDK, LangChain, MedusaJS, Better Auth, and Uploadthing.
  </Card>

  <Card title="Webhooks" icon="webhook" href="/webhooks">
    Listen to payment, subscription, and customer events in real time.
  </Card>

  <Card title="API Reference" icon="terminal" href="/api-reference/introduction">
    Full REST API reference for all resources.
  </Card>
</CardGroup>
