OptionaladditionalOptional headers to be included in all requests.
OptionalcallerOptional caller information that is applied to the User-Agent header with all requests. Used to identify agentic callers using the SDK (e.g., AI coding assistants).
Required model name (e.g., 'gemini', 'claude-code', 'gpt-4').
Optionalprovider?: stringOptional provider identifier (e.g., 'google', 'anthropic', 'openai').
OptionalclientThe service account OAuth2 client ID. Falls back to the PINECONE_CLIENT_ID environment
variable when not provided.
OptionalclientThe service account OAuth2 client secret. Falls back to the PINECONE_CLIENT_SECRET
environment variable when not provided.
OptionalcontrollerOptional configuration field for specifying the controller host. If not specified, the client will use the default controller host: https://api.pinecone.io.
OptionalfetchOptional configuration field for specifying the fetch implementation. If not specified, the client will look for fetch in the global scope.
OptionalmaxOptional configuration field for specifying the maximum number of retries after the initial request. Defaults to 3.
OptionalsourceOptional sourceTag that is applied to the User-Agent header with all requests.
Configuration for the AdminClient.
The Admin API authenticates with a Pinecone service account using the OAuth2 client-credentials flow, which is distinct from the
apiKeyused by the Pinecone client. You must supply aclientIdandclientSecret(either directly or via thePINECONE_CLIENT_ID/PINECONE_CLIENT_SECRETenvironment variables). Create a service account and its credentials in the Pinecone console under Organization Settings → Service Accounts.