> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexprice.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Self-hosting

> Run the Flexprice community edition on your own infrastructure: where the guides are and what a developer needs to know first

Flexprice is open source under a community edition you can run yourself. The deployment guides live in the Documentation tab; this page is the developer's entry point to them and the differences that matter when you build against a self-hosted instance instead of Flexprice Cloud.

## Self-hosting guides

> [card] [Self-hosting guide](https://docs.flexprice.io/docs/getting-started/self-hosting-guide.md)
>
> Docker Compose on one machine: Postgres, ClickHouse, Kafka, Temporal, and the API.

> [card] [Self-hosting on AWS](https://docs.flexprice.io/docs/getting-started/self-hosting-aws.md)
>
> A production layout on AWS with managed data stores.

> [card] [Frontend](https://docs.flexprice.io/docs/getting-started/self-hosting-frontend.md)
>
> Build and serve the dashboard against your API.

> [card] [Configuration](https://docs.flexprice.io/docs/getting-started/configuration.md)
>
> Every environment variable, including webhook and Svix settings.

The [architecture page](https://docs.flexprice.io/docs/getting-started/architecture.md) explains what each service does and how events flow through them.

## What self-hosting changes for your code

| Concern | Flexprice Cloud | Self-hosted |
| - | - | - |
| Base URL | `https://us.api.flexprice.io/v1` (US), `https://api.cloud.flexprice.io/v1` (India), `https://canada.api.flexprice.io/v1` (Canada), or `https://eu.api.flexprice.io/v1` (EU) | Your host, for example `http://localhost:8080/v1`. Pass it to the SDK's server URL, the CLI's `--base-url`, and the MCP server's `--server-url` |
| API keys | Created in the dashboard | Same, in your dashboard; a local seed key is documented in the [self-hosting guide](https://docs.flexprice.io/docs/getting-started/self-hosting-guide.md#api-documentation) |
| Webhooks | Svix delivery with signatures and long retries | Native delivery by default: no signature, short retry window. Enable Svix in configuration for parity. See [Signature verification](https://docs.flexprice.io/developers/webhooks/signature-verification.md#signature-verification-on-self-hosted-deployments) |
| OpenAPI spec | Hosted at `https://swagger.flexprice.io`. See [OpenAPI spec](https://docs.flexprice.io/developers/api-tooling/openapi-spec.md) | `docs/swagger/swagger-3-0.json` in the repository, matching your checked-out version |
| Status | [status.flexprice.io](https://status.flexprice.io) | Poll `GET /health` on your deployment |
| Version | Upgraded by Flexprice | You pull a release. Check the [changelog](https://docs.flexprice.io/docs/changelog.md) for migrations |

## Pointing each tool at your instance

```sh CLI theme={null}
flexprice login --base-url http://localhost:8080/v1 --api-key "$KEY"
```

```json MCP server theme={null}
{
  "mcpServers": {
    "flexprice": {
      "command": "npx",
      "args": ["-y", "@flexprice/mcp-server", "start",
               "--server-url", "http://localhost:8080/v1",
               "--api-key-auth", "YOUR_API_KEY"]
    }
  }
}
```

```typescript SDK theme={null}
const flexprice = new Flexprice({
  serverURL: "http://localhost:8080/v1",
  apiKeyAuth: process.env.FLEXPRICE_API_KEY,
});
```

## Contributing to Flexprice open source

Fixes and features for the backend, dashboard, and these docs are welcome. Start with the [contributing guide](https://docs.flexprice.io/docs/contributing-guide/introduction) and the [backend setup](https://docs.flexprice.io/docs/contributing-guide/backend-setup.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.