> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Langbase in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/langbase
Last updated: 2026-11-24

Share Langbase with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 25 tools (11 read-only).

---

To give your team Langbase in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Langbase integration in a Metorial portal, and each person connects with an API key. Agents can build and run AI agents using a unified LLM API across 600+ models. The integration has 25 tools, 11 read-only, 11 write and 3 destructive.

**What you will learn**

- How an admin shares Langbase in a portal and how each person connects
- What Langbase asks for when you connect, and where to find it
- How to keep the 11 read-only tools and reject the other 14

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from Langbase for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Key** | API token | `token` |

### API Key

To connect, a person enters:

- `token`: Langbase API key. Generate one from the Langbase Studio under API Keys.

## Admin: share Langbase in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Langbase. For how members connect, choose **Each person connects** so everyone enters their own API key, or **Shared connection** to enter one API key for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Langbase.

4. **Choose who gets it**

   Add the access groups that should see Langbase. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Langbase integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search langbase
```

## Employee: connect Langbase

### In the portal

1. **Open Langbase in the catalog**

   Sign in to your portal and open Langbase. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API key (token).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search langbase
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Langbase connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list langbase
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 11 read-only tools, such as `web_crawl` and `chunk_text`, and lose the 11 write tools, such as `run_pipe` or `run_agent`, and the 3 destructive tools, such as `delete_memory` or `delete_thread`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list langbase
metorial tools <integration-id>
metorial call <integration-id> list_pipes -d '{}'
```

`metorial tools` lists the 25 tools, minus any you rejected. `list_pipes` takes no input. It lists all AI pipes (agents) in your Langbase account.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (11)

- `list_pipes`: List all AI pipes (agents) in your Langbase account.
- `chunk_text`: Split text into smaller, manageable chunks. Needs `content`.
- `list_documents`: List all documents in a memory. Needs `memoryName`.
- `web_search`: Perform a web search using the Exa search service through Langbase. Needs `query` and `searchApiKey`.
- `list_messages`: List all messages in a conversation thread in chronological order (oldest first). Needs `threadId`.
- `generate_embeddings`: Generate vector embeddings for text chunks. Needs `chunks`.
- `list_memories`: List all memory (RAG knowledge bases) in your Langbase account.
- `get_thread`: Get details of a conversation thread including its metadata. Needs `threadId`.
- `web_crawl`: Crawl web pages to extract their content using Spider Cloud or Firecrawl through Langbase. Needs `urls` and `crawlApiKey`.
- `retrieve_memory`: Perform a semantic similarity search against one or more memories. Needs `query` and `memoryNames`.
- `parse_document`: Extract text content from a document using Langbase Parser. Needs `documentName` and `contentType`.

### Write tools (11)

- `append_messages`: Append one or more messages to an existing conversation thread. Needs `threadId` and `messages`.
- `create_thread`: Create a new conversation thread in Langbase.
- `run_pipe`: Run an AI pipe to generate a response. Needs `messages`.
- `update_thread`: Update a conversation thread's metadata. Needs `threadId` and `metadata`.
- `retry_document_embeddings`: Retry generating embeddings for a document that failed processing. Needs `memoryName` and `documentName`.
- `create_pipe`: Create a new AI pipe (agent) in Langbase. Needs `name`.
- `create_memory`: Create a new memory (RAG knowledge base) in Langbase. Needs `name`.
- `generate_images`: Generate AI images using various providers including OpenAI DALL-E, Together AI Flux, Google Imagen, and more. Needs `prompt`, `model` and `llmProviderKey`.
- `update_pipe`: Update an existing AI pipe's configuration. Needs `pipeName`.
- `run_agent`: Run the Langbase runtime LLM agent directly, specifying all parameters at runtime. Needs `model` and `llmProviderKey`.
- `upload_document`: Upload or replace a document in a Langbase memory. Needs `memoryName`, `documentName` and `contentType`.

### Destructive tools (3)

- `delete_thread`: Delete a conversation thread and all its messages. Needs `threadId`.
- `delete_document`: Delete a document from a memory. Needs `memoryName` and `documentName`.
- `delete_memory`: Delete a memory (RAG knowledge base) and all its documents from Langbase. Needs `memoryName`.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Langbase there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Langbase on metorial.com](https://metorial.com/integrations/langbase): the integration overview