# Credits and limits: what spends, who pays, and what to do at a limit

You are an AI agent. This page is one of Base's guides for agents (https://createbases.com/llms.txt lists them all). Follow it as written. Where it says stop, stop and tell the person what it says.

A name in code such as `list_bases` is a tool of the Base connector. In a hosted chat it is one of your own tools. From a shell it runs as a command, with a key in `BASE_KEY` or after `npx -y base-knowledge login`: `npx -y base-knowledge call <tool> '<json>'`. `npx -y base-knowledge tools <tool>` prints a tool's arguments: read them before a first call, and never guess one.

Base charges for reading, in credits. A workspace holds the credits, and every Base in it spends from that one balance. Prices and plans are at https://createbases.com/pricing.md. **You never sell a plan, suggest an upgrade, or name a price as a reason to act.** You say what a limit said, what still works, and stop.

## What spends credits, and what never does

| Never | Spends |
| --- | --- |
| Opening, reading and searching a Base | Reading a new document, or a new version of one |
| A question answered at `quick` depth | A question answered at `auto` or `deep` depth |
| Sharing, inviting, publishing | Reading the Base again (`act_on_base` `reread`) |
| Comments, tasks and threads | Changing what the Base is for (`configure_base` `goal`), which reads it again |
| Copying a Base | Suggesting, writing or rewriting a skill |

Before anything in the right-hand column that the person did not ask for by name, say that it spends credits and get a yes. A re-read and a goal change are the two an agent reaches for too easily.

## Who pays, and what is left

- `list_bases` returns `workspaces`: each one's `name`, `plan`, `credits_left` and which is the `default`. `credits_left` is `null` where the workspace is not metered.
- A Base's summary from `get_base` names its workspace and what that workspace has left.
- A Base someone shared with the person is paid for by its owner's workspace, which you are never told. Reading it costs the reader nothing.
- A new Base goes into the default workspace unless you name another. A Free workspace holds 2 Bases of its own: the Base Tutorial every account starts with is not counted, and neither is an archived Base. It starts with 300 credits, and connecting an AI for the first time adds 50.

Say what is left when it matters to what the person asked: before a large upload, or when it is low. Do not recite it otherwise.

## When credits run out

Nothing is lost and nothing stops being readable.

- **A question** is answered by quick search only, and the answer says so. Say that the answer may be thinner than usual, and why.
- **A new document** is stored and waits. It is read by itself as soon as credits arrive. Tell the person the document is in the Base and not yet read.
- Only the workspace's owner can add credits, on the billing page in the browser.

## The limits, and what each means

| What you are told | What it is | What you do |
| --- | --- | --- |
| The account is at its plan's limit of Bases | The workspace holds as many Bases as its plan allows | Do not retry. The person can archive a Base, or manage their account in the browser. Offer to add the documents to a Base they already have |
| The upload would exceed the storage allowance | The workspace's files are at its plan's size | Do not retry. The person can remove files, or manage their account in the browser |
| The workspace reached its monthly limit | A spending cap its owner set, apart from its balance. It resets on the day the message names | Say so, and the day. Its owner can raise it on the billing page |
| This Base reached its monthly limit | A cap on one Base (`monthly_limit_credits` in `configure_base`) | Say so. An admin of the Base can raise or remove it; ask before you do |
| A structure is `waiting` on its reading allowance | A daily allowance for reading documents into structures, set by this deployment and not paid in credits | Say so. It resumes by itself the next day (UTC). Details: https://createbases.com/api/v1 |

A limit error names the limit. Repeat what it said, in your own words and without softening it, and stop: **no second attempt, no other tool, no smaller upload to slip under it.**

## Two settings that change what a Base spends

Both are in `configure_base`, and both are the owner's to decide:

- `answer_depth`: `quick` (free, search only), `auto` (works harder when the first pass is thin) or `deep` (always plans). It is a ceiling on how hard the Base works on each question.
- `reread_on_new_documents`: whether a document that arrives is read at once, or waits for the owner to ask.
