---
title: "Getting started"
description: "A new organization's first steps: create a key, price a meter, set a budget, and reserve from a service."
---

# Getting started

Sign in at [tidegate.attune.inc](https://tidegate.attune.inc) and create an organization;
[Signing up and organizations](/tidegate/docs/organizations) shows how. You are its admin, and it opens on the
Budgets page, with nothing on it yet.

These steps need an admin. If you joined someone else's organization as a member, you can see
everything here but change nothing; ask one of its admins ([People and roles](/tidegate/docs/people)).

Four steps get a service's spend counted and limited:

1. [Create a key](#create-a-key) for the service.
2. [Price a meter](#price-a-meter) for what the vendor charges for, or define one.
3. [Set a budget](#set-a-budget) on the meter.
4. [Reserve from the service](#reserve-from-the-service) before each paid call.

New meter and New budget each offer **Set up with your agent**. Connect an [agent](/tidegate/docs/agents) such
as Claude Code to Tidegate once, then describe what you use and what you want to cap. The page turns
that into a prompt: choose **Copy prompt**, and paste it into your agent, which proposes what it will
define and waits for your go-ahead. The steps below do it yourself, with **Set up manually**.

## Create a key

Open Settings, then Keys, and choose **New key**:

- **Name**: who holds it, such as the service that sends it.
- **Environment**: where the service runs. It starts as `production`; type `staging`, say, for a
  staging deployment. See [Environments](/tidegate/docs/environments).
- **Role**: **Spender**, for a service that reserves spend.

Choose **Create key**, then copy the secret straight into the service's secret store. Tidegate shows
it only this once.

To keep one service's spend apart from another's, define an [app](/tidegate/docs/apps) for each first, with
**New app** on the Apps page, in Settings. New key then asks for the key's **App**. A key's app and
environment can't change once it is created. [API keys](/tidegate/docs/keys) has the rest.

The Keys page also shows the address your services call, with your organization's id in it.

## Price a meter

Your organization starts with meters for 21 of the most used usage-priced APIs already defined:
model providers such as OpenAI, Anthropic, and Gemini, one meter for each model and kind of token;
speech, messaging, maps, search, and scraping APIs; and GitHub Actions' runners. [Meters](/tidegate/docs/meters#the-meters-every-organization-has)
lists them all. Open Settings, then Meters, to find the ones your service uses. All but GitHub's
come with no price: give each one you use its price as the vendor quotes it, such as $1.25 per 1M
units ([Prices](/tidegate/docs/prices)). Remove the ones you'll never use, if you like; an unused meter costs
nothing.

For a vendor or model that isn't there, choose **New meter**, then **Set up manually**:

- **Id**: what services name when they reserve, such as `openai.gpt-5.input-tokens`.
- **Vendor**: who charges for it, such as `openai`.
- **Vendor's name**: the vendor's own name for what it counts, such as `gpt-5 input`.
- **Price**: what a unit costs now, as the vendor quotes it, such as $1.25 per 1M units. For a
  meter that counts calls for a rate limit, check **No price yet** instead.

Choose **Define meter and price**, or **Define meter** with no price. A meter's id, vendor,
and vendor's name can't be changed once it's defined, and its unit shouldn't be, so read
[Meters](/tidegate/docs/meters#choosing-the-unit) on choosing its unit first. Its price can change at any
time: [Prices](/tidegate/docs/prices#prices-over-time) covers that.

## Set a budget

A budget counts in dollars, at its meters' prices, so price a meter before you budget for it. For
a meter your organization started with, once you've priced it, choose **New budget** on the
Budgets page. Once you define a meter of your own with a price, Tidegate asks whether to set a
budget on it: choose **Set up manually**, and the form opens with the meter already checked.

- **Meters**: what the budget counts. From a new meter, it is already checked; from the Budgets
  page, search for the meters and check them. A meter with no price can't be checked, since a
  budget counts in dollars, at its meters' prices.
- **Limit**: the most the budget may spend, in dollars, before it resets.
- **Resets**: how often spend starts over, such as **Every month**.
- **App**, once you have apps: every app, or one app's keys only.

Tidegate suggests an **Id** from what you choose. **Advanced** narrows the budget to labels, or to
an environment once you have more than one, or splits it, such as one limit for each of your users.
Choose **Define budget**. [Budgets](/tidegate/docs/budgets) explains each choice.

## Reserve from the service

Before each paid call, the service reserves the call's estimated cost, with its key:

```sh
curl -X POST https://tidegate.attune.inc/tenants/$TIDEGATE_ORGANIZATION/reservations \
  -H "Authorization: Bearer $TIDEGATE_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "id": "summary-8f14e45f", "quantities": { "openai-gpt5-input": 4000 }, "labels": {} }'
```

Every reservation sends `labels`, even empty: budgets narrow and split on them.

A `200` means every budget that counts the call had room, and its spend is recorded: make the call.
A `429` means a budget refused it, and nothing was charged. After the call, the service can settle
the reservation with what the call actually used.
[Calling Tidegate from a service](/tidegate/docs/services) covers both calls, and the errors.

The Budgets page then shows the spend in the budget's current window, against its limit.

## Next

- [Invite the people you work with](/tidegate/docs/organizations#inviting-people).
- [Connect an agent](/tidegate/docs/agents), to read and manage all of this from your editor.
- See what was spent, by app, environment, vendor, meter, or label, on the [Spend](/tidegate/docs/spend) page.
- See what your organization's plan includes, in [Plans and billing](/tidegate/docs/plans).
