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
- A portal 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, 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
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:
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
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.
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 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. Needscontent.list_documents: List all documents in a memory. NeedsmemoryName.web_search: Perform a web search using the Exa search service through Langbase. NeedsqueryandsearchApiKey.list_messages: List all messages in a conversation thread in chronological order (oldest first). NeedsthreadId.generate_embeddings: Generate vector embeddings for text chunks. Needschunks.list_memories: List all memory (RAG knowledge bases) in your Langbase account.get_thread: Get details of a conversation thread including its metadata. NeedsthreadId.web_crawl: Crawl web pages to extract their content using Spider Cloud or Firecrawl through Langbase. NeedsurlsandcrawlApiKey.retrieve_memory: Perform a semantic similarity search against one or more memories. NeedsqueryandmemoryNames.parse_document: Extract text content from a document using Langbase Parser. NeedsdocumentNameandcontentType.
Write tools (11)
append_messages: Append one or more messages to an existing conversation thread. NeedsthreadIdandmessages.create_thread: Create a new conversation thread in Langbase.run_pipe: Run an AI pipe to generate a response. Needsmessages.update_thread: Update a conversation thread's metadata. NeedsthreadIdandmetadata.retry_document_embeddings: Retry generating embeddings for a document that failed processing. NeedsmemoryNameanddocumentName.create_pipe: Create a new AI pipe (agent) in Langbase. Needsname.create_memory: Create a new memory (RAG knowledge base) in Langbase. Needsname.generate_images: Generate AI images using various providers including OpenAI DALL-E, Together AI Flux, Google Imagen, and more. Needsprompt,modelandllmProviderKey.update_pipe: Update an existing AI pipe's configuration. NeedspipeName.run_agent: Run the Langbase runtime LLM agent directly, specifying all parameters at runtime. NeedsmodelandllmProviderKey.upload_document: Upload or replace a document in a Langbase memory. NeedsmemoryName,documentNameandcontentType.
Destructive tools (3)
delete_thread: Delete a conversation thread and all its messages. NeedsthreadId.delete_document: Delete a document from a memory. NeedsmemoryNameanddocumentName.delete_memory: Delete a memory (RAG knowledge base) and all its documents from Langbase. NeedsmemoryName.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Langbase there
- Tool permissions: tool filters and what employees see
- Langbase on metorial.com: the integration overview