Meadow
Meadow is one API for calling models and running sandboxes with your own provider keys. You store each provider key with Meadow once. One Meadow API key (mdw_...) then reaches every provider you stored a key for. Each provider bills you directly.
Start with the Quickstart to make a model call. Continue with the optional sandbox example to run a command.
Who it is for
Meadow is for teams that call models from more than one provider, or run code in sandboxes, and want one key, one set of routing rules, and one place to limit what each workload can do. It suits evaluation harnesses, coding agents, and services that need a second provider when the first one is down.
Meadow is in private beta. There is no self-serve signup: you receive a base URL and an admin key when you join. Read Known limits before you build on it.
What works on the hosted beta
The hosted beta is https://api.usemeadow.ai. On 2026-11-28 it supports:
- Model calls in three formats: OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages. The request reaches the provider in the format you sent, and the provider’s response comes back unchanged.
- Real calls through Anthropic, Google, xAI, OpenRouter, and Gemini on Vertex. OpenAI, Azure, Bedrock, Fireworks, and DeepSeek have passed tests against a stand-in server only. Provider keys has the table.
- Fallback. When a provider fails, Meadow tries the next one you allow.
- Sandboxes on Daytona and Modal behind one set of calls: create, run commands, copy files, open ports and SSH, build images, and limit outbound traffic.
- Keys you can narrow: scopes, a list of models, request and token limits, a limit in US dollars, a cap on concurrent sandboxes, and an expiry date. A key’s secret can be rotated in place.
- Budgets in US dollars on the account or a project, with webhook alerts and an optional hard limit. Alert email is off on the hosted beta.
- An audit log of changes to keys, projects, provider keys and budgets.
- A usage and cost record for each model call and each sandbox, read with
GET /v1/usage. - Errors on the model routes in OpenAI’s or Anthropic’s own format, so their SDKs raise their usual errors.
The Changelog lists each change by the day it reached the hosted beta.
Models and sandboxes
Both use the same keys, projects, and routing rules. Concepts explains them in one page.
Set up your coding agent
- Get started with your agent has one prompt that takes a coding agent to a working call, and rules to paste into its instructions file.
- MCP server:
mdw mcpgives your agent tools for sandboxes, images, keys, and usage. llms.txtlists every page of these docs for an agent to read. Each page also has a Markdown copy at its address plus.md.
Status and trust
- Status: whether the API is up, and past incidents.
- Trust: the Polymath Labs trust center, with its security and compliance documents.
- Security: what Meadow stores, encrypts, and logs.
Browse the docs
Get started
- Quickstart: a first model call and a first sandbox command.
- Concepts: accounts, projects, keys, provider keys, sandboxes, and images.
- Get started with your agent: one prompt that takes a coding agent to a working call, and the docs files made for agents.
- MCP server: tools for sandboxes, images, keys, and usage inside your agent.
Call models
- Models: the formats, model IDs, and what passes through.
- Use your existing tools: the OpenAI and Anthropic SDKs, Claude Code, and the Codex CLI.
- Gemini clients: gemini-cli and the Google GenAI SDKs on Google’s own
generateContentformat. - Routing and fallbacks: choose providers and see what triggers a fallback.
- Streaming: events, cut streams, and time limits.
- Model and provider allowlists: restrict which models and providers a key can use.
- Token and request limits: limits on a key and how they are counted.
- Spend limits: a limit in US dollars on a key.
- Budgets and alerts: a dollar budget on the account or a project, with alerts.
- Usage and cost: what each call and sandbox cost, and how to read it.
Run sandboxes
- Sandboxes: create, wait, list, and delete.
- Running commands: blocking, streamed, and background commands.
- Files, ports, and SSH: copy files and reach a sandbox from outside.
- Images and build contexts: build an image from a Dockerfile.
- Network rules: limit outbound traffic.
- Webhooks: receive sandbox events and verify their signature.
- Run untrusted code: run code a model wrote, with outbound traffic blocked, as a non-root user.
- Run a coding agent in a sandbox: Claude Code in a locked-down sandbox on a key with a budget.
- Clients: the Python client, the Go SDK, and the
mdwCLI. They are sent to you during the beta. No guide needs them.
Set up your account
- Authentication: headers, scopes, creating, rotating, and revoking API keys.
- Provider keys: the credential fields for each provider.
- Projects: routing defaults, locking, and deleting.
- Audit log: who changed keys, projects, provider keys and budgets.
Reference
- API reference: all 45 operations, by
operationId. - mdw command reference: every command and flag of the
mdwCLI. - Errors: the error body, every type, and when to retry.
- Known limits: what can surprise you in the beta.
- Changelog: changes that can affect your code.