# Treg

<div style={{maxWidth: '720px'}}>
![The Treg connector in Workspace Settings, for web research, enrichment, and media generation, with a Connect button](</docs/_next/static/media/treg-connector.0yvbrjh3uzz66.jpg>)
</div>

The [Treg MCP server](https://treg.to/llms.txt) gives agents access to a tool catalog and your team's registered tools through one connection. Agents can inspect a tool's inputs and price before calling it.

For use cases and example prompts, see [Treg for AI coding agents](/integrations/treg).

## What is Treg? [#what-is-treg]

[Treg](https://treg.to) is a catalog of tools for agents. It covers thousands of tools from many providers, such as search and SEO data, people and company enrichment, web scraping, and image, video, and voice generation. Your team pays per call from a prepaid balance, so you don't need an account with each provider. Your team can also register its own tools and provider credentials in Treg.

## What agents can do [#what-agents-can-do]

Once you connect Treg, agents can:

- Search the catalog by task and inspect tool parameters, prices, and provider options
- Call tools for web research, search data, people and company enrichment, and media generation
- List your team's registered tools and use the connections available to that team
- Check the team's prepaid balance and list provider resources such as voices

<Callout>
Paid catalog calls spend your Treg team's balance. Your team's own provider credentials can also be used through Treg. Anyone whose agents can use this connection can call tools available to that team, so choose the projects and sharing options accordingly. Ask agents to estimate costs and wait for approval before batch calls or media generation.
</Callout>

## Setup [#setup]

Go to **Workspace Settings → Connectors** (or a project's **Connectors** page). Click **Add**, search for Treg, and select it. You can also click **Connect** on the Treg card, or **Connect another** to add another account.

### Step 1: who the connection is for [#step-1-who-the-connection-is-for]

Choose **Me** or **Workspace** as the owner, then choose which agents can use the connection. The default is **Me**, with **My personal assistants** selected. From a project's **Connectors** page, only **In this project** is selected instead. Enable **Team assistants** or **Agents in projects** separately. Anyone in the workspace can use the connection through the team assistants you pick, and anyone with access to the projects you pick can use it, including in sessions they launch themselves. See [connection options](/docs/integrations/connectors#fill-in-the-connection-details) for what each choice means.

Click **Continue**.

### Step 2: how agents reach Treg [#step-2-how-agents-reach-treg]

The second screen has two tabs: **Treg account** and **Access token**. Pick one.

#### Treg account [#treg-account]

Click **Continue to Treg**, sign in, select the Treg team to connect, and approve access. You land back on the Connectors page with **Treg connected**.

Agents then use that team's tools and balance. If you enable **In projects**, anyone with access to those projects can use that account — so pick a team whose tools and balance you're happy to share.

#### Access token [#access-token]

Use this tab if you'd rather paste a key than sign in. Create a team API key in the [Treg dashboard](https://treg.to/app), for the team whose tools and balance agents should use. Paste it into the **Treg API Key** field and click **Connect Treg**.

Both methods connect to Treg's hosted MCP server, so you don't need to install the Treg CLI.

## Reconnecting and disconnecting [#reconnecting-and-disconnecting]

If an account connection stops working, the Connectors page shows a **Reconnect needed** badge on it, and agents run without Treg.

To fix it, click **Manage** next to the connection, then **Reconnect Treg**, and sign in again. You can only reconnect a personal connection you own; for someone else's, Superconductor tells you who to ask.

For an **Access token** connection, click **Manage** and paste a new key.

**Manage** is also where you change a connection's project access and sharing options.

**Disconnect** removes the connection from Superconductor. For a **Treg account** connection, Superconductor also asks Treg to revoke its access. If that fails, follow the notice to remove access in Treg. For an **Access token** connection, revoke the key in Treg if you no longer need it elsewhere.

## Troubleshooting [#troubleshooting]

- **Authentication fails:** reconnect the account or replace the team API key. Check that you still belong to the selected Treg team.
- **A paid call fails:** ask the agent to check the team's Treg balance and the tool's price. Add funds in Treg if needed.
- **A registered tool is missing or unavailable:** check that you connected the right team and that its provider connection is still valid in Treg.
- **Agents can't see Treg:** check the connection's project and sharing options. Start a new session after connecting.

## When to use it [#when-to-use-it]

Ask agents to use Treg when a task needs outside data or generated media that your other tools don't cover. Paid calls spend real money, so ask for an estimate first. For example:

```text
List the tools our team has registered in Treg and tell me which ones could pull last month's ad spend.
```

```text
Use Treg to look up the company size and industry for the 20 domains in this CSV. Estimate the cost first and wait for my approval.
```

```text
Generate three voiceover options for our product demo script with Treg, and save them as artifacts.
```