Provider keys
A provider key is a provider credential you store with Meadow. Meadow uses it to call that provider for you. You store one credential per provider for the whole account.
Next step: store a key for one model provider, then call GET /v1/models to see which models you can call.
All provider key routes need a Meadow API key with the admin scope.
Store a key
Before it saves anything, Meadow makes one read call to the provider with the credential. The call usually takes under a second. If the provider rejects the credential, nothing is saved and the key you had stored before keeps working.
The response never contains the credential. last4 is the last four characters of the key or key ID, so you can tell which one is stored. The samples on this page show made-up last4 values. verified_at is the time of the check.
To keep the credential out of your shell history, use the mdw CLI, which reads it from standard input or a file. mdw is sent to you during the beta. See Clients.
That run used a made-up key, so the provider rejected it.
Credentials for each provider
Unknown fields inside credentials return 400. Field names are lower case.
The “Live call tested” column says whether a real call through the hosted beta has succeeded with that provider. “Test server only” means the integration passes tests against a test server and no real call has succeeded yet. Run one call with your own key before you rely on such a provider.
Model providers
anthropic
api_key is an Anthropic API key (sk-ant-...). Create one in the Anthropic Console under API keys. Meadow checks it by listing models.
openai
api_key is an OpenAI API key. Create one on the OpenAI platform under API keys. Meadow checks it by listing models.
The check does not prove the account has credit. An organization with no credit answers every call with 429 insufficient_quota. Meadow then falls back to the next provider, and the attempt reads provider account has no quota or credit. If nothing else serves the call you get a 502 with no retry-after, not a 429, because waiting does not help. Add credit in the OpenAI billing page.
api_key is a Gemini API key from Google AI Studio (Get API key). Meadow checks it by listing models.
xai
api_key is an xAI API key from the xAI console under API keys. Meadow checks it by listing models.
openrouter
api_key is an OpenRouter inference key from the Keys page. Meadow checks it by reading the key’s own details. A management (provisioning) key is rejected, because it cannot make model calls. If your OpenRouter account uses guardrails, they still apply: a model the guardrail blocks fails at call time.
azure
api_key, endpoint and deployments are required. api_version and deployment_types are optional.
api_key: a key of your Azure OpenAI resource. In the Azure portal, open the resource, then Keys and Endpoint.endpoint: the resource endpoint from the same page, as a barehttpsorigin such ashttps://my-resource.openai.azure.com. No path, query, or port other than 443. The host must end in.openai.azure.com,.cognitiveservices.azure.com, or.services.ai.azure.com.deployments: an object that maps a Meadow model ID to your deployment name, such as{"gpt-5": "my-gpt5"}. It must have at least one entry. A model routes to Azure only when it is named here. Deployment names are on the Deployments page of your resource.api_version: leave it out to use Azure’s v1 API, which takes no version. Meadow then calls<endpoint>/openai/v1/chat/completionsand<endpoint>/openai/v1/responseswith the deployment name asmodel. Send a version such as2024-10-21to use the dated API instead:<endpoint>/openai/deployments/<deployment>/chat/completionsand<endpoint>/openai/responses, both with?api-version=. A stored version always wins over anapi-versiona caller sends.deployment_types: an object that maps a deployment name to its deployment type, as Azure names it, such as{"my-gpt5": "GlobalStandard"}. The type is on the Deployments page of your resource. Accepted types:GlobalStandard,DataZoneStandard,Standard,GlobalProvisionedManaged,DataZoneProvisionedManaged,ProvisionedManaged,GlobalBatch,DataZoneBatch,DeveloperTier. Azure’s answer does not say which type served a call, so Meadow prices a call by this field: aGlobalStandarddeployment at Azure’s global prices, and every other type, or a deployment not named here, with no cost and acost_reason. A key with a dollarlimitcan call onlyGlobalStandarddeployments. See Usage and cost.
One credential holds one resource and one deployment per model. To reach a second deployment of the same model, pin it: azure/<deployment>. Microsoft Entra ID tokens are not accepted.
Meadow checks the key by listing models on the endpoint. That does not prove a deployment can be called: a resource Azure has blocked still lists its models and answers 403 on every deployment. Meadow falls back on that 403, and the attempt reads provider resource is blocked by the vendor.
bedrock
Send either an IAM access key (access_key_id and secret_access_key) or a Bedrock API key (api_key), not both. region is required. session_token goes with an access key only. inference_profile is optional with either.
access_key_idandsecret_access_key: an access key of an IAM user. In the AWS console, open IAM, the user, Security credentials, then Create access key. The user needsbedrock:InvokeModelandbedrock:InvokeModelWithResponseStream.api_key: a Bedrock API key. In the Bedrock console, open API keys and generate a key. Meadow sends it inx-api-keyto Bedrock’s Anthropic Messages route,https://bedrock-runtime.<region>.amazonaws.com/anthropic/v1/messages, with the body in Anthropic’s format and the Bedrock model ID inmodel. A short-term key expires, so store a new one before it does.region: a standard AWS region name such asus-east-1.session_token: send it with temporary credentials from AWS STS.inference_profile:global(the default),us,euornone. Bedrock invokes Claude models through an inference profile, and this picks the prefix of the model ID Meadow sends:global.anthropic.<model>,us.anthropic.<model>,eu.anthropic.<model>, oranthropic.<model>with no profile. A global profile lets AWS process a call in any region. Setusoreuto keep processing in one geography.usneeds aus-region andeuaneu-region, or the call returns 400. For another geography, pin the ID:bedrock/jp.anthropic.<model>. Meadow does not check that AWS offers the profile for a model.
Role ARNs and AWS profiles are not accepted.
A Bedrock API key is stored without a check, because AWS’s identity call does not take one. Make one model call after storing it.
Meadow checks an access key by asking AWS who it belongs to. That proves the key is valid. It does not prove the account may invoke Bedrock models, so make one model call after storing it. An account that may not invoke answers 400 Operation not allowed. Meadow falls back on that one 400, and the attempt reads provider account is not allowed to invoke models.
Storing temporary credentials was checked against AWS. No model call through Meadow has been served by Bedrock yet.
vertex
All three fields are required.
service_account_json: the JSON key file of a Google Cloud service account, as a JSON object or as a string. In the Google Cloud console, open IAM and Admin, Service Accounts, the account, Keys, Add key, JSON. It must have"type": "service_account",client_email, andprivate_key. The account needs a role that can call Vertex AI, such as Vertex AI User.project: the ID of the Google Cloud project whose Vertex AI serves the calls. It can differ from the service account’s own project when the account hasaiplatform.endpoints.predictthere.region:global, the multi-regionsusoreu, or one region such asus-east5.
Meadow checks the key in two steps. It exchanges the key for an access token, then asks Google whether the account has aiplatform.endpoints.predict on project. An account without it is rejected with 400 vertex service account lacks aiplatform.endpoints.predict on credentials.project; grant it the Vertex AI User role there. If Google does not answer that question, for example because the Resource Manager API is off in the project, the key is stored anyway.
The check does not prove that a model is enabled. Claude models must be enabled in Model Garden, per project. A model that is not enabled answers 404, and Meadow tries the next provider. Some new models answer 403 until data sharing is turned on for the publisher, and Meadow reports that 403 as a rejected credential. Make one model call after storing the key.
On Vertex, Claude takes the Messages format only and Gemini takes Chat Completions only.
fireworks
api_key is a Fireworks API key. Create one in the Fireworks dashboard at https://app.fireworks.ai/settings/users/api-keys with Create API key.
Fireworks documents no model list that a key alone can read: its List Models call needs an account ID. Meadow checks the key with GET https://api.fireworks.ai/v1/accounts (List Accounts), which takes only the key. A key that Fireworks lets call models but not list accounts would be rejected at store time. No real Fireworks key has been checked this way.
Meadow calls https://api.fireworks.ai/inference/v1/chat/completions, /inference/v1/responses and /inference/v1/messages, with the key as Authorization: Bearer. Pin a model with its full Fireworks ID: fireworks/accounts/fireworks/models/kimi-k3. See Models.
deepseek
api_key is a DeepSeek API key. Create one at https://platform.deepseek.com/api_keys. Meadow checks it by listing models (GET https://api.deepseek.com/models).
Meadow calls https://api.deepseek.com/chat/completions, /responses and /anthropic/v1/messages, with the key as Authorization: Bearer. Pin a model as deepseek/deepseek-flash or deepseek/deepseek-v4-pro.
DeepSeek’s prices change with the hour of the call, so Meadow stores every DeepSeek call with no cost, and a key with a spend limit cannot call DeepSeek. See Spend limits.
Sandbox providers
daytona
api_key is a Daytona API key from the Daytona dashboard under API keys. Set organization_id if your key needs it to pick an organization. Meadow checks the key by listing sandboxes.
modal
token_id (ak-...) and token_secret (as-...) are a Modal API token from Modal’s settings under API tokens. environment is the name of the Modal environment to create sandboxes in. Leave it out to use your workspace’s default.
Meadow checks the token, then looks up the app it will use in that environment and rejects a token that is not allowed to use the environment. It does not catch an environment name that does not exist: in a test, a made-up environment name was accepted and stored. Check the spelling against the environment list in Modal.
Provider consoles change. If a menu named here has moved, look for the provider’s API keys page.
When the credential is wrong
That response has the shape from before the change of 2026-11-24. Since then the same rejection has error.code provider_credentials_rejected and error.param credentials. That is read from the server’s code: no new sample was captured.
Meadow never puts the provider’s own error text in these messages.
A key that was valid when stored can be rejected later, for example after you revoke it at the provider. Model calls then fall back to your next provider, and the response carries the header x-meadow-provider-auth-failed naming the provider whose key was rejected. Watch for that header.
Limit a key to some projects
By default every project in the account can use a stored key. Send project_ids to limit it:
Other projects then behave as if no key for that provider were stored. Leaving project_ids out, or sending null, means every project. Each PUT replaces the whole entry, so send project_ids again every time you replace a scoped key.
You cannot store two credentials for one provider. To use different provider accounts for different workloads, you need separate Meadow accounts today.
List stored keys
The output is trimmed to three entries. With the CLI:
A daytona or modal entry also has sandbox_health, in the list and in the response to its PUT. A modal entry from the list on the hosted beta on 2026-11-28:
It says whether recent sandbox creates on that provider failed and whether Meadow is trying it last for now. Its fields are state, consecutive_failures, last_failure_reason (a reason code from attempts, such as quota_exceeded), last_failure_at, opened_at, retry_at and last_success_at. The daytona entry in the sample above was captured before 2026-11-28, when the field did not exist yet.
Storing the key again clears it. See Sandboxes.
Rotate a provider key
- Create the new key at the provider. Keep the old one active.
PUT /v1/provider-keys/{provider}with the new credential. Meadow checks it and swaps it in. If the check fails, the old key stays in place.- Confirm
last4andverified_atchanged, and make one call. - Revoke the old key at the provider.
New requests use the new key as soon as the PUT returns. Requests already in flight finish on the old key, which is why step 4 comes last. For Modal, a server can keep using the old token for up to 5 minutes after the swap, so wait that long before you revoke it at Modal.
Check a stored key again
Not on the hosted beta yet.
Meadow runs the same check as a PUT on the credential it holds, so you need not paste it again. When the provider accepts it, verified_at moves to now and the key is returned. When the provider rejects it, the call returns 400 provider_credentials_rejected and the stored credential and its verified_at stay as they were: store a new credential with PUT.
Delete a key
A successful delete returns 204 with no body. This run named a provider with no stored key:
After a delete, requests that need that provider skip it. If no other provider can serve a request, it gets a 422 no_provider_key. Deleting the key in Meadow does not revoke it at the provider.
API reference
Operations on this page: putProviderKey, listProviderKeys, verifyProviderKey, deleteProviderKey.