meadow
Private beta

One key for models and sandboxes.

Meadow is one API for calling models and running sandboxes with your own vendor keys. Point your OpenAI or Anthropic client at Meadow, and start sandboxes at Daytona or Modal with the same key.

curl
curl -sS "$MEADOW_BASE_URL/v1/chat/completions" \
  -H "Authorization: Bearer $MEADOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-flash-lite-preview",
    "messages": [{"role": "user", "content": "Say hello in five words."}],
    "max_tokens": 32
  }'

curl -sS -X POST "$MEADOW_BASE_URL/v1/sandboxes?wait=true" \
  -H "Authorization: Bearer $MEADOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image": "python:3.12-slim", "timeout_seconds": 600}'

Set MEADOW_BASE_URL and MEADOW_API_KEY first. The sandbox ends after timeout_seconds, and the quickstart shows how to delete it sooner.

/v1/chat/completions/v1/responses/v1/messages

Call models with your own keys

Send the format you already use: OpenAI Chat Completions, OpenAI Responses or Anthropic Messages. The vendor's answer comes back unchanged.

Takes keys for Anthropic, OpenAI, Google, xAI, OpenRouter, Azure OpenAI, Amazon Bedrock and Vertex AI. Not every vendor has served a real call on the beta yet. See which have.

Response headers
x-meadow-attempts: 2
x-meadow-model: gemini-3.1-flash-lite-preview
x-meadow-provider: google
A real fallback from the routing guide. OpenRouter refused the model, so Google served the call.
Your keys
Store each vendor key once. Meadow checks it with the vendor, encrypts it and never returns it. Each vendor bills you directly.
Fallbacks
When a vendor fails in a way another vendor could fix, Meadow tries the next one you allow. Response headers say which vendor served the call.
Cost per call
Each call is recorded with its tokens and, when Meadow has a price, its cost in US dollars: the cost the vendor reports, or its token counts at the vendor's list price. Read it with GET /v1/usage.

/v1/sandboxes

Run sandboxes at Daytona and Modal

One set of calls for both vendors. Create a sandbox, run commands, copy files in and out, open ports and connect over SSH.

Sandbox response
{
  "attempts": [{"duration_ms": 1425, "outcome": "served", "provider": "daytona"}],
  "id": "sbx_b81b22b3",
  "provider": "daytona",
  "resources": {"cpu": 2, "memory_mb": 4096},
  "status": "running"
}
Part of the response in the quickstart. Ids are shortened.
One API
The same request works at Daytona and at Modal, with the key you stored for each.
Fallback at create
When a create fails at one vendor, Meadow can try the other. The sandbox lists every attempt.
Time limits
timeout_seconds ends a sandbox you forget about, after at most 24 hours.
Cost and caps
The cost of each sandbox on the sandbox itself, and max_sandboxes to cap how many a key or project keeps alive.

/v1/keys/v1/usage

Limits on every key

Give each workload its own key, with only the access it needs.

Key response
{
  "id": "key_7f17f52b",
  "max_requests": null,
  "max_tokens": null,
  "name": "my-app",
  "parent_key_id": "key_fac42e2e",
  "requests_used": 0,
  "scopes": ["models"],
  "tokens_used": 0
}
Part of a key minted in the quickstart. Its secret is shown once and left out here.

On the beta today

  • ScopesA key works only on the routes its scopes cover.
  • Request and token limitsCap a key's requests and tokens, and reset the count daily, weekly or monthly.
  • Child keysKeys minted from a key spend its limits. Revoking a key revokes them too.
  • UsageUsage and cost per model, vendor, key and project, kept for 90 days.
  • Spend limitsA limit in US dollars on each key.
  • BudgetsBudgets for a project or account, with alerts, that can also stop spend at the limit.
  • Audit logA record of who created, changed or deleted keys, projects, provider keys and budgets.

Not on the beta yet Coming

  • DashboardA dashboard to sign in to, for keys, usage, requests, sandboxes, budgets and members. It is built and in review.
  • SDKsSDKs for Python, Node.js and Go, generated from the API. They are built and in review.

mdw mcpllms.txt

Works with your agent

mdw mcp runs a Model Context Protocol server on your machine, with tools for sandboxes, images, keys and usage. It comes with current builds of the mdw CLI that beta users receive. The docs show how to add it to Claude Code, Cursor, the Codex CLI and other clients.

llms.txt lists every docs page as Markdown, for agents to read. It needs the docs password during the beta.

Claude Code
claude mcp add meadow --scope project \
  --env 'MEADOW_API_KEY=${MEADOW_API_KEY}' \
  --env 'MEADOW_BASE_URL=${MEADOW_BASE_URL}' \
  -- mdw mcp

Pricing

Private beta. Bring your own keys. Meadow charges nothing today.

Cost figures are Meadow's reading of your vendors' list prices. Discounts, credits and taxes are not in them. Estimates are marked, and an unknown cost is never shown as zero. Your vendor's invoice is the bill. How cost is read.

Request access

Meadow is in a private beta. We read every request and let people in by hand.