Set up OpenAI in Metorial for Claude, ChatGPT and Cursor
Share OpenAI with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 34 tools (22 read-only).
To give your team OpenAI in Claude, ChatGPT, Cursor and other AI clients, an admin shares the OpenAI integration in a Metorial portal, and each person connects with an API key. Agents can generate text, images, audio, and video using large language models and multimodal AI. The integration has 34 tools, 22 read-only, 6 write and 6 destructive, plus 1 trigger.
What you'll learn
- How an admin shares OpenAI in a portal and how each person connects
- What OpenAI asks for when you connect, and where to find it
- How to keep the 22 read-only tools and reject the other 12
Before you start
- A portal with at least one access group
- An API key from OpenAI 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: Your OpenAI API key (starts with sk-)
Setup settings
Setup also asks for:
organizationId(optional): OpenAI Organization ID. Required if you belong to multiple organizations.projectId(optional): OpenAI Project ID. Used to route usage to a specific project.
Admin: share OpenAI 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 OpenAI. 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 OpenAI.
Choose who gets it
Add the access groups that should see OpenAI. 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 OpenAI integration. Once it exists, check which groups have it:
Employee: connect OpenAI
In the portal
Open OpenAI in the catalog
Sign in to your portal and open OpenAI. 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 OpenAI 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 22 read-only tools, such as get_file and get_batch, and lose the 6 write tools, such as upload_file or create_batch, and the 6 destructive tools, such as delete_file or cancel_batch.
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 34 tools, minus any you rejected. list_files takes no input. It lists files uploaded to OpenAI, optionally filtered by purpose (e.g. "fine-tune", "assistants").
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (22)
list_files: List files uploaded to OpenAI, optionally filtered by purpose (e.g. "fine-tune", "assistants").list_models: List all available OpenAI models, or retrieve details about a specific model.create_embeddings: Generate vector embeddings for text input using OpenAI embedding models (text-embedding-3-small, text-embedding-3-large). Needsinput.generate_text: Generate text using OpenAI chat completion models (GPT-5, GPT-4o, etc.). Needsmodelandmessages.create_response: Generate a response using the OpenAI Responses API, the primary gateway for all model families. Needsmodelandinput.moderate_content: Classify text against OpenAI's content policy categories. Needsinput.get_file: Retrieve metadata for a specific file by its ID. NeedsfileId.get_fine_tuning_job: Retrieve the status and details of a fine-tuning job, or list all fine-tuning jobs.search_vector_store: Search a vector store using natural language queries. NeedsvectorStoreIdandquery.list_vector_stores: List all vector stores in your OpenAI project.get_batch: Retrieve the status and details of a batch processing job, or list all batches.generate_image: Generate images from text prompts using OpenAI's image generation models (e.g. Needsprompt.list_response_input_items: List the input items used to create a stored OpenAI response. NeedsresponseId.translate_audio: Translate speech from an uploaded audio file into English text. Needsfilename.get_vector_store_file_content: Retrieve parsed content chunks for a file attached to a vector store. NeedsvectorStoreIdandfileId.get_vector_store_file: Retrieve status and metadata for one file attached to a vector store. NeedsvectorStoreIdandfileId.get_file_content: Retrieve the raw content of an uploaded OpenAI file, such as JSONL batch output, fine-tuning data, or uploaded text. NeedsfileId.list_vector_store_files: List files attached to a vector store, optionally filtered by processing status. NeedsvectorStoreId.get_response: Retrieve a stored OpenAI response by ID, including status, model output items, and token usage. NeedsresponseId.get_vector_store: Retrieve details for a specific OpenAI vector store, including processing status and file counts. NeedsvectorStoreId.synthesize_speech: Generate spoken audio from text using OpenAI text-to-speech models. Needsinput.transcribe_audio: Transcribe speech from an uploaded audio file into the source language text. Needsfilename.
Write tools (6)
create_batch: Submit a batch of API requests for asynchronous processing at reduced cost. NeedsinputFileIdandendpoint.create_vector_store: Create a managed vector store for uploading, chunking, and searching files.create_fine_tuning_job: Create a new fine-tuning job to customize an OpenAI model on your training data. NeedsmodelandtrainingFileId.add_vector_store_file: Attach an uploaded OpenAI file to a vector store so it can be indexed for file search. NeedsvectorStoreIdandfileId.upload_file: Upload a file to OpenAI for use with batch processing, fine-tuning, vector stores, vision, or user data workflows. Needsfilenameandpurpose.update_vector_store: Update a vector store name, expiration policy, or metadata. NeedsvectorStoreId.
Destructive tools (6)
delete_vector_store: Delete a vector store by its ID. NeedsvectorStoreId.cancel_batch: Cancel a batch processing job that is in progress. NeedsbatchId.delete_file: Delete a file from your OpenAI account by its ID. NeedsfileId.cancel_fine_tuning_job: Cancel a running fine-tuning job. NeedsjobId.delete_response: Delete a stored OpenAI response by ID. NeedsresponseId.remove_vector_store_file: Detach a file from a vector store. NeedsvectorStoreIdandfileId.
Triggers
OpenAI has 1 trigger, which fire on events in OpenAI:
openai_events: Receive webhook notifications for OpenAI events including background responses, batch jobs, fine-tuning jobs, evaluation runs, and realtime calls.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use OpenAI there
- Tool permissions: tool filters and what employees see
- OpenAI on metorial.com: the integration overview