Sinatra Docs
Configuration

Models

How the agent gets a model, the credentials Sinatra supports, and the models you can pick.

The agent's intelligence comes from the LLM behind it. Sinatra is the orchestration layer; you choose which model runs and how it is paid for.

Choosing model access

Every account, including existing and paid accounts, requires its own model credentials. An owner or admin can add an Anthropic or OpenRouter API key shared with authorized workspace members. Each member can connect a personal subscription in Settings → Models for the tasks they trigger. Your provider's charges and usage limits apply separately from your Sinatra plan; Sinatra never bills for model usage. Token and cost diagnostics are estimates, not amounts owed to Sinatra, including when your provider subscription covers usage.

You can connect more than one credential. Automatic defaults depend on the triggering member's connections and the workspace's shared keys. An owner can set a shared engine/model default in Settings → Models. Explicit repository settings and personal repository preferences take priority.

Credentials

CredentialHow you connect itReaches
AnthropicOwner/admin pastes a workspace API keyClaude models
OpenRouterOwner/admin pastes a workspace API keyThe openrouter/* entries below
ChatGPT / CodexEach member connects their subscription in setup or SettingsThe member's tasks using supported OpenAI models
Claude subscriptionEach member connects in setup or SettingsThe member's tasks using Claude models
SuperGrokEach member connects their subscription in setup or SettingsThe member's tasks using xai-oauth/* models on oh-my-pi
CursorEach member connects their subscription in setup or SettingsThe member's tasks using cursor/* models on oh-my-pi

Connecting ChatGPT uses OpenAI's device-code sign-in: you copy a code, enter it on OpenAI and approve. OpenAI asks for a paid ChatGPT plan (Plus, Pro, Business, Enterprise or Edu) with Device code authorization for Codex turned on in ChatGPT Settings → Security; on a Business, Enterprise or Edu workspace an admin turns it on. You can close the window after approving: Sinatra keeps checking for the 15 minutes the code lasts, unless Sinatra restarts meanwhile, in which case connect again.

There is no direct OpenAI API-key field in Sinatra. The openai-codex/* entries below require a personal ChatGPT / Codex connection. An OpenRouter key should be paired with one of the listed openrouter/* models; it does not supply a personal Codex, SuperGrok or Cursor connection.

On Cursor's X Subscription plans, third-party models in Cursor (Claude, GPT) are billed at API prices through top-ups, while Grok models use the plan's included usage.

Personal subscriptions belong to one member in one workspace. Connecting yours does not provide subscription access to teammates. A personal subscription takes precedence over a shared API key when it can serve the selected model.

Pasted keys are encrypted per workspace with envelope encryption, and the encryption is bound to the workspace, so a key stored in one workspace cannot be decrypted in another.

Before each OMP launch, Sinatra replaces stored Claude and SuperGrok subscription credentials with the credential selected for that agent. A warm OMP process restarts when that subscription credential changes, while retaining the requested conversation session.

Engines

An engine is the agent harness that runs inside the sandbox. The engine decides how model names are written.

  • claude-code uses short Anthropic names like opus-5-5.
  • oh-my-pi (default) uses provider-qualified slugs for Anthropic, OpenRouter, Codex, SuperGrok and Cursor models. Codex models use openai-codex/*.

A model must belong to the engine you picked. Settings → Models offers only compatible pairs. Sinatra cannot resume an engine's conversation history in a different engine, so an engine change starts a fresh agent conversation while the workstream record remains.

OpenCode is no longer supported. Choose a supported engine and model under Settings → Models. For Codex models, use the openai-codex/ prefix instead of openai/. Changing engines starts a fresh agent conversation; existing OpenCode session history cannot be resumed.

Repository-level model choice is retired

Repositories no longer choose the engine, model or reasoning effort. Sinatra rejects a repository's .sinatrarc.json if it contains engine, agent.model or agent.effort, regardless of the value. Remove those keys and choose Settings → Models → Your default instead; owners can also set the workspace default. The repository's Agent tab no longer offers an engine, model or effort control. Sinatra copied each member's most recently saved per-repository model to their default if they had none. Other repository settings are unchanged.

Supported models

claude-code engine (Claude models)

ModelEffort levels
sonnet-5-5low, medium, high, xhigh, max
opus-5-5low, medium, high, xhigh, max
fable-5-1low, medium, high, xhigh, max
haikunone
sonnet (Sonnet 4.6)low, medium, high, max
opus (Opus 4.7)low, medium, high, xhigh, max
opus-4-8low, medium, high, xhigh, max
opus-5low, medium, high, xhigh, max
fable-5low, medium, high, xhigh, max

oh-my-pi engine (full slugs)

The default snapshot uses OMP 18.10.4. Existing sandboxes and custom snapshots also need a runtime that supports the selected model; changing model preferences does not upgrade their CLI. In-flight workflow chains retain their original worker build, so use a newly started chain for a newly added model.

ModelCredentialEffort levels
anthropic/claude-sonnet-5-5Anthropiclow, medium, high, xhigh, max
anthropic/claude-opus-5-5Anthropiclow, medium, high, xhigh, max
anthropic/claude-fable-5-1Anthropiclow, medium, high, xhigh, max
anthropic/claude-haiku-4-5Anthropiclow, medium, high, xhigh
anthropic/claude-sonnet-4-6Anthropiclow, medium, high
anthropic/claude-opus-4-7Anthropiclow, medium, high, xhigh
anthropic/claude-opus-4-8Anthropiclow, medium, high, xhigh
anthropic/claude-opus-5Anthropiclow, medium, high, xhigh, max
anthropic/claude-fable-5Anthropiclow, medium, high, xhigh, max
openrouter/anthropic/claude-sonnet-5.5OpenRouterlow, medium, high, xhigh, max
openrouter/anthropic/claude-opus-5.5OpenRouterlow, medium, high, xhigh, max
openrouter/anthropic/claude-fable-5.1OpenRouterlow, medium, high, xhigh, max
openrouter/anthropic/claude-opus-4.8OpenRouterlow, medium, high
openrouter/anthropic/claude-opus-5OpenRouterlow, medium, high, xhigh, max
openrouter/anthropic/claude-fable-5OpenRouterlow, medium, high, xhigh, max
openai-codex/gpt-6.1-solCodexlow, medium, high, xhigh, max
openai-codex/gpt-6-lunaCodexlow, medium, high, xhigh, max
openai-codex/gpt-6-astraCodexlow, medium, high, xhigh, max
openai-codex/gpt-6-solCodexlow, medium, high, xhigh, max
openai-codex/gpt-5.6-solCodexlow, medium, high, xhigh, max
openai-codex/gpt-5.6-terraCodexlow, medium, high, xhigh, max
openai-codex/gpt-5.6-lunaCodexlow, medium, high, xhigh, max
openai-codex/gpt-5.5Codexlow, medium, high, xhigh
openai-codex/gpt-5.4Codexlow, medium, high, xhigh
openai-codex/gpt-5.4-miniCodexlow, medium, high, xhigh
xai-oauth/grok-4.7SuperGroklow, medium, high, xhigh
xai-oauth/grok-4.6SuperGroklow, medium, high, xhigh
xai-oauth/grok-4.5SuperGroklow, medium, high, xhigh
cursor/grok-4.7Cursorlow, medium, high, xhigh
cursor/cursor-grok-4.6Cursorlow, medium, high, xhigh
cursor/composer-2.5Cursornone
cursor/claude-opus-5-5Cursorlow, medium, high, xhigh, max
cursor/gpt-5.6-solCursorlow, medium, high, xhigh, max

ChatGPT plans don't all include the same Codex models: lower plans often lack the newest one. Pick a model your plan lists.

The credential column names the model's connection. A personal Claude subscription can also serve Anthropic models. These tables describe the combinations Sinatra accepts, not every model sold by each provider.

Default model

Your default

In Settings → Models → Your default model, any member can save an engine, a compatible model and, optionally, a reasoning effort for the work they ask Sinatra to do in that workspace, including replies on someone else's task. It applies in every repository and takes priority over the workspace default. Clear removes it. The same page shows what your tasks run on now and why, and warns when that model needs a credential you haven't connected.

Workspace default

In Settings → Models → Workspace default, an owner can save an engine, a compatible model and, optionally, a reasoning effort for the whole workspace. Only an owner can change it, so only an owner sees it. Reset to automatic removes the shared preference.

From highest to lowest priority: your default, the workspace default, then automatic selection. A repository's .sinatrarc and a repository's Agent tab don't take part.

A default's effort travels with its engine/model pairing. Sinatra uses your personal default's effort when that pairing is chosen, otherwise the workspace default's effort when its pairing is chosen. A chosen default saved without an effort runs at medium, even when a lower-priority default chose another level for its own model. Stored per-repository effort overrides are ignored. The effort dropdown lists only the levels the chosen model supports and is disabled for models with none.

To see how this works out for one repository, open it and choose the Agent tab. Next task here shows the engine, model and effort your next task there runs on, and which setting chose each.

Changes apply to agents started afterwards, including on tasks that have not selected a repository. An agent already running keeps its selected pairing, including its checkout verification. Saving a preference does not provide credentials or change billing eligibility. Each triggering member must still have access to the selected model.

A task started from the CLI, MCP or API can name its own model. It takes priority over every preference above, for every agent on that task, and the model picks its engine. Sinatra accepts the models settings offer.

Automatic selection

If neither your default nor a workspace default is saved, Sinatra selects a model from your available credentials, in this order:

  • A personal Claude subscription uses anthropic/claude-opus-5-5 on oh-my-pi at medium effort.
  • A personal Codex subscription uses the newest Sol model your ChatGPT account offers (for example openai-codex/gpt-6-sol), on oh-my-pi at medium effort, ahead of raw API keys. If your account offers no Sol model, Sinatra uses the first model in the account's list instead, and runs a Luna model such as openai-codex/gpt-6-luna at high effort. Sinatra checks the account's model list with Codex once a day, and again whenever Codex turns a model down, and uses openai-codex/gpt-6.1-sol until it has a list.
  • A single Anthropic key uses anthropic/claude-opus-5-5 on oh-my-pi at medium effort.
  • A single OpenRouter key uses openrouter/anthropic/claude-opus-5.5 on oh-my-pi at medium effort.
  • With several keys connected, Sinatra picks the alphabetically first connected provider that has a usable default.
  • A personal SuperGrok subscription, when you have none of the above, uses xai-oauth/grok-4.7 on oh-my-pi at medium effort.
  • A personal Cursor connection, when you have none of the above, uses cursor/grok-4.7 on oh-my-pi at medium effort.

Without usable own credentials, tasks are blocked with own_credentials_required. Connect a personal subscription or ask an owner/admin to add a workspace API key. A paid Sinatra plan does not provide model access.

Choosing a model does not create its required credential. A missing credential for the selected model blocks the run.

SuperGrok and Cursor come last: with a Claude or ChatGPT subscription or an API key also available, Sinatra picks that instead, and SuperGrok ranks above Cursor. To run on one of them anyway, save an oh-my-pi xai-oauth/* or cursor/* model as your default.

Effort

Reasoning effort controls how hard the model thinks. Choose it alongside the engine and model in Settings → Models → Your default, or, as an owner, in the workspace default. It cannot be set in a repository's .sinatrarc.json or Agent tab. A chosen default without an effort uses medium; without either default, automatic selection keeps its credential-based model and effort choices. Not every model supports every level, and models with no effort levels (such as haiku) ignore effort. The exact range per model is in the tables above.