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

> ## Agent Instructions
> For agents: install the OpenWork desktop app with `brew install --cask openwork` (macOS) or from https://openworklabs.com/download. Do not run `npx openwork`; the npm package named `openwork` is a different project.
> Connect an agent to OpenWork with the MCP Gateway: `claude mcp add --transport http openwork https://api.openworklabs.com/mcp/agent`. Teams sign up at https://app.openworklabs.com?mode=sign-up.
> Step-by-step agent guide: https://openworklabs.com/docs/start-here/use-openwork-from-an-ai-agent.md
> Connect Slack (any organization admin): https://openworklabs.com/docs/slack/connect-slack.md. OpenWork in Slack (@openwork bot) is private alpha for approved organizations. Setup guide: https://openworklabs.com/docs/slack/overview.md. Agent skill: https://openworklabs.com/.well-known/agent-skills/set-up-openwork-slack/SKILL.md.

# TrueFoundry: Too many tokens

> Fix a person shown as Too many tokens on a TrueFoundry provider: raise TrueFoundry's limit on personal access tokens per user, or reset the person's tokens from OpenWork.

OpenWork creates one TrueFoundry personal access token (PAT) for each person, named after them, who uses your [TrueFoundry provider](https://openworklabs.com/docs/ai-gateway/truefoundry.md). TrueFoundry can limit how many PATs each user holds. When someone already holds that many, TrueFoundry refuses OpenWork's token. The person then appears under **Needs attention** as **Too many tokens**, and can't use the TrueFoundry models in OpenWork.

Their own tokens count towards the limit too: tokens they made for their laptop, notebooks, scripts or other tools.

You can fix it in either of two ways. Raising the limit is the gentler one: nobody loses a token.

## Raise the limit in TrueFoundry

You need the Tenant Admin role in TrueFoundry, or a role that can manage settings.

1. In TrueFoundry, open **Settings › Organisation › Security**.
2. Select **Edit Security**.
3. Raise **Maximum Personal Access Token (PAT) Per User**. Leave it blank to remove the limit.
4. Save.
5. In OpenWork, open **AI Gateway › AI Providers**, open the TrueFoundry provider, and select **Sync**.

After the sync, OpenWork creates the person's token and they drop off **Needs attention**.

> [!NOTE]
>
> The PAT limits in TrueFoundry only apply while the Security policy is turned on. TrueFoundry suggests a limit of about 5 so tokens don't pile up unnoticed. OpenWork only ever needs one per person.

## Reset the person's tokens from OpenWork

If you'd rather keep the limit, reset the person's tokens instead:

1. On the TrueFoundry provider page, find the person under **Needs attention**.
2. Select **Reset tokens**.
3. Read the confirmation, then select **Revoke all and create a new key**.

> [!WARNING]
>
> TrueFoundry doesn't let OpenWork find only the tokens OpenWork created, and TrueFoundry's own token list doesn't show who owns each token. So **Reset tokens** revokes **every** personal access token the person holds in TrueFoundry, including ones they made for other tools. Those stop working straight away, and the person has to create them again in TrueFoundry. Tell them before you reset.

OpenWork then creates a new token for them, and they can use the TrueFoundry models again.

## Other ways to fix it

* **Delete their old OpenWork tokens in TrueFoundry.** Tokens OpenWork creates are named after the person, like `openwork-alice-example-com-3f9a1c`, so you can find them in TrueFoundry's token list. Delete the ones for that person, then select **Sync** in OpenWork. Tokens named `openwork-` followed only by random characters come from an older version of OpenWork and don't show whose they are.
* **The person deletes old tokens themselves.** People can see and delete their own tokens in TrueFoundry. After they delete one they no longer use, select **Sync** in OpenWork.
* **Wait for old OpenWork tokens to expire.** Tokens OpenWork creates expire after 90 days, or sooner if your tenant's maximum token lifetime is shorter. When one expires, OpenWork creates a new one at the next sync.


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