Documentation menu

Runtime Configuration

You don't need to set any of this to get started. Every run comes preset with sensible defaults that work for most workloads, so you can focus on the task, not the infrastructure. Change them when a workload calls for it.

When Jetty runs a runbook, it executes a coding agent inside a managed sandbox. You choose which agent and which provider backs it. The following configuration options will determine how the runbook is executed.

  • The AI Gateway determines which model provider will generate the tokens required. Each provider has their own addressing scheme for models. Jetty uses an OpenRouter compatible gateway by default.
  • The Sandbox is the isolated machine the agent runs in. The default comes with common software packages and libraries (e.g. Python and Node) and a web browser.
  • Agent Runtimes: sometimes called the agent harness, is the command-line tool that runs the runbook. The model takes input in the form of text and images and the agent provides the memory, and loop orchestration.
  • Model. This is the foundation model used by the agent. You can try different models with the same runbook and evaluate performance.
  • MCPs & skills are additional plugins that give the agent specialized capabilities: web browsing, spreadsheet manipulation, access to Google Workspace, etc.

AI Gateways

AI providers (or model providers) are the backends Jetty calls for inference, both from the passthrough proxy and from the model steps inside an AI workload. Each needs a key in the workspace; configure them in Settings → Bring Your Own Key.

What each model_provider needs in the workspace:

model_providerRequiredOptional
anthropicANTHROPIC_API_KEY—
openaiOPENAI_API_KEY—
bedrockAWS_BEARER_TOKEN_BEDROCKAWS_REGION
openrouterOPENROUTER_API_KEYOPENROUTER_BASE_URL, OPENROUTER_HTTP_REFERER, OPENROUTER_X_TITLE
cloudflareCLOUDFLARE_AI_GATEWAY_ACCOUNT_ID, CLOUDFLARE_AI_GATEWAY_TOKENCLOUDFLARE_AI_GATEWAY_ID (default default), CLOUDFLARE_AI_GATEWAY_BASE_URL
googleGEMINI_API_KEYGOOGLE_API_KEY
vllmVLLM_BASE_URLVLLM_API_KEY

cloudflare is your own Cloudflare AI Gateway in front of the provider-native Anthropic and OpenAI endpoints, so each runtime speaks the wire it would speak on a direct key. The gateway must be authenticated: Jetty sends only the gateway token, never your Anthropic or OpenAI keys, and the upstream is paid for either by provider keys you store in Cloudflare (BYOK) or by Unified Billing credits. Model ids are vendor-namespaced exactly as on OpenRouter (anthropic/claude-sonnet-5, openai/gpt-5.5), so moving a runbook between the two gateways is a one-line change of model_provider. Prompts and completions are logged in your Cloudflare account when the gateway's logging is on. antigravity does not support it, and Google models are not served through it.

vllm is the catch-all for a self-hosted or custom endpoint — vLLM, SGLang, TGI, LiteLLM, or any OpenAI- or Anthropic-compatible server. Which wire it must speak depends on the runtime, as noted on each runtime's page. Not every model needs a card of its own, either: the passthrough proxy and the litellm_chat / litellm_batch actions route to 100+ providers through LiteLLM, and the action catalog adds image and video models. See Integrations for how keys reach the sandbox.

Sandboxes

Every run gets its own sandbox, created for the run and deleted when it ends.

  • Default environment: the python312-uv snapshot, with Python 3.12, uv, Node 22, Chromium and Playwright, and the claude-code, codex, opencode and hermes CLIs pre-installed. Other runtimes install when the run starts, which costs a few seconds.
  • Default size and time: 4 CPUs, 8 GB of memory, 10 GB of disk, and up to 30 minutes for the agent. For longer jobs, contact [email protected].
  • Files: the agent works in /app, reads attached files from /app/assets and must write deliverables to /app/results.
  • Your own environment: choose another snapshot with snapshot: in frontmatter, or run on a public Docker image with the image run parameter.

Sandboxes covers the lifecycle, the directory layout, limits, network access and running on a custom Docker image.

Agent Runtimes

Each runtime executes inside the sandbox, reads the matching provider key, and is chosen with an agent: line in runbook frontmatter or agent in a run's init_params, both covered below.

The Providers column lists the values you can put in model_provider for that runtime; MCP says whether the runtime honours mcp_servers on a task; Usage says whether token counts land on the run.

RuntimeProvidersMCPUsageUse it when
claude-code (default)anthropic, bedrock, openrouter, cloudflare (Anthropic models), vllm✓✓The starting point. Best general agentic coding behaviour; the loop the skills are tuned against.
codexopenai, openrouter, cloudflare (OpenAI models), vllm—✓You want OpenAI models driving the agent.
antigravity (Google)google✓✓You want Gemini models driving the agent. Google's current terminal agent, agy.
opencodeanthropic, openai, bedrock, openrouter, cloudflare, vllm✓best-effortYou want an open-source agent with MCP, browser automation and scraping ready on every run.
hermes (Nous)anthropic, openai, bedrock, openrouter, cloudflare, google, vllm—✓You want one runtime across every provider, including a self-hosted vLLM endpoint.
pianthropic, openai, bedrock, openrouter, cloudflare, google, vllm—✓You want a lean agent that leans on CLI tools and skills rather than MCP.

Best-effort usage means the runtime doesn't emit token counts reliably, so a null or zero usage on the run is not a failure signal. New to this? Stay on claude-code until you have a reason to switch.

Models

The model is the foundation model the agent calls: text and images in, text out. Name it with model in the provider's own format, paired with the model_provider that serves it; each runtime's page lists the formats it accepts. Because the model is a setting on the run rather than part of the runbook, you can run the same runbook on several models and compare the runs.

Below are some models Jetty users run frequently.

Modelmodelmodel_providerTier
Claude Opus 5anthropic/claude-opus-5anthropic, bedrock, openrouter, cloudflareFrontier
GPT-5.4openai/gpt-5.4openai, openrouter, cloudflareFrontier
GPT-5.6 Solopenai/gpt-5.6-solopenai, openrouter, cloudflareFrontier
Kimi K3moonshotai/kimi-k3openrouterFrontier
Claude Sonnet 5 (default)anthropic/claude-sonnet-5anthropic, bedrock, openrouter, cloudflareBalanced
Claude Sonnet 4.6anthropic/claude-sonnet-4.6anthropic, bedrock, openrouter, cloudflareBalanced
GPT-5.6 Terraopenai/gpt-5.6-terraopenai, openrouter, cloudflareBalanced
Gemini 3.7 Flashgoogle/gemini-3.7-flashgoogle, openrouterBalanced
GLM 5.2z-ai/glm-5.2openrouterBalanced
GPT-5.6 Lunaopenai/gpt-5.6-lunaopenai, openrouter, cloudflareFast
GLM 5.3 Flashz-ai/glm-5.3-flashopenrouterFast
DeepSeek V4 Flashdeepseek/deepseek-v4-flashopenrouterFast

A model's Tier is a rough positioning, in terms of price and speed. Generally faster models are cheaper. Opus-class models are blocked on the free trial, so they need your own key. Anything else in the OpenRouter model directory works too, with model_provider: openrouter. There are three places to set the model.

Runbook Frontmatter sets the default

A runbook names its runtime in frontmatter, so the choice travels with the file:

YAML
---
agent: claude-code                 # claude-code | codex | antigravity | opencode | hermes | pi
model: anthropic/claude-sonnet-5   # slug in the provider's own format
model_provider: openrouter         # anthropic | openai | bedrock | openrouter | cloudflare | google | vllm
snapshot: python312-uv             # the default sandbox
notify_on_completion: true         # start "Email me when this run finishes" ticked
---

notify_on_completion only seeds that checkbox on the dashboard's launch forms; whoever starts the run can still flip it, and runs started from the API or a routine do not read it.

Leave all of them out and you get claude-code on anthropic/claude-sonnet-5 via openrouter in the python312-uv sandbox. Set model without model_provider and Jetty picks the provider: OpenRouter if the workspace has an OPENROUTER_API_KEY and the runtime supports it (codex is excluded; see its page), then Cloudflare AI Gateway if there is a CLOUDFLARE_AI_GATEWAY_TOKEN and the runtime supports it, then Bedrock if there is an AWS_BEARER_TOKEN_BEDROCK, then the runtime's native provider — Anthropic for claude-code, OpenAI for codex, Google for antigravity. vllm is never picked for you. opencode, hermes and pi have no native provider, so name model_provider for them. Naming it is the safe habit everywhere; the inference is a convenience that will eventually go away.

Override it per run

The frontmatter is a default, not a lock. When you deploy a runbook, Jetty stores agent, model, model_provider and snapshot as init_params on the task, and the run step reads them from there. Whatever you send when you start a run merges over those defaults, caller wins. So a deployed runbook can run on another agent, model or provider without a redeploy and without a second copy of the file. That is what turns a model sweep into a loop instead of a project.

Two ways to send them. From the run endpoint, pass init_params:

Shell
curl -X POST https://flows-api.jetty.io/api/v1/run/my-workspace/cbc-homepage-summary \
  -H "Authorization: Bearer $JETTY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "init_params": {
      "agent": "antigravity",
      "model": "gemini-3.7-flash",
      "model_provider": "google",
      "agent_env": { "ANTIGRAVITY_EFFORT": "medium" },
      "vars": { "url": "https://www.cbc.ca/" }
    }
  }'

The run form in the web app and the run-workflow tool in the MCP server send the same init_params, so anything below applies there too.

The on-ramps

Every on-ramp hits the same backend ( https://flows-api.jetty.io ) with the same token, and the API is OpenAI-compatible, so you can start with the plugin today and drop down to the SDK or REST API later without changing anything server-side. Each of them can send the same init_params.

On-rampBest forYou get
Bring your own agentAgents with skills (Claude Code, Codex, OpenCode)The jetty skill for natural-language control, the jetty-setup wizard, and the create-runbook / optimize-runbook skills.
MCP serverCursor, VS Code, Windsurf, Zed, Codex16+ Jetty tools in any MCP-compatible agent, via npx -y jetty-mcp-server.
Client SDKTypeScript / Node apps & CI@jetty/sdk, a typed JettyClient with runAndWait() and the full run / result / label surface.
REST APIAny language, any runtimeThe tasks API (deploy, run, poll — the primary endpoint), plus an OpenAI-compatible /v1/chat/completions layer for compatibility.
Standalone CLIShell scripts & quick checkssource jetty-cli.sh for jetty_collections, jetty_run_sync, and friends. No install.

MCPs & Skills

Every runtime brings its own core tools: file editing, a shell, and web navigation. MCP servers and skills extend that set. A task can attach MCP servers, declared as a local command or a remote HTTP endpoint, for capabilities like browser automation, spreadsheet manipulation, or Google Workspace access; the MCP column in the runtime table shows which runtimes honour mcp_servers. Skills are plain markdown, so they go inside the runbook itself. The exact shapes are in the machine instructions. Two capabilities every run relies on, whichever runtime you pick, are files and the web.

Files and the web

Files attached to a run are mounted at /app/assets/, and everything the agent writes to /app/results/ is saved with the run; a run that ends with an empty results directory fails. Sandboxes have outbound network access, so agents can fetch URLs, call APIs, install packages and drive a browser. Details are in Sandboxes.

Alternative Integrations

Prefer to keep the agent in your own stack? Check out how you can bring your Friends and Framework to Jetty.