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

# Installation and upgrades

> How a BYOC install and each upgrade run, and which parts your platform team does.

Installing and upgrading are done together with the TensorCost team. We supply the release, the exact parameters and the commands for your account. This page shows the shape so you can plan.

## Install

**1. Agree the release and licence**

We confirm the release, region and sizing, and issue your licence.

**2. Your team creates the stack**

Using the template we give you, your platform team creates one CloudFormation stack in your account with your hostname, certificate and first-admin email. It takes roughly half an hour.

**3. Point DNS at the install**

Create a DNS record for your hostname that points at the CloudFront address the stack reports.

**4. Finish setup in the browser**

Open `https://<your hostname>/setup` and use the one-time setup token from Secrets Manager. You connect your identity provider, optionally set up email, and paste the licence. See [Sign-in](https://docs.tensorcost.com/byoc/identity.md).

**5. Sign in and check**

Sign in with your identity provider. We run a post-install check with you before you point SDKs at the install.

**6. Subscribe to alarms**

Add your team to the install's alert topic and open its CloudWatch dashboard. [Running the install](https://docs.tensorcost.com/byoc/operations.md) covers what the alarms mean.

> [!WARNING]
>
> Do not use the console's own page or release list to decide which version to run. Ask the TensorCost team.

## Upgrade

Each release is a new, fixed version. Your platform team applies it as an update to the same stack, with every setting kept and only the version changed. We send release notes first. Some releases need an extra step, such as re-ingesting a spend period, and we tell you in advance.

* Database changes run automatically when the services start and only move forward.
* A failed service deployment rolls back by itself.
* To go back across a database change, restore from a snapshot. Plan a snapshot before any upgrade.
* Upgrades can change which SDK versions the server accepts. See [Pointing the SDK and API at your install](https://docs.tensorcost.com/byoc/for-developers.md).
* At sizes L and XL, the gateway, the proxy and ai-service scale on CPU, and the scaler owns their counts. An upgrade leaves those counts where they are. See [Scaling](https://docs.tensorcost.com/byoc/operations.md#scaling).

### How a release is tested before you get it

From byoc-v0.1.114, a self-hosted release has to pass a load test at size L before it is published. The test installs an earlier production release, upgrades it to the new one while traffic is running, and checks that no call failed during the upgrade and that the spend already recorded didn't change. It then runs sustained load on the new release, kills a proxy pod and cuts Redis while the load runs, and checks that every accepted call's spend is recorded exactly once, that latency and database load stay inside their limits, and that normal traffic gets no rate-limit errors. byoc-v0.1.114 is the first release published under this rule. Measured results are on [Running the install](https://docs.tensorcost.com/byoc/operations.md#measured-capacity).

## Licence renewal

Paste the new licence in **Settings › Offline licence**. It takes effect within about 30 seconds. If a licence expires, observing spend keeps working, but applied controls such as safety rules, compliance profiles, chargeback, judge keys, applied routing and GPU cost features stop until you renew.

## Backups and removal

RDS keeps 14 days of automated backups. Delete the root stack to remove an install. A final database snapshot is kept.


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