MetorialDocs

Set up Langbase in Metorial for Claude, ChatGPT and Cursor

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'll 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

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokentoken

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

Open Shared Resources

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

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.

Limit the tools

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

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:

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

Employee: connect Langbase

In the portal

Open Langbase in the catalog

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

Authenticate

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

Confirm

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

With the CLI

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.

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.

Check it worked

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