Skip to Content
Configure vendor and storage connectionsConfigure LLM provider connections

Configure LLM provider connections with a Grepr integration

An LLM integration holds the credentials Grepr uses to call a large language model provider. Grepr AI agents can use LLM integrations for two purposes: a generative model used for reasoning, or an embedding model used for similarity analysis.

An LLM integration can be assigned a token budget, which is a mechanism that caps the amount of tokens your agents can spend. When several agents share one integration, the budget applies to all of them together.

LLM integrations, along with the rest of the Grepr AI agent features, are in a closed beta. To request access, contact support@grepr.ai.

Requirements

To create an LLM integration, you need:

  • The credential your provider requires, which is an API key for most providers, or a gateway URL and a key for the gateway.

Choose a provider

An LLM integration serves one of two purposes, so create the one that matches what you need.

For the model an agent reasons with, create an integration for your model provider. You can also create a gateway integration to route your agents through a gateway you run, which reaches whatever models you configure it with, so use one to choose the model yourself, apply your own routing rules, or keep model traffic inside your own infrastructure.

For the embedding model that agent memory uses, create an integration for a provider that supplies embeddings. One integration can serve both purposes, so a single integration is often enough to run an agent with memory turned on.

The Type menu in the Add LLM dialog lists the providers available to you.

Don’t see your provider in the list? Send a request to support@grepr.ai.

Create an LLM integration

  1. On the Integrations page, next to the LLMs section heading, click Add new.
  2. In the Add LLM dialog, select the provider from the Type menu.
  3. Complete the remaining fields, which depend on the provider you selected.
  4. Click Create.

You cannot change an integration’s type after you create it. To move to a different provider, create a new integration and point your agents at it.

The Add LLM dialog for a Gemini integration, showing the type, team access, name, key, and token window fields.

Select the tab for your provider to see the fields it requires:

FieldDescription
NameA name for the integration, used to identify it when you configure an agent.
API KeyYour Gemini API key.
Max tokens per windowThe total tokens that all agents using this integration can consume in each window. Leave empty for the default of 20,000,000.
Max tokens window (hours)The length of the budget window. Leave empty for the default of 1 hour.

A Gemini integration can serve as both an agent’s model and the embedding model for agent memory.

Cap token consumption with a budget window

An integration that serves an agent’s model carries a token budget, which is what caps the spend of every agent sharing it. The budget has two settings:

  • Max tokens per window is the total tokens every agent sharing the integration can consume in one window.
  • Max tokens window (hours) is the length of that window. The value must divide 24 evenly, so the valid lengths are 1, 2, 3, 4, 6, 8, 12, and 24 hours. Windows are aligned to UTC.

Before it starts an investigation, Grepr reserves the tokens that investigation is allowed to consume and checks the reservation against two budgets: the integration’s budget, and the agent’s per-window budget. Both must have room. An agent whose own budget is untouched still waits when the shared integration has none left, so when investigations stop starting, check which of the two is exhausted on the agent’s page before you raise a limit. To learn more about the agent-level settings, see Set an agent’s limits.

Update an API key

To replace a key, click the three-dot menu on the integration card, select Edit, enter the new key, and click Save. Every agent using the integration picks up the new key automatically.

Grant team access

When you have teams in your Grepr organization, you can grant access to the integration to one or more of those teams. To configure team access when you create or edit an integration:

  1. In the Grant Team Access section, click the plus sign icon (+).

  2. Select the team or teams that should be granted access to the integration.

  3. Click Create.

    The Grant Team Access to a resource card in the Grepr UI.

To learn more, see Manage teams in the Grepr platform and Permissions in the Grepr platform.

View token usage

Each LLM integration card on the Integrations page charts the tokens its agents consumed, broken down by token type, and shows how much of the budget window remains. The card totals every agent sharing the integration and lists which agents those are, so to see how much one agent is spending, open that agent’s page.

Last updated on