Sinatra Docs

CLI, MCP and API

Start and follow Sinatra tasks from your terminal, from Claude Code, Codex, Cursor, claude.ai or ChatGPT, or from your own scripts.

Sinatra's task API lets you hand it work without a Linear ticket or GitHub issue. Start a task from your terminal with the sinatra CLI, from an MCP client such as Claude Code, Codex, Cursor, claude.ai or ChatGPT, or from a script over HTTP. You read the agent's answers and questions, reply, and stop a running agent the same way.

All three use the same API. The CLI, Claude Code, Codex, Cursor, claude.ai, ChatGPT and Grok sign in with your Sinatra account in the browser. The HTTP API uses a personal access token, and so can the CLI on a computer without a browser. A task started this way runs like any other: it gets a sandbox, can open a pull request, and shows up in the dashboard.

Create a token

  1. In the dashboard, open CLI & API in the sidebar. This opens the Access tokens page at app.sinatra.dev/tokens.
  2. Name the token, for example Laptop CLI, and pick when it expires: 30, 90 or 365 days.
  3. Copy the token. It starts with sntr_ and is shown once. Afterwards the page shows only its name and last four characters.

The same page shows how to set up the CLI, Claude Code, Codex, Cursor, claude.ai, ChatGPT, Grok and other MCP clients, and the HTTP API with curl.

A token acts as you in every workspace you belong to, with your role in each. Sinatra checks your membership on every workspace-scoped request, so if you leave a workspace, the token stops working there. User-level account and email preferences remain available without any workspace memberships. Revoke a token on the same page at any time; anything using it stops working immediately. sinatra logout and DELETE /v1/me/token revoke the token they use.

Keep tokens out of committed files. Sinatra stores only a hash of each token, so a lost token can't be recovered: revoke it and create a new one.

CLI

The CLI needs Node 22 or newer. Signing in through the browser, --token and --no-browser need version 0.2.0 or newer; on an older version sinatra login asks for a token. Run npm i -g sinatra.dev to update.

npm i -g sinatra.dev
sinatra --version
sinatra login

sinatra login opens your browser on a Sinatra page that asks you to approve the Sinatra CLI. Sign in to Sinatra there if you aren't already, click Approve, and the CLI is logged in, with no token to create or copy. It then asks you to pick a default workspace if you belong to more than one. If you don't approve within 5 minutes, the CLI stops waiting.

The CLI saves the sign-in to ~/.config/sinatra/config.json ($XDG_CONFIG_HOME/sinatra if set, %APPDATA%\sinatra on Windows), readable only by you. It renews its access as it goes, and stays signed in for up to 90 days, or until it goes 30 days unused. It's listed as Sinatra CLI under Connected apps on the Access tokens page, where Disconnect signs it out at once. After either, the CLI asks you to run sinatra login again.

If the browser doesn't open, sinatra login --no-browser prints the URL to open instead. The browser has to run on the same computer as the CLI, because Sinatra sends it back to a port the CLI listens on there. On a computer you reach over SSH, or with no browser, log in with a token: sinatra login --token asks for it without echoing it.

To log in from a script, pipe the token in and pass -w <id> to set the default workspace: sinatra login -w <workspace-id> < token-file. Piped input reads a token unless you also pass --no-browser. A workspace that isn't one of yours is refused, and nothing is saved. Piped without -w, login saves no default when you belong to more than one workspace, and says how to set one.

sinatra logout ends the sign-in on Sinatra, or revokes the token you logged in with, then deletes that file. If Sinatra can't be reached, the file is still deleted and the CLI warns that the sign-in or token may still work. Disconnect or revoke it on the dashboard's CLI & API page.

Examples

sinatra "fix the flaky retry test"              # start a task and follow it
sinatra "explain this" -f notes.md -f err.log   # attach text files
sinatra reply <task-id> "also update the docs"  # follow up, then follow the task
sinatra reply <task-id> "see this" -f err.log   # attach files to a reply
sinatra show <task-id>                          # print the task and its conversation
sinatra tasks                                   # the 20 most recently active tasks
sinatra tasks --status pr_open -n 50            # filter by status, show more
sinatra stop <task-id>                          # stop the running agent
sinatra tickets -q "flaky login"                # find open Linear and GitHub issues you could delegate
sinatra delegate ENG-123                        # hand Sinatra a Linear issue as you
sinatra delegate acme/web#42                    # or a GitHub issue (an issue URL works too)
sinatra whoami                                  # who the token acts as, and your workspaces
sinatra account --json                         # your account, memberships and linked identities
sinatra email-preferences                      # read your email preferences
sinatra email-preferences --setup-reminders off --task-alerts on
sinatra workspace                               # list your workspaces and the default
sinatra workspace <id>                          # make another workspace the default
sinatra workspace create "Acme"                 # create a workspace you own (your first becomes the default)
sinatra workspace show                         # inspect setup, plan, model default and your role
sinatra workspace show -w <id> --json          # the same overview for scripts
sinatra logout                                  # sign out and forget the login
sinatra "fix it" --no-wait --json               # start a task, print it as JSON

After you start a task or reply, the CLI prints what Sinatra posts until the agent hands back, then tells you how to reply. If the task is waiting because your workspace is running as many agents at a time as its plan allows, the CLI says so. Ctrl-C stops waiting; the task keeps going. After 30 minutes, or the minutes you set with --timeout, the CLI stops waiting and exits with code 3. Pick up later with sinatra show <task-id>.

If you reply to a task that had completed, failed or been cancelled and Sinatra hasn't picked up your message within two minutes, the CLI says so and exits with code 3, without reporting the previous agent's result. A task paused on access or billing exits with code 2.

A prompt that starts with a command word still starts a task, unless it has exactly that command's shape. sinatra stop retrying on 429 starts a task, but a command word followed by a single word, such as sinatra stop now, is treated as a mistyped command. sinatra start "..." always starts one.

A prompt that starts with - goes after --, so it isn't read as an option: sinatra -- "-v is broken". A title that starts with - takes the = form: --title="-x title".

sinatra show prints the conversation only for tasks started from the CLI, MCP or API. A task started elsewhere, such as from Linear or GitHub, has its conversation there.

sinatra tickets lists the open Linear and GitHub issues you could delegate, the same list as the dashboard's ticket picker: yours first, then your team's unassigned ones. Issues assigned to someone else, or already being worked on, are left out. -q searches: GitHub search terms, and a substring of a Linear issue's title. -r owner/name searches that repository first on GitHub.

sinatra delegate <ticket> hands Sinatra an existing issue as you, as if you'd assigned it to Sinatra yourself: a Linear identifier such as ENG-123 or a GitHub owner/name#42, or either issue's URL. Sinatra then works on the issue and answers there. Follow it on the issue or with sinatra tasks. Searching and delegating Linear issues need Connect your Linear account in Settings; a Linear identity matched by email isn't enough. GitHub issues need the repository enabled. An issue assigned to someone else is refused.

sinatra workspace create "<name>" creates a workspace and makes you its owner, so you can set up without the dashboard. Your first workspace becomes the CLI's default. Connect GitHub to it next with sinatra connect github. Each person can create one workspace this way; installing the Sinatra GitHub App on another account or organization makes more. If you already created a workspace without GitHub, even one since connected to GitHub, the command says so and creates nothing.

sinatra workspace show reads your workspace's connected repositories, GitHub, Linear, Slack and Telegram connection status, plan status, model default and your role. It uses the default workspace, or the one named with -w; it does not change settings.

Connect integrations

sinatra connect linear
sinatra connect github -w <workspace-id>
sinatra connect slack --timeout 10
sinatra connect telegram
sinatra connect linear --json

connect prints the browser URL, opens it, and polls the existing workspace overview until connected or the timeout expires. Finish the install in a signed-in browser; the CLI never accepts OAuth codes, tokens or cookies. GitHub, Linear and Slack require an admin or owner, matching the dashboard. Telegram links your own account, not the workspace's enabled setting, and is available only where Telegram linking is enabled for you.

If a browser cannot open, open the printed URL yourself. JSON mode prints the raw handoff response without opening a browser or polling; read status with sinatra workspace show --json.

Workspace access

Owners can manage the same members, invitations and access requests as in the dashboard:

sinatra members list --json
sinatra invite teammate@example.com --role member
sinatra invite resend <invite-id>
sinatra invite revoke <invite-id> --yes
sinatra requests approve <request-id> --role admin
sinatra requests deny <request-id>
sinatra members role <membership-id> --role member
sinatra members remove <membership-id> --yes
sinatra members transfer <membership-id> --yes
sinatra workspace leave --yes

Each command supports -w <workspace-id> and --json. members list includes memberships, invitations and access requests with the ids used by the other commands. Remove, revoke, transfer and leave ask for confirmation in a terminal; scripts must pass --yes. All actions except leaving require the owner role, including listing access. A member or admin cannot grant themselves owner access. An owner cannot be removed or demoted through role changes, and the last owner cannot leave: transfer ownership to another member first. Without --json, the list shows members and pending invitations and requests in readable sections; write commands describe the change. --json preserves the full API response, including invitation and request history.

sinatra account returns your dashboard-visible account details as user, memberships and linkedAccounts, without credentials or dashboard-hidden fields. sinatra email-preferences reads your setupReminders and taskAlerts booleans. Pass --setup-reminders on|off or --task-alerts on|off to update only those preferences; omitted preferences stay unchanged. Both commands support --json, need no workspace membership or configured default workspace, and reject -w.

Email preferences belong to the authenticated user, not the workspace. You can manage your own even with no workspace memberships, but cannot target another user. They use the same saved preferences as the email preferences page linked from Sinatra emails, so a change in either place applies in both.

Personal model subscriptions

sinatra subscriptions                          # your connections in the selected workspace
sinatra subscriptions --json                   # the same list as JSON
sinatra subscriptions connect codex            # connect your ChatGPT subscription
sinatra subscriptions connect claude           # connect your Claude subscription
sinatra subscriptions connect xai              # connect your SuperGrok subscription
sinatra subscriptions connect cursor           # connect your Cursor subscription
sinatra subscriptions remove <connection-id>   # disconnect one of your accounts

Any workspace member can manage their own connections; even workspace owners cannot use these commands to read or change another member's subscriptions. Pass -w <workspace-id> to select a different workspace.

Connecting prints the provider's URL and any device code, opens your browser, and waits for approval. Where a provider gives you a code to paste back, the CLI reads it without echoing it; you can also pipe it through stdin. Never put an authorization code in command-line arguments or send it through an MCP conversation. With --json, connection instructions go to stderr and the final result goes to stdout.

The CLI stops polling after 15 minutes. Use --no-browser to open the printed URL yourself. If approval expires or is denied, start a new connection flow.

Workspace model and keys

Members can read the workspace model default and list configured shared key providers. Only owners can set or clear the default; owners and admins can add, replace or remove shared Anthropic and OpenRouter keys.

sinatra model
sinatra model set openai-codex/gpt-6.1-sol --engine oh-my-pi --effort medium
sinatra model clear
sinatra keys
sinatra keys add openrouter                 # hidden prompt
sinatra keys add anthropic < key-file       # stdin, not an argument
sinatra keys remove openrouter

All these commands accept -w <workspace-id> and --json. Model selection must match the engine's catalog; --engine is required when setting a model, and --effort is optional. Clearing the default restores automatic selection when no personal default applies; running tasks are unchanged. Key lists show only provider and configured status. Never put a key in a command-line argument or flag: use the hidden prompt or stdin.

model clear and keys remove ask for confirmation in a terminal; scripts must pass --yes. Declining leaves settings unchanged. Removing an absent provider key prints that no key is configured; a missing workspace or lost membership remains an error. An expired browser sign-in tells you to run sinatra login.

Repository settings

sinatra repos --json
sinatra repo acme/widget config
sinatra repo acme/widget config preflight --file override.json
sinatra repo acme/widget override set --file override.json
sinatra repo acme/widget override clear --yes
sinatra repo acme/widget secrets
sinatra repo acme/widget secrets set REGISTRY_TOKEN --host registry.example.com
sinatra repo acme/widget secrets rotate REGISTRY_TOKEN < secret-file
sinatra repo acme/widget secrets update REGISTRY_TOKEN --header Authorization --prefix "Bearer "
sinatra repo acme/widget secrets delete REGISTRY_TOKEN --yes
sinatra repo acme/widget env
sinatra repo acme/widget capability-requests

repos uses the connected repositories already listed by workspace show. Repository commands resolve owner/name in that workspace; all accept -w <workspace-id> and --json for raw responses. Without --json, output is readable text.

Config shows your effective .sinatrarc and provenance. Preflight checks an unsaved fragment; override set saves only your preferences. The JSON file contains the fragment directly, for example { "agent": { "max_turns": 42 } }, not a fragment wrapper. Engine and model selection are managed under Models, not these overrides. Clearing your override leaves other members' settings unchanged.

Secret lists contain names and metadata, never values or suffixes. Members can list; only admins and owners can set, rotate, edit metadata or delete. Set and rotate read one value through a hidden prompt or stdin, never an argument or flag. Set requires at least one repeatable --host; rotate preserves omitted hosts, header and prefix. secrets update changes metadata without re-entering a value. Set and rotate can include --capability-request <id> when supplying a requested credential. Clearing an override or deleting a secret requires terminal confirmation, or --yes in scripts; piped input is not consent.

Repository secret input preserves spaces and Unicode; stdin consumes one line without its line delimiter.

Environment status and capability-request reads retain the workspace's repository-environments feature gate.

External PR review settings

Where external PR reviews are enabled for your workspace, read or change the same settings used by the dashboard:

sinatra workspace review-external-prs           # read the workspace default
sinatra workspace review-external-prs on        # enable the workspace default
sinatra workspace review-external-prs off
sinatra repo acme/widget review-external-prs    # read the override and effective value
sinatra repo acme/widget review-external-prs inherit
sinatra repo acme/widget review-external-prs on
sinatra repo acme/widget review-external-prs off

All commands accept -w <workspace-id> and --json. Any member can read; only owners and admins can change settings. Repository inherit follows the workspace default, while on and off override it. Workspace responses contain reviewExternalPrs as a boolean; repository responses contain reviewExternalPrs as inherit, on or off and enabled as the effective boolean.

These commands use the API's external-PR-review rollout gate. An excluded workspace returns 404 not_found; the commands do not enable the rollout.

Billing

sinatra billing
sinatra billing upgrade --plan pro
sinatra billing portal
sinatra billing --json -w <workspace-id>

Every member can read plan, capacity and subscription status. Only workspace owners can open checkout or the billing portal. Upgrade accepts pro, team or scale; an existing active subscription is managed through the portal instead. The handoff commands open the system browser and also print the Stripe URL, so you can open it manually if needed. All three commands accept -w and --json; JSON mode prints the raw response without prose or opening a browser.

Flags

start here means starting a task, with or without the word: sinatra "..." and sinatra start "..." are the same.

FlagCommandsWhat it does
-r, --repo <owner/name>start, ticketsWith start, the repository to work on; it must be connected to the workspace. With tickets, the repository to search first.
-q, --query <text>ticketsText to search for.
-f, --file <path>start, replyAttach a text file to the message. Repeatable.
-t, --title <title>startThe task's title. Defaults to the prompt's first line.
-m, --model <model>startThe model for every agent on the task, such as anthropic/claude-opus-5-5 or openai-codex/gpt-6.1-sol. Defaults to your default or the workspace default.
-w, --workspace <id>Task, workspace access, subscriptions, connect, model, key and billing commands, workspace show, loginThe workspace. Defaults to the one picked at login or with sinatra workspace <id>. With login, the default workspace to save.
--timeout <minutes>start, reply, connectHow long to wait before the CLI stops following a task or integration connection. Defaults to 30.
--no-waitstart, replyStart the task or send the reply, then return without following it.
--jsonwhoami, account, email-preferences, tasks, show, tickets, workspace create, workspace show, workspace access, subscriptions, connect, model, key and billing commands; start and reply with --no-waitPrint raw JSON results on stdout for scripts. Subscription connection instructions use stderr; billing and integration handoffs do not open a browser.
--setup-reminders <on|off>email-preferencesChange your setup reminder emails, leaving task alerts unchanged unless also supplied.
--task-alerts <on|off>email-preferencesChange your task alert emails, leaving setup reminders unchanged unless also supplied.
--status <status>tasksOnly tasks in this status, such as implementing or pr_open.
-n, --limit <n>tasksHow many tasks to list, 1 to 100. Defaults to 20.
--no-browserlogin, subscriptions connectPrint the browser URL without opening it. For login, the browser must still be on this computer.
--tokenloginPaste a personal access token instead of signing in through the browser.
--api-url <url>loginThe API to use. Defaults to https://api.sinatra.dev. Must be https.
-v, --versionnonePrint the CLI's version.
--role <member|admin>invite, requests approve, members roleThe role to grant. Required.
-y, --yesinvite revoke, members remove, members transfer, workspace leave, model clear, keys removeExplicitly confirm without prompting. Required outside a terminal.
--engine <engine>model setRequired catalog engine, such as oh-my-pi or claude-code.
--effort <effort>model setOptional reasoning effort supported by the selected model.
--plan <pro|team|scale>billing upgradeThe paid plan to start checkout for. Required.

A flag the command doesn't use is an error, not silently ignored.

Repository. Inside a git checkout, the task runs on the checkout's GitHub repository. The CLI looks at the origin remote, then upstream. Another GitHub remote counts only when neither of those is on GitHub. SSH host aliases from ~/.ssh/config, such as git@github-work:owner/repo.git, count when they point at github.com. If origin's repository isn't connected to the workspace, the CLI says so and tries upstream's, so a fork falls through to the repository it forks. When none is connected, Sinatra's agent picks one. The CLI prints which remote it used. A repository you name with -r is never replaced: if it isn't connected, the start fails. Outside a GitHub checkout, without -r, the agent picks.

Attachments. Files go into the new task's first message or into your reply, marked as file content rather than instructions. Only text files can be attached, up to 80 KB together. Anything larger is refused, not cut short.

Retries. Task starts and messages carry an idempotency key. The CLI tries those requests up to three times on a dropped connection or a server error, and a retry never starts a second task or sends a message twice. Workspace access mutations and subscription starts/completions are not automatically retried. Subscription polls use the default retries for transient server or network failures.

Exit codes

CodeMeaning
0The agent handed back, or the command succeeded.
1An error: bad arguments, not logged in, an invalid token, a refused request, or a network failure.
2The task failed, was cancelled, or is paused on access or billing.
3Still working when the CLI stopped waiting, or Sinatra hasn't picked up your reply yet.

MCP server

Sinatra is a remote MCP server at https://api.sinatra.dev/v1/mcp. It uses the Streamable HTTP transport. Claude Code, Codex, Cursor, claude.ai, ChatGPT and Grok sign in with your Sinatra account over OAuth, like the CLI, so there's no token to create or paste. Clients that take a URL and headers can use a personal access token in an Authorization: Bearer header instead.

When an app signs in, Sinatra opens a page in your browser that names the app and asks you to approve it. A connected app acts as you in every workspace you belong to, with your role in each, like a token does. It stays signed in for up to 90 days, or until it goes 30 days without connecting, then asks you to sign in again. Approved apps are listed under Connected apps on the Access tokens page. Disconnect ends an app's access right away: its next call is refused, and it has to sign in again to reconnect.

Claude Code

claude mcp add --transport http --scope user sinatra https://api.sinatra.dev/v1/mcp

Then run /mcp in Claude Code, or claude mcp login sinatra, and sign in to Sinatra in your browser. --scope user makes Sinatra available in every project.

To use a token instead:

read -rs SINATRA_TOKEN && claude mcp add --transport http --scope user sinatra \
  https://api.sinatra.dev/v1/mcp --header "Authorization: Bearer $SINATRA_TOKEN"

When the command waits, paste your token and press Enter; nothing shows as you paste. read -rs keeps the token out of your shell history.

Codex

Signing in needs Codex 0.147 or newer; codex --version shows yours. Codex 0.143 to 0.146 stop with "Authorization server response missing required issuer" after you approve the app. That's a Codex bug, fixed in 0.147: update Codex, then run codex mcp login sinatra.

codex mcp add sinatra --url https://api.sinatra.dev/v1/mcp

Codex sees that Sinatra uses sign-in and opens your browser; approve the app on Sinatra's page. To sign in again later, run codex mcp login sinatra. Codex saves the server in ~/.codex/config.toml, so Sinatra is available in every project.

Over SSH or on a computer without a browser, use a token instead. Adding the server this way skips the browser sign-in:

codex mcp add sinatra --url https://api.sinatra.dev/v1/mcp --bearer-token-env-var SINATRA_TOKEN
read -rs SINATRA_TOKEN && export SINATRA_TOKEN && codex

Codex reads the token from SINATRA_TOKEN each time it starts, so start it from a shell where that variable is set. When read waits, paste your token and press Enter; nothing shows as you paste.

To revoke access, click Disconnect under Connected apps on Sinatra's Access tokens page.

Cursor

Open the Add to Cursor install link, or add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:

{
  "mcpServers": {
    "sinatra": {
      "url": "https://api.sinatra.dev/v1/mcp"
    }
  }
}

The Cursor app then asks you to sign in to Sinatra. In the Cursor CLI, run cursor-agent mcp enable sinatra, then cursor-agent mcp login sinatra.

claude.ai and Claude Desktop

  1. In claude.ai, open Customize, then Connectors, click + Add and choose Add custom connector.
  2. Name it Sinatra, enter https://api.sinatra.dev/v1/mcp as the URL, and click Continue.
  3. Keep the authentication settings Claude detects, clicking Continue again if it shows them on their own step, then click Add.
  4. Approve the app on Sinatra's page when it opens.

If you aren't signed in to Sinatra in that window, it asks you to sign in first. You can use your email and password there, which saves waiting for an email link inside the popup. See Signing in.

On a Team or Enterprise plan, an owner adds the connector once under Organization settings, then Connectors: click Add, choose Custom, then Web, and follow the same steps. Each member then opens Customize, then Connectors, clicks Connect next to Sinatra, and approves the app on Sinatra's page.

Claude Desktop uses the same connectors as claude.ai, so once you've added Sinatra in one, it's in the other.

To revoke access, click Disconnect under Connected apps on Sinatra's Access tokens page; removing the connector in claude.ai alone doesn't.

ChatGPT

ChatGPT adds MCP servers as plugins. Starting a task needs a custom MCP server with write actions, which OpenAI lists for ChatGPT Business, Enterprise and Edu workspaces, on the web. On Business, an admin or owner adds it; on Enterprise and Edu, an admin can also let selected members add it. On ChatGPT Pro, OpenAI allows custom MCP servers to read and fetch only, so ChatGPT can't start a Sinatra task there.

  1. In ChatGPT, open the Plugins page (chatgpt.com/plugins), click + and choose Add custom MCP server.
  2. Name it Sinatra, enter https://api.sinatra.dev/v1/mcp as the server URL, and choose OAuth for authentication. ChatGPT finds Sinatra's sign-in settings itself; keep the registration method it picks.
  3. Tick I understand and want to continue, click Create as a plugin, then Continue to Sinatra.
  4. Approve the app on Sinatra's page, which names it as ChatGPT, described by chatgpt.com.

If you aren't signed in to Sinatra in that window, it asks you to sign in first, and your email and password work there too. See Signing in.

To use it, mention @Sinatra in a chat, or click Try in chat.

To revoke access, click Disconnect under Connected apps on Sinatra's Access tokens page; deleting the plugin in ChatGPT alone doesn't.

Grok

  1. On grok.com, open Connectors (grok.com/connectors) and choose Add a custom connector.
  2. Name it Sinatra, enter https://api.sinatra.dev/v1/mcp as the Server URL, and click Add MCP.
  3. Approve the app on Sinatra's page, which opens in a popup and names it as Grok.

The connector then shows Connected. If you aren't signed in to Sinatra in that window, it asks you to sign in first, and your email and password work there too. See Signing in.

We've checked that Grok signs in. We haven't yet started a task from a Grok chat.

To revoke access, click Disconnect under Connected apps on Sinatra's Access tokens page.

Other clients

We've tested sign-in with Claude Code, Codex, Cursor, claude.ai, ChatGPT and Grok only. Another client that takes a server URL and headers can use a token:

{
  "mcpServers": {
    "sinatra": {
      "url": "https://api.sinatra.dev/v1/mcp",
      "headers": {
        "Authorization": "Bearer <token>"
      }
    }
  }
}

Tools

whoami, create_workspace, get_account, get_email_preferences and set_email_preferences need no workspace membership and take no workspace_id. For workspace-scoped tools, call whoami first to get your workspace ids. The tools on one task (get_task, follow_up, get_messages, stop_task) find the workspace from task_id, so for them workspace_id is optional.

ToolArgumentsWhat it does
whoaminoneWho the token acts as, and the workspaces you belong to, with your role in each. With no workspace, nextStep tells the agent to create one with create_workspace and then connect GitHub.
create_workspacenameCreates a workspace and makes you its owner. Returns the workspace and a nextStep: call connect_integration with integration: "github" for the dashboard page where the person installs the Sinatra GitHub App and picks repositories. One per person without GitHub; a second is refused.
get_workspaceworkspace_idConnected repositories, integration connection status, plan status, model default and your role. Reads only; no settings are changed.
get_accountnoneYour dashboard-visible user, memberships and linkedAccounts, without credentials or dashboard-hidden fields. No workspace membership needed.
get_email_preferencesnoneYour setupReminders and taskAlerts booleans, shared with the email preferences page. No workspace membership needed.
set_email_preferencessetup_reminders, task_alertsChange your own preferences. Supply at least one boolean; omitted preferences stay unchanged. No workspace membership needed, and no workspace_id argument accepted.
list_tasksworkspace_id, status, limit (1–100), cursorThe workspace's tasks, most recently active first, with status and pull request.
get_tasktask_id, workspace_id (optional)One task's status, title, repository and pull request.
start_taskworkspace_id, prompt, title, repo, model, idempotency_keyStarts a task. Omit repo to let the agent choose. Omit model to use your default or the workspace default model.
follow_uptask_id, text, idempotency_key, workspace_id (optional)Sends a message on a task started from the CLI, MCP or API.
get_messagestask_id, after, limit (1–200), workspace_id (optional)The task's conversation, oldest first. Pass after to read only what's new.
stop_tasktask_id, workspace_id (optional)Stops a running task's agent. Any member of the workspace can stop a task.
search_ticketsworkspace_id, query, repoThe open Linear and GitHub issues you could delegate, optionally matching query. See Search issues.
delegate_ticketworkspace_id, source (linear or github), id (Linear), repo and number (GitHub)Hands Sinatra an existing issue as you. See Delegate an issue.
list_subscriptionsworkspace_idLists only your personal subscription connections in this workspace.
subscription_usageworkspace_id, connection_idReads usage for one of your connections.
remove_subscriptionworkspace_id, connection_idDisconnects one of your connections.
connect_subscriptionworkspace_id, provider (codex, claude, xai, cursor)Returns the Account page URL so you can connect in the browser. Never accepts an authorization code.
run_codecodeRuns JavaScript that calls the other tools as functions. See Code mode.
list_membersworkspace_idMemberships, invitations and access requests. Owner only.
invite_memberworkspace_id, email, role (member or admin)Sends an invitation. Owner only.
resend_inviteworkspace_id, invite_idResends an invitation email. Owner only.
revoke_inviteworkspace_id, invite_idRevokes an invitation. Owner only; destructive.
approve_access_requestworkspace_id, request_id, roleGrants member or admin access. Owner only.
deny_access_requestworkspace_id, request_idDenies a request. Owner only; destructive.
set_member_roleworkspace_id, membership_id, roleChanges a member's role to member or admin. Owner only; destructive.
remove_memberworkspace_id, membership_idRemoves a member. Owner only; destructive.
transfer_ownershipworkspace_id, membership_idMakes the target owner and the caller admin. Owner only; destructive.
leave_workspaceworkspace_idLeaves the workspace; refuses the last owner. Destructive.
get_model_defaultworkspace_idSaved workspace model selection, or null. Any member; read-only.
set_model_defaultworkspace_id, engine, model, effort (optional)Saves a catalog selection for future tasks. Owner only.
clear_model_defaultworkspace_idClears the saved default. Owner only; destructive.
list_model_keysworkspace_idProvider and configured status only. Any member; read-only.
remove_model_keyworkspace_id, provider (anthropic or openrouter)Removes a shared key. Admin or owner; destructive.
model_key_settingsworkspace_idDashboard URL for adding keys securely. Any member; read-only.
get_billingworkspace_idPlan, capacity and subscription status. Any member; read-only.
billing_checkoutworkspace_id, plan (pro, team or scale)Creates a Stripe checkout URL. Owner only; not read-only.
billing_portalworkspace_idCreates a Stripe billing portal URL. Owner only; not read-only.
connect_integrationworkspace_id, integration (github, linear, slack, telegram)Returns only { url } to open in a signed-in browser. Admin or owner for GitHub, Linear and Slack; Telegram links your own account. Read-only; never accepts authorization secrets.
get_repo_configworkspace_id, repo_idYour effective .sinatrarc, provenance and override. Any member; read-only.
preflight_repo_configworkspace_id, repo_id, fragmentChecks a draft override without saving. Any member; read-only.
set_repo_overrideworkspace_id, repo_id, fragmentSaves only your repository override. Any member.
clear_repo_overrideworkspace_id, repo_idClears only your override. Any member; destructive.
list_repo_secretsworkspace_id, repo_idNames and metadata, never values or suffixes. Any member; read-only.
remove_repo_secretworkspace_id, repo_id, nameDeletes a secret and proxy binding. Admin or owner; destructive.
repo_secret_settingsworkspace_id, repo_idDashboard URL to set, rotate or update secrets securely. Any member; read-only.
get_repo_environmentworkspace_id, repo_idEnvironment status and updates. Any member; feature-gated, read-only.
list_repo_capability_requestsworkspace_id, repo_idCapability requests without credential values. Any member; feature-gated, read-only.
get_workspace_pr_review_settingsworkspace_idReads the workspace's external PR review default. Any member; read-only; rollout-gated.
set_workspace_pr_review_settingsworkspace_id, review_external_prs (boolean)Changes the workspace default. Admin or owner; rollout-gated.
get_repo_pr_review_settingsworkspace_id, repo_idReads the repository override and effective enabled value. Any member; read-only; rollout-gated.
set_repo_pr_review_settingsworkspace_id, repo_id, review_external_prs (inherit, on or off)Changes the repository override. Admin or owner; rollout-gated.

Each tool also carries a display title and hints about what it does: whoami, get_workspace, get_account, get_email_preferences, list_tasks, get_task, get_messages and search_tickets only read; set_email_preferences updates your own preferences and create_workspace creates a workspace, without starting work; start_task, follow_up and delegate_ticket start work that can push to GitHub; stop_task interrupts work in progress, and so may run_code, which can call any tool. Clients such as Claude can use the hints to decide which calls need your approval.

Tools return the same JSON as the HTTP API, as text and as structured content. A refused call, including an input-validation failure, returns a tool execution error (isError: true) that says what to fix.

Subscription listing reads only; usage can refresh and save rotated provider credentials and is not marked read-only. Removal is destructive. Connecting through MCP only returns a browser hand-off link: the credential-granting code stays between you, the provider and Sinatra's dashboard, never in MCP arguments or results.

No MCP tool accepts or adds an API key. Use model_key_settings to get the dashboard settings URL; an owner or admin adds the key there. Never paste a key into tool arguments or run_code.

Repository ids come from get_workspace. No MCP tool accepts or reads a repository secret value. Use repo_secret_settings for the dashboard URL; an admin or owner supplies the value there, never in tool arguments or run_code. Setting or clearing an override affects only the caller.

Repository override tools take fragment as an object, including through run_code; do not JSON-stringify it.

PR review tools use the same saved settings and permissions as the dashboard and CLI. They are advertised only when your account has an eligible workspace; calls targeting an excluded workspace return 404 not_found, even if another workspace is eligible. A member cannot change these settings through MCP or code mode.

Billing handoff tools return { "url": "https://…" } for the user to open in their browser; they do not take payment details or Stripe secrets. Billing status omits Stripe customer and subscription ids and raw Stripe snapshots.

Code mode

run_code takes a JavaScript async arrow function and runs it in a sandbox on Sinatra's servers, with every other tool available as a function on sinatra. An agent can chain, filter or loop over several calls in one step, and return only what it needs instead of every intermediate result. The tool's description includes the full API as TypeScript declarations.

async () => {
  const { workspaces } = await sinatra.whoami();
  const { tickets } = await sinatra.search_tickets({ workspace_id: workspaces[0].id, query: "flaky" });
  return tickets.filter((t) => t.yours).map((t) => t.identifier);
}

Each function takes the same arguments as its tool and resolves with the same JSON. When a tool refuses, the function throws an Error with the tool's message, which the code can catch. Calls run as you, with the same checks and limits as calling the tool directly, so code can't do anything the tools can't. console.log output comes back with the result as logs.

The sandbox has no network, filesystem or timer access. Each run allows:

  • at most 50 tool calls, 4 at a time, each with at most 100,000 characters of arguments;
  • 200 ms of computation, not counting time spent waiting on tool calls;
  • 30 seconds in all, and 16 MB of memory;
  • a result of at most 50,000 characters of JSON.

You can have 2 runs going at once; a third is refused until one finishes.

Code that goes past a limit, or waits on a promise that can never settle, stops with an error that says which. A client approves a run_code call once for the whole script, so check what the code does before you approve it.

The server answers each request with plain JSON; it opens no event stream and keeps no session. Modern clients use protocol version 2026-07-28 without an initialization handshake: include params._meta["io.modelcontextprotocol/protocolVersion"] on each request, a matching MCP-Protocol-Version header, and Mcp-Method matching the JSON-RPC method. For tools/call, also send Mcp-Name matching params.name (the =?base64?…?= encoding is supported). server/discover returns supported versions, capabilities and server information. Modern results include resultType: "complete" and server information in _meta; discovery and tool lists have a one-hour, private cache lifetime. Unsupported metadata versions receive HTTP 400 / -32022 with all supported versions; missing or mismatched headers receive HTTP 400 / -32020. Modern initialize, ping and other unknown methods receive HTTP 404 / -32601.

Modern requests must also include params._meta["io.modelcontextprotocol/clientCapabilities"] (use {} when no client capabilities are needed). Omitting it returns HTTP 400 / -32602 before tool execution.

Requests without the protocol-version metadata keep the legacy behavior: initialize supports 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05, negotiating an unknown version to 2025-11-25. Send the negotiated version in the MCP-Protocol-Version header on subsequent legacy requests. Mcp-Session-Id and Last-Event-ID are ignored; GET and DELETE return HTTP 405 in both eras.

If an MCP request includes an Origin header, it must be a well-formed HTTPS origin or an HTTP loopback origin (127.0.0.1, localhost or [::1], with an optional port). Other values, including null, receive HTTP 403 with a JSON-RPC error and no id, before authentication. CLI and server-side clients can omit Origin. Authentication remains bearer-only; browser cookies do not authenticate MCP requests.

HTTP API

The base URL is https://api.sinatra.dev. Send your token on every request:

Authorization: Bearer sntr_...

Request and response bodies are JSON. The examples below set SINATRA_TOKEN to your token, WS to a workspace id, and TASK to a task id: the task.id that starting a task returns.

This page is a guide. The API Reference documents every endpoint, with its fields, responses and errors. It is generated from the API's OpenAPI spec, which you can point a client generator at.

There are official SDKs for Node.js, Python and Go if you'd rather call it from code than write the requests yourself.

Quick start

Find your workspace ids with GET /v1/me. It returns the token's user and the workspaces they belong to.

curl -s https://api.sinatra.dev/v1/me -H "Authorization: Bearer $SINATRA_TOKEN"
{
  "user": { "id": "cmabc...", "githubLogin": "octocat", "name": "Mona", "email": "mona@example.com" },
  "workspaces": [{ "id": "cmxyz...", "name": "acme", "role": "member" }]
}

No workspace yet? Create one with POST /v1/workspaces. You become its owner.

curl -s -X POST https://api.sinatra.dev/v1/workspaces \
  -H "Authorization: Bearer $SINATRA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "Acme"}'
{ "workspace": { "id": "cmxyz...", "name": "Acme", "role": "owner" } }

It starts with no integrations: GET /v1/workspaces/{workspaceId}/integrations/github/connect returns the dashboard page where the person installs the Sinatra GitHub App and picks repositories. A name that breaks the rules (1–120 letters, numbers, spaces and basic punctuation, no web address) gets 400 invalid_name. Each person can create one workspace this way; if you already created one without GitHub, even one you have since connected to GitHub, the API answers 409 workspace_limit and creates nothing. Installing the Sinatra GitHub App on another account or organization makes more workspaces.

Read the workspace's setup with GET /v1/workspaces/{workspaceId}:

curl -s "https://api.sinatra.dev/v1/workspaces/$WS" \
  -H "Authorization: Bearer $SINATRA_TOKEN"

The response includes repos, the github, linear, slack and telegram connection status, planStatus, defaultModel and your role, alongside the dashboard's workspace details. Any member can read it; a caller who is not a member gets 404 not_found. It contains no integration credentials and does not reconcile repositories or change settings.

Start a task with POST /v1/workspaces/{workspaceId}/tasks. It returns 202 with the task and the id of your first message. Only prompt is required.

curl -s -X POST "https://api.sinatra.dev/v1/workspaces/$WS/tasks" \
  -H "Authorization: Bearer $SINATRA_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: fix-retry-test-1" \
  -d '{"prompt": "Fix the flaky retry test in packages/api", "repo": "acme/web"}'
{ "task": { "id": "api3f9c...", "status": "pending", "source": "api", "...": "..." }, "messageId": "fix-retry-test-1" }

Read the agent's answer with GET /v1/workspaces/{workspaceId}/tasks/{taskId}/messages, using the task's id. Check the task's status with GET /v1/workspaces/{workspaceId}/tasks/{taskId}. See How replies work for when the agent has handed back.

curl -s "https://api.sinatra.dev/v1/workspaces/$WS/tasks/$TASK/messages" \
  -H "Authorization: Bearer $SINATRA_TOKEN"

To answer, send a message. To stop the running agent, stop the task. To hand Sinatra an existing issue instead, search issues and delegate one.

When you're done with a token, revoke it with DELETE /v1/me/token, which revokes the token that sends it.

Integration browser handoffs

GET /v1/workspaces/{id}/integrations/{integration}/connect returns only { "url": "https://…" }, with integration one of github, linear, slack or telegram. Open it in a signed-in browser to start the existing install or personal Telegram link flow. Bearer tokens do not replace the browser session or create OAuth state.

GitHub, Linear and Slack require a workspace admin or owner; members receive 403 actor_not_authorized. Telegram is a personal account link available to members allowed to use it. Non-members receive 404. Disabled Slack or unavailable Telegram linking also returns 404. Status remains on GET /v1/workspaces/{id}: Telegram's connected describes your linked account, separately from the workspace's enabled setting.

Billing endpoints

MethodPathAccess and response
GET/v1/workspaces/{id}/plan-statusAny member. Same plan, capacity catalog and subscription status as the dashboard.
POST/v1/workspaces/{id}/billing/checkoutOwner only. Body { "plan": "pro" } (team and scale also accepted); returns { "url": "https://…" }.
POST/v1/workspaces/{id}/billing/portalOwner only. Returns { "url": "https://…" } for the existing billing account.

Members and admins receive 403 actor_not_authorized for checkout and portal; non-members receive 404 on all three endpoints. Billing-disabled installations refuse handoffs. Status never includes Stripe secrets, customer or subscription ids, or raw Stripe snapshots. Checkout and portal return browser URLs, not payment details.

Workspace access endpoints

All paths below start with /v1/workspaces/{workspaceId}. They share the dashboard's operations and role checks: owner only except leave, which any member can call. Non-members receive 404; members or admins attempting owner actions receive 403. No endpoint grants owner through a role field; use ownership transfer instead.

MethodPathJSON body
GET/accessNone; returns memberships, invites and accessRequests.
POST/invites{ "email": "teammate@example.com", "role": "member" }
POST/invites/{inviteId}/resendNone
DELETE/invites/{inviteId}None
POST/access-requests/{requestId}/approve{ "role": "admin" }
POST/access-requests/{requestId}/denyNone
PATCH/memberships/{membershipId}{ "role": "member" }
DELETE/memberships/{membershipId}None
POST/memberships/{membershipId}/transferNone
POST/leaveNone

Invitations and approvals accept only member or admin. Invitation responses contain status and expiry, never a credential or acceptance token. If email delivery fails, the API returns 503 invite_delivery_failed; the invitation has been saved, so inspect access and resend rather than blindly creating another.

Account and email preferences

All three routes below require authentication but no workspace membership. They always operate on the authenticated user, never an arbitrary user id, and work even when you belong to no workspaces.

Method and routeResponse or body
GET /v1/me/account{user, memberships, linkedAccounts}: your dashboard-visible account details, workspace memberships and linked identities. Credentials and dashboard-hidden fields are omitted.
GET /v1/me/email-preferences{setupReminders: boolean, taskAlerts: boolean}.
PATCH /v1/me/email-preferencesSupply at least one of setupReminders and taskAlerts as a boolean. Returns both saved preferences; omitted fields stay unchanged.

The account's user includes id, email, githubLogin, name, avatarUrl and linearUserId. Each membership contains membership (id, workspaceId, role) and workspace (id, name, createdAt, githubAccountLogin, githubAccountType, linearOrganizationName). linkedAccounts.telegram reports availability, linked identity, request-workspace choices and routing, and the bot link; when unavailable, its identity, request-workspace and bot details are null. It does not expose tokens, passwords or other credentials.

curl -s "https://api.sinatra.dev/v1/me/account" \
  -H "Authorization: Bearer $SINATRA_TOKEN"
curl -s "https://api.sinatra.dev/v1/me/email-preferences" \
  -H "Authorization: Bearer $SINATRA_TOKEN"
curl -s -X PATCH "https://api.sinatra.dev/v1/me/email-preferences" \
  -H "Authorization: Bearer $SINATRA_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"setupReminders": false}'

The preferences are personal, not workspace-specific, and share the same store as the email preferences page linked from Sinatra emails. Updating them through the API, CLI, MCP or that page changes the same settings.

Subscription endpoints

All subscription endpoints are under /v1/workspaces/{workspaceId}/subscriptions. Any current member can manage their own connections; another member's connection id returns 404, as does a workspace you don't belong to. Responses never include stored provider access or refresh tokens.

MethodPath suffixAction
GETnoneList your connections across providers, including each connection's provider.
GET/{connectionId}/usageRead usage for your connection.
PATCH/{connectionId}Update label or set makePrimary: true for that provider.
DELETE/{connectionId}Remove your connection; success returns 204.
POST/{provider}/startStart a browser/device flow. Providers are codex, claude, xai, and cursor.
POST/{provider}/pollPoll a Codex, xAI or Cursor connection using the start response's flow fields.
POST/claude/completeComplete Claude's flow with the pasted code, state and pendingToken from start.

Keep flow tokens private: they are bound to the member and workspace that started the connection. Open the returned URL and respect the returned polling interval. These connection actions do not use task/message idempotency keys; do not blindly retry a completion whose outcome is unknown.

Workspace model and key endpoints

All paths below start with /v1/workspaces/{workspaceId} and use the dashboard's shared operations. Reads require membership, setting or clearing a model default requires ownership, and adding or removing a key requires the admin or owner role. Role refusals return 403 actor_not_authorized; non-members receive 404.

MethodPathJSON body / result
GET/model-defaultReturns { "selection": null } or a saved engine/model/effort selection.
PUT/model-default{ "engine": "oh-my-pi", "model": "openai-codex/gpt-6.1-sol", "effort": "medium" }; returns the selection.
DELETE/model-defaultNo body; returns { "selection": null }.
GET/model-credentialsReturns credentials, each with provider and status: "configured" only.
POST/model-credentials{ "provider": "anthropic", "apiKey": "<secret>" }; validates and encrypts the key, replacing that provider's existing key. Returns only provider and status.
DELETE/model-credentials/{provider}No body; returns 204, or 404 model_key_not_found if the key was absent.

Key providers are anthropic and openrouter. Send key material only in the HTTPS request body, never in a URL, argv or MCP argument. Neither successful key responses nor validation failures expose key values or suffixes. Provider validation failures return 422 key_validation_failed; unavailable providers return 502 provider_unreachable. An invalid catalog selection returns 400 invalid_model_selection.

Repository endpoints

GET /v1/workspaces/{workspaceId} already returns connected repository names and ids; there is no separate repository-list endpoint. All paths below start with /v1/workspaces/{workspaceId}/repos/{repoId} and reuse the dashboard's operations.

MethodPathBody / result
GET/sinatrarcEffective .sinatrarc, provenance, your override and next-task model resolution.
POST/config-preflight{ "fragment": {} }; returns wouldWarn and issues without saving.
PUT/user-override{ "fragment": { "agent": { "max_turns": 42 } } }; saves only your override, returns 204.
DELETE/user-overrideClears only your override; returns 204, including if already absent.
GET/secrets{ "secrets": [...] }, names and metadata only.
PUT/secrets/{name}{ "value": "<secret>", "hosts": ["registry.example.com"] }; create or rotate, returns safe metadata. Optional header, prefix, capabilityRequestId. Omitted proxy fields retain their stored values on rotation.
PATCH/secrets/{name}At least one of hosts, header, prefix; updates existing metadata without a value.
DELETE/secrets/{name}Deletes the secret and proxy binding; returns 204, or 404 if absent.
GET/environmentEnvironment status and setup updates; feature-gated.
GET/capability-requests{ "requests": [...] }; feature-gated.

All reads and personal-override writes require workspace membership. Secret writes require an admin or owner; members receive 403 actor_not_authorized. Non-members and repository ids from another workspace receive 404. Public refusal bodies contain error and requestId. Disabled repository-environment reads return 403 repo_environments_not_enabled.

Send secret values only in the HTTPS request body, never in URLs, argv or MCP arguments. Public secret responses omit values, ciphertext and value suffixes, including after writes and on validation errors. New secrets require nonempty allowed hosts; an optional capability request must belong to the same repository and its target must be authorized by those hosts.

Idempotency

Send an Idempotency-Key header on POST .../tasks and POST .../messages so a retry is safe. The key is 1 to 128 printable ASCII characters, with no spaces.

  • A start retried with the same key returns the same task and never starts a second one. The same key with a different prompt, repository or title returns 409 idempotency_conflict.
  • A message retried with the same key is sent once. Keys belong to their sender: two people using the same key send two messages.
  • The key becomes the message's messageId.

If Sinatra saves your request but can't hand it to the agent yet, it returns 503 unavailable. On a start, the body includes the new taskId and messageId: retry with the same key, or send a message on that task, which sends your prompt first. On a message, retry with the returned messageId as the Idempotency-Key so it's sent once.

Errors

Errors return a JSON body such as {"error": "invalid_prompt"}. Each endpoint's page in the API Reference lists the errors it can return. The ones you'll meet most:

StatuserrorMeaning
400invalid_promptprompt or text is missing, empty, or over 100,000 characters.
401invalid_tokenThe token is missing, malformed, expired or revoked.
404not_foundNo such task, or you aren't a member of the workspace.
409not_an_api_taskThe task started elsewhere, such as Linear or GitHub; it has no conversation here.
409idempotency_conflictThe key was already used with different content.
409payment_requiredBilling would stop the task: no model access for you in this workspace, or a subscription past due. reason says what to do.
409capacity_fullThe workspace's queue is full. reason is the message to show.
429bad_requestOver the request rate limit. Wait for the Retry-After header.
503unavailableSinatra couldn't reach the task. Retry with the same key.

A workspace you don't belong to answers 404, never 403, so the API doesn't reveal which workspaces exist.

Limits

  • Running agents: your plan's, shared with every other task in the workspace. A start the queue has no room for is refused with 409 capacity_full. A message on an existing task isn't refused when you send it: the agent it starts takes a place in the queue like a reply on Linear or GitHub, and if the queue is full the refusal lands in the task's conversation.
  • Request rate: per token and per endpoint, 600 GET requests a minute and 120 POST or DELETE requests a minute. Over that, the API returns 429 with a Retry-After header. Every MCP call goes to one endpoint, so all MCP calls, including polling get_messages, share one budget of 120 a minute.
  • Time: on Free, each agent works up to 60 minutes, then stops and saves its work, and the task needs an upgrade to finish; on paid plans, agents work until they're done. See Time limits.
  • Message size: 100,000 characters per prompt or message.
  • Tokens: expire after at most 365 days.

Full reference: API Reference.

How replies work

The conversation holds final answers and questions, not progress. Each agent posts one reply: its answer, or a question when it needs your input. Sinatra adds its own notices, such as errors and refusals. Thoughts and progress updates aren't posted.

The conversation is also on the task's page in the dashboard, where any member of the workspace can read it and reply.

There is no streaming. To wait for a reply, poll GET .../messages with after set to the last message id you read, and check the task's status with GET .../tasks/{taskId}. The agent has handed back when the task stops working, for example when it reaches replied or pr_open. The CLI polls every three seconds.

A message sent while the agent is working doesn't reach it. It waits and starts the next agent. While a task is waiting for a running slot, its conversation stays quiet. Its queued field says so, and the dashboard shows it as Waiting.

Tasks started this way count against your workspace's plan like any other task. Each agent takes one of the plan's running places; past that it waits, and if the queue is full, Sinatra says so in the conversation instead of starting it. See How the queue works. It also needs model access, like a task you delegate from Linear or GitHub. See Models.